As programs become more complex, it becomes increasingly important to plan or design your code before...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
As programs become more complex, it becomes increasingly important to plan or "design" your code before writing it. Designing your code will help you organize its logic. It will also help you keep track of the different possibilities that your program needs to handle. Two tools that programmers use to design their code are flowcharts and pseudocode. You have learned about these tools in the module resources. In this assignment, you will complete a simple flowchart and pseudocode to design a programming solution for a specific problem. Prompt 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 $20 an hour for the first 40 hours that they work. The employee earns overtime, $30 an hour, for each hour they work above 40 hours. Example: If an employee works 60 hours in a week, they would earn $20/hr for the first 40 hours. Then they would earn $30/hr for the 20 hours they worked overtime. Therefore, they earned: ($20/hr 40hrs) + ($30/hr 20 hrs) $800+ $600-$1400 total. For this assignment, you must create pseudocode and a flowchart to design a program that will calculate an employee's 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 As programs become more complex, it becomes increasingly important to plan or "design" your code before writing it. Designing your code will help you organize its logic. It will also help you keep track of the different possibilities that your program needs to handle. Two tools that programmers use to design their code are flowcharts and pseudocode. You have learned about these tools in the module resources. In this assignment, you will complete a simple flowchart and pseudocode to design a programming solution for a specific problem. Prompt 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 $20 an hour for the first 40 hours that they work. The employee earns overtime, $30 an hour, for each hour they work above 40 hours. Example: If an employee works 60 hours in a week, they would earn $20/hr for the first 40 hours. Then they would earn $30/hr for the 20 hours they worked overtime. Therefore, they earned: ($20/hr 40hrs) + ($30/hr 20 hrs) $800+ $600-$1400 total. For this assignment, you must create pseudocode and a flowchart to design a program that will calculate an employee's 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
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
A proton accelerates from rest in a uniform electric field of 670 N/C. At one later moment, its speed is 1.30 Mm/s (nonrelativistic because v is much less than the speed of light). (a) Find the...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
It is the post-apocalyptic era, and hardship and depression run rampant. You are currently at the bottom of a staircase in the basement of an abandoned building looking at what is pure...
-
Read the case study of Statistics regarding the Lawler Grocery Store chain. The use of the sign test is demonstrated in this case study. In your opinion, what is the biggest benefit of the sign test?...
-
How do the price/earnings (P/E) ratio and the market/book (M/B) ratio provide a feel for the firm's return and risk?
-
\(8,211,679\) Find the prime factorization of the given number.
-
How does amortization of lease equipment such as storage tanks and separators differ under the three methods? Include in your answer a discussion of the method used, including which reserves are...
-
1. What risks are present in Jeff Bravermans go big strategy? What benefits would it produce? How likely is the company to realize those benefits? 2. Considering the cost-benefit analysis you...
-
m9-chio Haters Vanances Cinturon Corporation produces highly leather bes Leather stros se $12.00 Direct labor (0.75M $12) 171.00 During the first month of the year, the hose sent pred 78.800 hours at...
-
Grimes Corporation began business in 2017 and incurred losses for its first two years. In 2019, it became profitable. The following table shows Grimess taxable income before consideration of its...
-
The graph of a linear function f is shown a Identify the slope y intercept and x intercept b Write the equation that defines f a The slope is Type an integer or a simplified fraction 10 8 230 200 160...
-
a. When is a change in an accounting principle made in conformity with GAAP? b. What circumstances resultin a change in an accounting principle under the consistency standard?
-
a. Is there explicit or implicit recognition of adequate informative disclosures in the auditor's report? b. What is the objective of the fourth reporting standard?
-
State the four generally accepted standards of reporting.
-
a. Identify and distinguish between two types of prospective financial information. b. What types of service may a CPA perform on such information?
-
a. What factors should an auditor consider in deciding whether financial statements are in conformity with GAAP? b. What is the GAAP hierarchy and how is it organized?
-
A physical inventory of Wrexham Company taken on December 31reveals the following:Per unitInventory ItemUnitsCostNRVCar Audio Equipment-Speakers3459098 2 answers
-
Charles owns an office building and land that are used in his trade or business. The office building and land were acquired in 1978 for $800,000 and $100,000, respectively. During the current year,...
-
Comment honestly and critically on your colleagues team role assessment sheet. Did the ranking surprise you?
-
Make a case for your organisation to become a learning organisation. Outline the journey your organisation will need to make, identifying the milestones it will need to pass.
-
How can creativity be best developed and managed within the workplace?
-
When a manager asks people in conflict to remember the mission and purpose of the organization and to try to reconcile their differences in that context, she is using a conflict management approach...
-
Which is an indirect approach to managing conflict? (a) buffering (b) win-lose (c) workflow interdependency (d) power asymmetry
-
The best time to use accommodation in conflict management is ____________. (a) when quick and decisive action is vital (b) when you want to build credit for use in later disagreements (c) when people...
Study smarter with the SolutionInn App