ALGORITHM EXERCISES

1. Wilma Peterson is paid by the hour. She would like a program that both calculates and displays her weekly gross pay. For this exercise, you do not need to worry about overtime pay, as Wilma never works more than 40 hours in a week. Desk-check your solution`s algorithm using $10 as the hourly pay and 35 as the number of hours worked. Then desk-check it using $15 as the hourly pay and 25 as the number of hours worked.

ALGORITHM PLANNING DOCUMENT

Program Description:

Output:

Input:

Algorithm`s, Processing, & Conditions:

get banned cause someone really needs help gesh sure know how to make others stay away from this site. Maybe someone besides tutors can help.

I have now removed two identical posts from you ... do NOT post any more. That's a good way to get yourself banned.

You must have patience. I don't see any of our tutors online who are experts in programming. You need to wait for them.

jkjk

Program Description:

The program aims to calculate and display Wilma Peterson's weekly gross pay based on her hourly pay rate and the number of hours she worked. The program assumes that Wilma never works more than 40 hours in a week and does not consider overtime pay.

Output:
Wilma Peterson's weekly gross pay

Input:
Hourly pay rate (in dollars)
Number of hours worked

Algorithm Steps, Processing, and Conditions:

1. Start the program.
2. Prompt the user for the hourly pay rate.
3. Read and store the hourly pay rate.
4. Prompt the user for the number of hours worked.
5. Read and store the number of hours worked.
6. Calculate the gross pay by multiplying the hourly pay rate by the number of hours worked.
- gross_pay = hourly_pay_rate * hours_worked
7. Display the gross pay to the user.
8. End the program.

Desk Check using $10 hourly pay rate and 35 hours worked:
- User input:
- Hourly pay rate = $10
- Hours worked = 35
- Calculation:
- gross_pay = $10 * 35 = $350
- Output:
- Gross pay = $350

Desk Check using $15 hourly pay rate and 25 hours worked:
- User input:
- Hourly pay rate = $15
- Hours worked = 25
- Calculation:
- gross_pay = $15 * 25 = $375
- Output:
- Gross pay = $375

The algorithm appears to be correct based on the provided desk checks.