From 2469700076e776cd41e62281e2934121c84ec06c Mon Sep 17 00:00:00 2001 From: Aniketttttttewariii <92252708+Aniketttttttewariii@users.noreply.github.com> Date: Wed, 5 Oct 2022 14:28:07 +0530 Subject: [PATCH] Shopping Budget --- Java/Other Programs/ShoppingBudget.java | 95 +++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Java/Other Programs/ShoppingBudget.java diff --git a/Java/Other Programs/ShoppingBudget.java b/Java/Other Programs/ShoppingBudget.java new file mode 100644 index 0000000..fb1610f --- /dev/null +++ b/Java/Other Programs/ShoppingBudget.java @@ -0,0 +1,95 @@ +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+"/-"); + + } + +}