Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem: A company wants a program that will calculate the weekly paycheck for an employee based on how many hours they worked. For this company,
Problem: A company wants a program that will calculate the weekly paycheck for an employee based on how many hours they worked. For this company, an employee earns $ an hour for the first hours that they work. The employee earns overtime, $ an hour, for each hour they work above hours.
Example: If an employee works hours in a week, they would earn $hr for the first hours. Then they would earn $hr for the hours they worked overtime. Therefore, they earned: $hr hrs$hr hrs $ $ $ total.
For this assignment, you must create pseudocode and a flowchart to design a program that will calculate an employees weekly paycheck.
Write pseudocode to design a programming solution by outlining a series of steps and using appropriate indentation and keywords. As you write your pseudocode, be sure to consider the following:
What input does the computer need?
What steps does the program need to follow to process the input? What output should result?
When might you need to use decision branching? If you used decision branching, did you account for all possible input values?
Did you use appropriate indentation and keywords such as IF ELSE, CALCULATE, and so on throughout your pseudocode?
Create a flowchart to design a programming solution by organizing a series of steps and using appropriate symbols and arrows. As you create your flowchart, be sure to use appropriate arrows and symbols for each of the following:
Start and end points
Input and output
Decision branching
Processing steps
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