Question
For each of the following problems: Write the INPUT, PROCESS and OUTPUT needed to implement a solution. Write pseudocode for your proposed solution. Provide at
For each of the following problems: Write the INPUT, PROCESS and OUTPUT needed to implement a solution. Write pseudocode for your proposed solution. Provide at least three sample calculations showing a range of possible inputs. Your documentation should be clear and detailed enough that someone else could easily use them to develop a program to implement your solution.
1. You need to calculate the commission for a salesperson working at a store. The commission is calculated by multiplying the salespersons commission rate times their net sales. Net sales are the salespersons new sales for the week minus any returns made during the week. The output should display the salespersons name, net sales, and commission earned. For this problem, think about the possible range of input values for sales and returns. Is there a situation that could occur that you might need to discuss further with the customer?
2. You need to calculate the amount of water (in gallons) needed to fill a swimming pool. The solution should be limited to rectangular and circular pools. To avoid having water overflow when people use the pool, a foot should be left unfilled. Your solution needs to make this adjustment the user will provide the actual depth of the pool. Some useful details: The volume of a rectangular pool is the length * width * depth. The volume of a circular pool is * (radius)2 * depth. You can approximate as 3.14. One cubic foot of water has a volume of 7.48 gallons
Step 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