Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shopping Budget #88

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions Java/Other Programs/ShoppingBudget.java
Original file line number Diff line number Diff line change
@@ -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+"/-");

}

}