-
Notifications
You must be signed in to change notification settings - Fork 92
/
Shopping_Budget_Calculator.java
49 lines (47 loc) · 2.39 KB
/
Shopping_Budget_Calculator.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import java.util.Scanner;
public class ShoppingBudget
{
public static void main(String [] args)
{
System.out.println("Welcome to My Shopping Mall!!");
System.out.println("\nFirstly See the Rate Chart.");
System.out.println("The Price of 1 Shirt is= Rs.500/-");
System.out.println("The Price of 1 T-Shirt is= Rs.250/-");
System.out.println("The Price of 1 Jeans is= Rs.580/-");
System.out.println("The Price of 1 Trouser is= Rs.600/-");
System.out.println("The Price of 1 Pant is= Rs.350/-");
System.out.println("The Price of a pair of Socks is= Rs.100/-");
System.out.println("The Price of a pair of Shoes is= Rs.800/-");
System.out.println("The Price of 1 Saree is= Rs.1,000/-");
System.out.println("The Price of 1 Salwar Suit is= Rs.900/-");
System.out.println("The Price of 1 Leggings is= Rs.550/-");
System.out.println("The Price of Innerwear is= Rs.250/-");
System.out.println("\nNow Let's Strat Shopping!!\n");
Scanner input=new Scanner(System.in);
System.out.println("Enter the no. of items that you want to purchase");
System.out.println("Enter the no. of Shirts= ");
int shirt=input.nextInt();
System.out.println("Enter the no. of T-Shirts= ");
int tshirt=input.nextInt();
System.out.println("Enter the no. of Jeans= ");
int jeans=input.nextInt();
System.out.println("Enter the no. of Trousers= ");
int trousers=input.nextInt();
System.out.println("Enter the no. of Pants= ");
int pant=input.nextInt();
System.out.println("Enter the no. of Socks= ");
int socks=input.nextInt();
System.out.println("Enter the no. of Shoes= ");
int shoes=input.nextInt();
System.out.println("Enter the no. of Sarees= ");
int saree=input.nextInt();
System.out.println("Enter the no. of Salwar-Suits= ");
int salwar=input.nextInt();
System.out.println("Enter the no. of Leggings= ");
int legging=input.nextInt();
System.out.println("Enter the no. of Innerwear= ");
int innerwear=input.nextInt();
int amount=shirt*500+tshirt*250+jeans*580+trousers*600+pant*350+socks*100+shoes*800+saree*1000+salwar*900+legging*250+innerwear*250;
System.out.println("The Total Budget For Your Shopping is= Rs."+amount+"/-");
}
}