Item Quantity Item Total 13. Then, Subtotal, Tax, Total Price with "SAR" 1:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Question

Uk. 

 

11.When the user enters E or e, program should end, and the bill will be displayed.
12. The bill should display all items with their quantities and item total.
Item
Quantity
Item Total
13. Then, Subtotal, Tax, Total Price with "SAR"
RUN #1 :
Welcome to "JAVA Flower Shop"
Roses flowers 'R'
250 SR
Lilies flowers 'L' 200 SR
Tulips flowers 'T'
Exit
180 SR
'E'
Please enter your choice: w
Wrong selection! Try again
Welcome to "JAVA Flower Shop"
Roses flowers 'R'
250 SR
Lilies flowers 'L'
200 SR
Tulips flowers "T"
'E'
180 SR
Exit
Please enter your choice: e
Have a Nice Day :)
Transcribed Image Text:11.When the user enters E or e, program should end, and the bill will be displayed. 12. The bill should display all items with their quantities and item total. Item Quantity Item Total 13. Then, Subtotal, Tax, Total Price with "SAR" RUN #1 : Welcome to "JAVA Flower Shop" Roses flowers 'R' 250 SR Lilies flowers 'L' 200 SR Tulips flowers 'T' Exit 180 SR 'E' Please enter your choice: w Wrong selection! Try again Welcome to "JAVA Flower Shop" Roses flowers 'R' 250 SR Lilies flowers 'L' 200 SR Tulips flowers "T" 'E' 180 SR Exit Please enter your choice: e Have a Nice Day :)
Objective:
You are going to develop a program for "JAVA Flower Shop" an online flower shop, which
allows the user to add their orders to buy different types of flower bouquets then calculate
the cost.
Program Details:
1. The program served three types of flowers: Roses, Lilies, and Tulips with prices
250 SR, 200 SR and 180 SR respectively.
2. Price of each bouquet of flowers should be declared as constants at the beginning
of the program.
3. The program will display the menu that contains these three types of flowers in
addition to exit option to end the program.
4. The menu should be displayed many times to allow the user to select more than one
bouquet of flower.
5. The user must select from the following options (R for Roses, L for Lilies, T for
Tulips or E for Exit). Both capital and small letters should be accepted. (i.e. R or r,
L or 1, T or t, E or e).
6. The user will choose the type of flowers and the number of bouquet to buy, then
the program will calculate the cost.
7. If the user enters incorrect choice, the following message should be displayed
"Wrong Selection! Try again", and the menu must be displayed again.
8. Item total will be calculated as:
Item total = price of selected types of flowers * total quantity of this types of flowers
• Subtotal equals summation of all items total.
9. There is a Tax equals to 15% added to the Subtotal price.
Tax=Subtotal * 0.15
• The total price equals Subtotal + Tax
10.Print "Thank you and see you again" at the end.
Transcribed Image Text:Objective: You are going to develop a program for "JAVA Flower Shop" an online flower shop, which allows the user to add their orders to buy different types of flower bouquets then calculate the cost. Program Details: 1. The program served three types of flowers: Roses, Lilies, and Tulips with prices 250 SR, 200 SR and 180 SR respectively. 2. Price of each bouquet of flowers should be declared as constants at the beginning of the program. 3. The program will display the menu that contains these three types of flowers in addition to exit option to end the program. 4. The menu should be displayed many times to allow the user to select more than one bouquet of flower. 5. The user must select from the following options (R for Roses, L for Lilies, T for Tulips or E for Exit). Both capital and small letters should be accepted. (i.e. R or r, L or 1, T or t, E or e). 6. The user will choose the type of flowers and the number of bouquet to buy, then the program will calculate the cost. 7. If the user enters incorrect choice, the following message should be displayed "Wrong Selection! Try again", and the menu must be displayed again. 8. Item total will be calculated as: Item total = price of selected types of flowers * total quantity of this types of flowers • Subtotal equals summation of all items total. 9. There is a Tax equals to 15% added to the Subtotal price. Tax=Subtotal * 0.15 • The total price equals Subtotal + Tax 10.Print "Thank you and see you again" at the end.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY