Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

What are the main differences between rigid and flexible pavements?

Answered: 1 week ago

Question

What is the purpose of a retaining wall, and how is it designed?

Answered: 1 week ago

Question

How do you determine the load-bearing capacity of a soil?

Answered: 1 week ago

Question

what is Edward Lemieux effect / Anomeric effect ?

Answered: 1 week ago