Answered step by step
Verified Expert Solution
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
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/foundStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started