Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show the code required to create the following program using C++ language: 1. Bread and Rolls (70) Write a program that lets a maker

Please show the code required to create the following program using C++ language:

1. Bread and Rolls (70) Write a program that lets a maker of breads and rolls keep track of sales for seven different types of bread/rolls: normal white bread, normal wholemeal bread, bread rolls, burger buns, hotdog rolls, dinner rolls, and tortilla bread. The program should use three parallel 7-element arrays: an array of strings that holds the seven breads/rolls names, an array of numbers that holds the number of units sold during each day of the past week for each breads/rolls type, and the final array contains the unit price for each type of breads/rolls. The bread/rolls names should be stored using an initialization list at the time the name array is created. The program should prompt the user to enter the number of units sold for each type for each day of the past week. Therefore, you should have stored sales data for seven days in an array for each bread/roll type. Once this sales data has been entered, the program should display a menu to extract reports by each day of the past week.

The report menu 1 should contain the following options:

1. display total sales units

2. display total sales volume

3. display name and units of highest sold item

4. display name and sales volume for highest sold item

5. display name and units of lowest sold item

6. display name and sales volume for lowest sold item

Depending on the option selected by the user, your program should ask for the following input via menu 2

1. Day of the week

2. Whole Week

If option 1 from the second menu (Day of the week) is chosen then the report should display report only for that day. So seven days week will be represented in an array as index 0=Monday, 1=Tuesday, 2=Wednesday, 3=Thursday, 4=Friday, 5=Saturday, and 6=Sunday. In case the option 2 is selected (Whole week) then the program should display the report for the whole week (7 days) You also need to provide easy navigation from menu 1 to menu 2 and vice versa including exit option from the program. Our program should be able to handle all data types (integer and decimal) as inputs including negative number check for the price and units.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

Students also viewed these Databases questions

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago