THIS IS A COMPUTER COMPUTER COMPUTER SUBJECT QUESTION NOT MATHS AND PLEASE SAHI ANSWER FALTU MA POINTS KA LEYA BINA VAJAH KA ANSWERS MAT DO PLEASE
Write a program in bluej to buy pencils, copies, erasers at respectively prices(pencils=20,copies=100,erasers=50) and calculate the total amount of these items Please tell fast
AND YA THIS QUESTION IS NOT OF MATHS IT'S OF COMPUTER AND PLEASE POINTS KA LEYA FALTU ANSWERS MAT DO MUGHE 5 MIN MA KAM SEND KARNA HA
Answers
Answered by
0
Answer:
import java.util.Scanner;
class Bill
{
public static void main( String [] args)
{
Scanner r = new Scanner (System.in);
System.out.print("How many pencils you've bought?");
int p = r.nextInt();
System.out.print("How many copies you've bought?");
int c = r.nextInt();
System.out.print("How many erasers you've bought?");
int e = r.nextInt();
int total = (p*20) + (c*100) + (e*50);
System.out.print("Your total amount="+sum);
}
}
.
.
.
.
Hope it helps
Similar questions