Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ A program is needed that will project the profit of a Sporting Goods department. The items in the department are coded with a 1,2

image text in transcribed

c++

A program is needed that will project the profit of a Sporting Goods department. The items in the department are coded with a 1,2 or 3 depending on the amount of profit for the item. An item with a profit code of 1 produces a 10 percent profit, a code of 2 produces a 12 percent profit, while an item with a code of 3 generates a 15 percent profit. Write a program that will project the profit of the following inventory: The program should: 1. Print all items and associated expected profits 2. Print the total profit for all items 3. Allow a user to select a specific item and print the profit for that item 4. Allow a user to enter a hypothetical profit not exceeding 40 percent but greater than zero with the view of calculating the expected profit for that item. 5. Allows the user to enter three new profit percentages. Once entered, the program will print the expected profits generated from the newly entered profit percentages. These percentages should always be positive. The solution should prevent illegal characters or values from being entered by the user. The program should be user friendly clearly indicating to the user what should be entered. Additionally, students must include as comments within the submitted solution the input(s), process(s) and output(s) (IPO) for the solution. Be mindful that the solution will not be reviewed unless 1. An IPO is present. 2. The code compiles successfully without errors. 3. No evidence of plagiarism or code copying is detected/found

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

3. What are potential solutions?

Answered: 1 week ago

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago