Prog

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Create a program Cellphone.java that will generate the following output.

Use switch case only and make sure that all phone models and mode of payment is flexible

Sales Input:

Enter Product 1: Iphone XI


Enter Price: $75,000.00

Enter Product 2: Samsung Note 20


Enter Price: $76,000.00

Enter Product 3: Xiaomi Black shark


Enter Price: $35,000.00

Input Mode of Payment Terms

Cash Discount: 10
You input 10% Discount for Cash

3 Months Installment: 5
You input 5% Interest for 3 Months Installment

6 Months Installment: 10
You input 10% Interest for 6 Months Installment

12 Months Installment: 20
You input 20% Interest for 12 Months Installment

Main Menu

Press I/i: Iphone 13 $75,000.00


Press S/s: Samsung Note 20 $76,000.00
Press X/x: Xiaomi Black shark $35,000.00

Enter Item: i
Your Item is Iphone 13
Price: $75,000.00

Select Mode of Payment

Press 1: Cash 10% Discount


Press 2: 3 Months Installment 5% Interest
Press 3: 6 Months Installment 10% Interest
Press 4: 12 Months Installment 20% Interest

Enter Mode of Payment: 2


Mode of Payment: 3 Months Installment
Item: Iphone 13
Price: $75,000.00
Discount/Interest: $3,750.00
Total Amount: $78,750.00
Monthly Amortization: $26,250.00

NOTE: ON YOUR VIDEO PRESENTATION, MAKES SURE THAT ALL PHONES, MODE OF PAYMENT &
AMOUNTS SHOULD BE THE SAME ON THE TABLE BELOW. YOU WILL PRESENT YOUR OUTPUT ON OUR
CLASS NEXT WEEK.

You might also like