The goal of this assignment is to solve problems that involve flow of control with conditional statements. We would like to design an online menu-driven application that allows users to order (only) one item from each category of Grocery products from the Panther Store. There are three categories of Grocery products: Fruits, Vegetables and Beverages. The following lists each item within a category of Grocery products, along with its price. Panther Fruits $4.27 1. Fuji Apples (3 lb) 2. Watermelon (each) $7.88 3. Strawberries (16 oz) $2.42 Panther Vegetables $2.97 1. Red Cabbage (each) 2. Zucchini (each) $0.81 3. Beets (1 lb) $2.44 Panther Beverages 1. Apple Juice (64 fl oz) $2.88 $5.54 2. Orange Juice (64 fl oz) 3. Coconut Water (33.8 fl oz) $3.47 Initially, the program will prompt the user for a total budget. If the user ever exceeds that budget while ordering Grocery items, an error message will display and the item will not be added to the order. That way the program will make sure that the user stays within budget. https:/fit.instructure.com/courses/96352/assignments/5063907?module_item_id=10058145 1/4 2/28/22, 6:13 PM Assignment 1 Panther Vegetables are shipped at a flat rate of $2 regardless of the number of items, Panther Beverages similarly are shipped at $5.50 and Panther Fruits at $3.50. Shipping costs are considered outside the user's budget. The program will keep track of which products have been ordered, how many have been ordered, where they have been ordered from, how much the user has spent, and the user's balance. After ordering is complete, the program will print out an overall invoice. No invoice prints if the customer orders nothing. Hint: You should not need loops for this assignment

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 1CP: In previous chapters, you created applications for the Greenville Idol competition. Now, modify the...
icon
Related questions
Question
File hame must be Shopping.cpp
The goal of this assignment is to solve problems that involve flow of control with conditional statements.
We would like to design an online menu-driven application that allows users to order (only) one item from
each category of Grocery products from the Panther Store.
There are three categories of Grocery products: Fruits, Vegetables and Beverages. The following lists
each item within a category of Grocery products, along with its price.
Panther Fruits
1. Fuji Apples (3 Ib)
2. Watermelon (each)
3. Strawberries (16 oz)
$4.27
$7.88
$2.42
Panther Vegetables
1. Red Cabbage (each)
$2.97
$0.81
2. Zucchini (each)
3. Beets (1 Ib)
$2.44
Panther Beverages
1. Apple Juice (64 fl oz)
2. Orange Juice (64 fl oz)
3. Coconut Water (33.8 fl oz)
$2.88
$5.54
$3.47
Initially, the program will prompt the user for a total budget. If the user ever exceeds that budget while
ordering Grocery items, an error message will display and the item will not be added to the order. That
way the program will make sure that the user stays within budget.
https://fit.instructure.com/courses/596352/assignments/5063907?module_item_id=10058145
1/4
2/28/22, 6:13 PM
Assignment 1
Panther Vegetables are shipped at a flat rate of $2 regardless of the number of items, Panther
Beverages similarly are shipped at $5.50 and Panther Fruits at $3.50. Shipping costs are considered
outside the user's budget. The program will keep track of which products have been ordered, how many
have been ordered, where they have been ordered from, how much the user has spent, and the user's
balance.
After ordering is complete, the program will print out an overall invoice. No invoice prints if the customer
orders nothing.
Hint: You should not need loops for this assignment
Transcribed Image Text:File hame must be Shopping.cpp The goal of this assignment is to solve problems that involve flow of control with conditional statements. We would like to design an online menu-driven application that allows users to order (only) one item from each category of Grocery products from the Panther Store. There are three categories of Grocery products: Fruits, Vegetables and Beverages. The following lists each item within a category of Grocery products, along with its price. Panther Fruits 1. Fuji Apples (3 Ib) 2. Watermelon (each) 3. Strawberries (16 oz) $4.27 $7.88 $2.42 Panther Vegetables 1. Red Cabbage (each) $2.97 $0.81 2. Zucchini (each) 3. Beets (1 Ib) $2.44 Panther Beverages 1. Apple Juice (64 fl oz) 2. Orange Juice (64 fl oz) 3. Coconut Water (33.8 fl oz) $2.88 $5.54 $3.47 Initially, the program will prompt the user for a total budget. If the user ever exceeds that budget while ordering Grocery items, an error message will display and the item will not be added to the order. That way the program will make sure that the user stays within budget. https://fit.instructure.com/courses/596352/assignments/5063907?module_item_id=10058145 1/4 2/28/22, 6:13 PM Assignment 1 Panther Vegetables are shipped at a flat rate of $2 regardless of the number of items, Panther Beverages similarly are shipped at $5.50 and Panther Fruits at $3.50. Shipping costs are considered outside the user's budget. The program will keep track of which products have been ordered, how many have been ordered, where they have been ordered from, how much the user has spent, and the user's balance. After ordering is complete, the program will print out an overall invoice. No invoice prints if the customer orders nothing. Hint: You should not need loops for this assignment
Your program's output must match the output below as exactly as possible.
Sample Interaction: (user inputs are in bold blue fonts)
Welcome to Panther Grocery Store
Please enter shopping budget ($): 20.00
Panther Fruits
1 Fuji Apples (3 lb) ($4.27)
2 Watermelon (each) ($7.88)
3 Strawberries (16 oz) ($2.42)
Please select your fruit (1-3, 0 to cancel): 2
Please enter quantity (0 to skip): 1
Added to shopping cart: Watermelon [1] ($7.88)
Balance : $12.12
Panther Vegetables
---------
1 Red Cabbage (each) ($2.97)
2 Zucchini (each) ($0.81)
3 Beets (1 lb) ($2.44)
Please select your vegetable (1-3, 0 to cancel): 3
Please enter quantity (0 to skip): 10
Order amount exceeds budget -- cannot proceed.
Balance : $12.12
Panther Beverages
-----
1 Apple Juice (64 fl oz) ($2.88)
2 Orange Juice (64 fl oz) ($5.54)
3 Coconut Water (33.8 fl oz) ($3.47)
Please select your beverage (1-3, 0 to cancel): 0
Balance : $12.í2
Invoice - Panther Home
Price
Item
Qty
Amount
Watermelon
7.88
7.88
3.50
Shipping:
--------
Total Amount:
11.38
https://fit.instructure.com/courses/596352/assignments/5063907?module_item_id=10058145
2/4
2/28/22, 6:13 PM
Assignment 1
Thank you for shopping at Panther Grocery Store!
printf formatting instructions:
• The "Item" column in the table has a width of 30 characters
• The "Price" column has a width of 10 characters
• The "Qty" column has a width of 10 characters
• The "Amount" column in the table has a width of 10 characters
How to use printf %s for printing string ,
(https://fit.instructure.com/courses/596352/files/45124125/ldownload?download_frd=1)
Submissions will be screened for plagiarism and other academically dishonest practices so you MUST
do entirely your own work. You may help each other to understand and mathematically grasp the
problems, but all submitted work must be unique and original. Please submit your assignment by the due
date to the Assignment 1 location in Canvas.
Include the following header at the top of your Shopping.cpp file
Transcribed Image Text:Your program's output must match the output below as exactly as possible. Sample Interaction: (user inputs are in bold blue fonts) Welcome to Panther Grocery Store Please enter shopping budget ($): 20.00 Panther Fruits 1 Fuji Apples (3 lb) ($4.27) 2 Watermelon (each) ($7.88) 3 Strawberries (16 oz) ($2.42) Please select your fruit (1-3, 0 to cancel): 2 Please enter quantity (0 to skip): 1 Added to shopping cart: Watermelon [1] ($7.88) Balance : $12.12 Panther Vegetables --------- 1 Red Cabbage (each) ($2.97) 2 Zucchini (each) ($0.81) 3 Beets (1 lb) ($2.44) Please select your vegetable (1-3, 0 to cancel): 3 Please enter quantity (0 to skip): 10 Order amount exceeds budget -- cannot proceed. Balance : $12.12 Panther Beverages ----- 1 Apple Juice (64 fl oz) ($2.88) 2 Orange Juice (64 fl oz) ($5.54) 3 Coconut Water (33.8 fl oz) ($3.47) Please select your beverage (1-3, 0 to cancel): 0 Balance : $12.í2 Invoice - Panther Home Price Item Qty Amount Watermelon 7.88 7.88 3.50 Shipping: -------- Total Amount: 11.38 https://fit.instructure.com/courses/596352/assignments/5063907?module_item_id=10058145 2/4 2/28/22, 6:13 PM Assignment 1 Thank you for shopping at Panther Grocery Store! printf formatting instructions: • The "Item" column in the table has a width of 30 characters • The "Price" column has a width of 10 characters • The "Qty" column has a width of 10 characters • The "Amount" column in the table has a width of 10 characters How to use printf %s for printing string , (https://fit.instructure.com/courses/596352/files/45124125/ldownload?download_frd=1) Submissions will be screened for plagiarism and other academically dishonest practices so you MUST do entirely your own work. You may help each other to understand and mathematically grasp the problems, but all submitted work must be unique and original. Please submit your assignment by the due date to the Assignment 1 location in Canvas. Include the following header at the top of your Shopping.cpp file
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 14 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT