Question
Can someone please help me create a pseudocode for this! Thank you! In this portion of the lab you will analyze the problem listed below.
Can someone please help me create a pseudocode for this! Thank you!
In this portion of the lab you will analyze the problem listed below. You will figure out what the inputs and outputs are as well as develop a problem statement. You will also determine what variables you will use and create some pseudocode.
A good friend of yours owns a small company that produces a tool the helps disabled individuals open jars and containers. Rather than buy a time clock mechanism, he would like to put an old computer on the warehouse floor that could be used as the time clock and help them manage materials, shipments, etc. Your friend was able to find an inexpensive application to keep track of each employees hours. However, this application did not contain the code to determine how much each employee needs to get paid at the end of the week. Therefore, he has come to you for some help. He would like you to develop a small application that would accept the total number of hours worked and the hourly rate for his employees. The program would then calculate the total pay. He would like this program to keep asking him for employee hours and rate until he enters the word No when asked to continue. The output would be net pay. Net pay is derived from the following equation:
Gross Pay = Hours Worked * Pay Rate
Deductions = Gross Pay * 0.35
Net Pay = Gross Pay Deductions
Step 1: : Open up Notepad or Notepad ++ and enter the following:
Inputs:
Outputs:
Problem Statement:
Remember the problem statement is just a brief summary of what you are trying to do with your code to solve the problem. It should be no more than a sentence or two. Also remember that your inputs and outputs just need to be a listing, such as: at bats, name, etc. As programmers, we define our inputs and outputs in order to start a list of variables we may have to use in the program.
Step 2: While still in Notepad or Notepad++ type in the following:
Variable Name Datatype
Under your headings, start typing in your variables and what you think the datatypes should be. Your choice of datatypes are string, float and integer.
Step 3: While still in Notepad or Notepad++ type in the following:
30,000 foot view
The 30,000 foot view is an outline of what the program needs to do. It should be a bulleted list. For the first couple of labs, you are not going to type in much here because not much is going on.
Step 4: While still in Notepad or Notepad ++ type in the following:
Class DeterminePay
Attributes
Constructor
Method
Return Methods
Under each one of these headings provide more detail about what the class DeterminePay will do, what methods will perform the math and what values will be able to leave the class.
Step 5: The rest of the program. Now detail in Notepad or Notepad++ how the rest of the program will flow and how you plan to use your class.
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