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
-
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?...
-
Machine run costs Cost to market the product Machine depreciation Cost of storage Material handling costs Insurance costs Cost of materials Cost of product sales force Overtime expenses engineering...
-
Do you think that the funds flow statement is more factual and less interpretative than the income statement and balance sheet?
-
A construction contract has the following language: It is the responsibility of the contractor to inspect and become familiar with the Project and to acquaint itself thoroughly with all conditions...
-
The Bartram-Pulley Company (BPC) must decide between two mutually exclusive investment projects. Each project costs $6,750 and has an expected life of 3 years. Annual net cash flows from each project...
-
12. Your calculations show that if the wrong link is shared to a potential Democratic voter, there is a strong chance it could result in them changing their vote to Independent or Republican. If you...
-
Selected year-end account balances from the adjusted trial balance as of December 31, 2022, for Tippy Corporation is provided below. Instructions a. Prepare closing entries b. Determine the...
-
Write an algorithm (flowchart OR Pseudocode) for the following problems: 1. Take ten different numbers as input and display the sum of there squares (SS). Example: let the inputs are: 3, 0, -1, 0, 9,...
-
Snowy Corporation allows customers to pay with credit cards. The credit card company charges 2.5% of the total sale. If Snowy makes a sale for $40,000, how much revenue will be recorded? Show your...
-
Mrs. Cabafranca is an Attorney III in Legal Service Department of the Department of Trade and Industry (DTI). She earns a monthly salary P59,353.00.She is a member of GSIS, Pag-IBIG, and PhilHealth....
-
Carol is o receive a payment of the end of each of the next 12 years from a trust account until the account is exhausted. The Balance is currently $212,000 and the rate of return is 9%. How much...
-
Assume sales of $11100, variable costs of $6500, and fixed costs of $2500. Calculate contribution margin and operating income.
-
Hamish Carter is employed as a parking attendant at Crowne Metro Hotel. During the 2023 income year, Hamish received the following amounts: Net Wages from Crowne (PAYGW of $11,000) $59,000 Tips from...
-
C. Write the statement "n is even only if it is odd" as in implication, then write the converse, inverse and its contrapositive.
-
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?
-
Example In January 2004, a Mars Exploration Rover touched down on the surface of Mars and rolled out for exploration ( Figure
-
A battery-operated wall clock no longer keeps timeneither hand moves. Develop a hypothesis explaining why it fails to work, and then make a prediction that permits you to test your hypothesis....
-
Does the snowflake have rotational symmetry in Figure 1.6? If yes, describe the ways in which the flake can be rotated without changing its appearance. Does it have reflection symmetry? If yes,...
Study smarter with the SolutionInn App