Professional Documents
Culture Documents
New Era University College of Computer Studies Department of Information System
New Era University College of Computer Studies Department of Information System
New Era University College of Computer Studies Department of Information System
Rating:
Input/Output:
Machine Problem 2: Create a program VatInclusive that includes value added tax of
12% on each purchase depending if senior, student or ordinary customer. Use the
following code:
Code
1
2
3
Other codes
Remarks
Ordinary customer
Senior citizen
Student
Considered ordinary customer
Senior receives 3% vat additional; students are vat exempt (30 marks)
Use switch case solution on this problem.
Sample Input/Output:
Enter item: Hard disk
Enter unit price: 1000.0
Enter quantity: 3
Enter customer code [1=Ordinary, 2=Senior, 3=Student] : 1
Price Summary of Hard disk
Customer is Ordinary
Gross Price: 3000.0
VAT: 360.0
Input/Output: