Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Pa help naman po

cleedyc

Novice
Advanced Member
Messages
29
Reaction score
0
Points
26
1) Write the program that asks the user for 3 integers and disorder their outputs. Let the first number be the second, the second be the third and the third be the first number.

2) Create a program that converts the inputted amount in dollar into its php equivalency. Assume that 1 dollar = 46.53 peso

Turbo C po salamat

Thank you mga boss
 
Last edited:
ts d ka po nag bigay ng programming language...so sinubukan ko sa java...beginner palang din po ako...sana po kung may nakaka alam ng mas madaling way to solve the given question may mag post din :) kasi po gsto ko pa matuto ng ibang way to program...

1) :
Code:
import java.io.*;
import java.util.Scanner;
public class sample {
	public static void main(String[] args) throws IOException {
		Scanner input = new Scanner(System.in);

		int num,num1,num2;
		System.out.print("Enter first number: ");
		num = input.nextInt();
		
		System.out.print("Enter second number: ");
		num1 = input.nextInt();
		
		System.out.print("Enter third number: ");
		num2 = input.nextInt();
		
		System.out.println(num2 + " " + num + " " + num1 + " ");
	}
}



2) :
Code:
import java.io.*;
import java.util.Scanner;
public class sample {
	public static void main(String[] args) throws IOException {
		Scanner input = new Scanner(System.in);
		System.out.print("Enter Peso to convert: ");
		float num = input.nextInt();
		num *= 46.53;
		System.out.print("Your Peso is equal to: $" + num);
	}
}
 
ts d ka po nag bigay ng programming language...so sinubukan ko sa java...beginner palang din po ako...sana po kung may nakaka alam ng mas madaling way to solve the given question may mag post din :) kasi po gsto ko pa matuto ng ibang way to program...

1) :
Code:
import java.io.*;
import java.util.Scanner;
public class sample {
	public static void main(String[] args) throws IOException {
		Scanner input = new Scanner(System.in);

		int num,num1,num2;
		System.out.print("Enter first number: ");
		num = input.nextInt();
		
		System.out.print("Enter second number: ");
		num1 = input.nextInt();
		
		System.out.print("Enter third number: ");
		num2 = input.nextInt();
		
		System.out.println(num2 + " " + num + " " + num1 + " ");
	}
}



2) :
Code:
import java.io.*;
import java.util.Scanner;
public class sample {
	public static void main(String[] args) throws IOException {
		Scanner input = new Scanner(System.in);
		System.out.print("Enter Peso to convert: ");
		float num = input.nextInt();
		num *= 46.53;
		System.out.print("Your Peso is equal to: $" + num);
	}
}
Sir thanks magagamit ko din sa Java to. C language po pala siya sir. di ko nailagay sensya po
 
tamad mo naman mag try.

assignment mo hindi mo ginagawa.
 
Back
Top Bottom