SQU Programming Java Tasks
Task 3:
eXtra is a great Services providing different items to
customer.
Consider that a customer is
buying any four types of items from eXtra store, where each items has a fixed price on it. After choosing
the items, the customer has to go to the cashier and can ask any of the following services:
Please note that you have to choose the four items of your choice with some appropriate prices
available in the eXtra store.
1. Make a new purchase: The cashier enters the number of items for each type of items then the
program calculates the total price, apply a VAT of 5% and displays the total amount to pay the
customer.
2. Check the price of one item: The cashier enters the code of the item and the program displays
its price.
You are requested to write the Java program that completes the following:
a) Displays the menu of services as specified above and asks the user of his/her service choice.
b) Based on the customer choice, the program executes one of the tasks specified in the previous
list of services.
i. Make a new purchase.
ii. Check the price of one item
iii. Displays an error message if the choice is not one of the previous options.
Please note that you have to choose the four products available in the retail store with their prices.
Please find below some examples of execution: (Photos attached)
__________
Draw a Flow Chart for the senario given in task 3, the diagram must be drawn using suitalble software.
C:\Program Files (x86)\Xinox Software\CreatorV3LE\GE2001.exe
Menu
1.Make a new purchase
2.check prices
++++++++++++++++
Enter your choice
1
Enter Qty of product 1
2
Enter Qty of product 2
Enter Qty of product 3
1
Enter Qty of product 4
3
The total before VAT is 115.0 OMR
The total after VAT is 120.75 OMR
Press any key to continue…
C:\Program Files (x86)\Xinox Software\CreatorV3LE\GE2001.exe
Menu
1.Make a new purchase
2.check prices
+++++++++++++++++
Enter your choice
which item do you want to check?
1.product1
2.product2
3.product3
4.product4
3
product 2 U.price (OMR) is
Press any key to continue…
20C:\Program Files (x86)\Xinox Software\JCreatorV3LE\GE20
Menu
1. Make a new purchase
2.check prices
+++++
Enter your choice
5
Please enter a correct choice
Press any key to continue…
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics