Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Working With Looping Statements in C++ As the CIO of your company, you are interested in the sales performance of a new product being carried

Working With Looping Statements in C++ As the CIO of your company, you are interested in the sales performance of a new product being carried in your 12 stores. You have decided to write a program that will allow you to enter in the original quantity of the item shipped to each of the stores and the current number still remaining. From this data, you can calculate some statistics to determine whether to continue offering the item. Save the program as Inventory lastname.cpp or main.cpp 1. Use the following specifications to create a flowchart of your program logic prior to writing your program. Keep in mind that loops allow you repeat code. You should not be duplicating code!

Come up with your own company and product name.

Store #5 is currently being remodeled. Your program should skip this store and not include it in the computations.

Error checking should be done for negative entries and remaining quantities greater than the original number available in the store.

After gathering your data, display the following results in your program:

o Total quantity of items in all 12 stores

o Total number of items sold

o Total number of items remaining

o Number of stores with zero items left in the store

o Number of stores with less than half of their original quantity remaining

o Overall average number of items sold

o Overall percentage of items sold

Implement all three looping constructs in your program.

Implement shortcut operators where appropriate.

Output should be labeled, aligned, and formatted to 2 decimal places for the average and percentage.

Display a creative message indicating that the product should be continued if the overall percentage is over 50% or to discontinue if it is not.

Make sure you are using the correct data types and descriptive variable names.

Do not implement arrays or objects in your code.

Add a comment to the top of your program that includes your name, the program name, and a description of the program code.

Include descriptive comments throughout your program.

Test your data! 2. After completing the assignment, attach your Inventory lastname .cpp or main .cpp file and flowchart to the Assessment link for grading.

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

How can diversity create a competitive advantage for a firm?

Answered: 1 week ago