Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the answer to #1 and #2? Please use Gaddis Pseudocode. a8 Add pseudocode for the Input Data, Calculate Average, and Output Results modules

What is the answer to #1 and #2? Please use Gaddis Pseudocode. image text in transcribed
a8 Add pseudocode for the Input Data, Calculate Average, and Output Results modules to the pseudocode created in Review Exercise 37 39. Construct a flowchart for this program (viewing it as a single module). 40. Give three examples of reasonable input data for testing this program. Programming Challenges Each of the following Programming Challenges can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results. For each problem, use peubocode to design a suitable progrum to solve it. Be sure to identify tbe data type of eac variable used I. Prompt for and input a saleswoman's sales for the month (in dollars) and her commission rate (as a percentage). Output her commission for that month. Note that you will need to convert the percentage to a decimal. You will need the following variables: SalesAmount CommissionRate CommissionEarned You will need the following formula: CommissionEarned SalesAmount(CommissionRate/100) 2. The manager of the Super Supermarket would like to be able to compute the unit price for products sold there. To do this, the program should input the name and price of an item per pound and its weight in pounds and ounces. Then it should determine and display the unit price (the price per ounce) of that item and the total cost of the amount purchased. You will need the following variables: Ounces ItemName PoundPrice TotalPrice UnitPrice Pounds You will need the following formulas: UnitPrice = PoundPrice/16 TotalPrice PoundPrice (Pounds+Ounces/16) 3. The owners of the Super Supermarket would like to have a program that computes the monthly gross pay of their employees as well as the employee's net pay. The input for this program is an employee ID number urly rate of pay, and number of regular and overtime hours worked. ross pay is the sum of the wages earned from regular hours and overtime hours; overtime is paid at 1.5 times the regular rate. Net pay is gross pay

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions