Question
i need help with raptor program In this portion of the lab you will analyze the problem listed below. You will figure out what the
i need help with raptor program
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. 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 Methods 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.
Lab 7.2 Raptor
In this portion of the lab you will take the pseudocode you developed above and test it using Raptor.
Step 1: Code in Raptor. Open up Raptor and code this problem. Remember that in order to create a class you need to
run Raptor in Object Oriented mode. Further you need to select UML.
Step 2: Test your program using the following data. At this point dont worry about getting your prices to display only 2
decimal places. We will learn how to do that later.
Hours Worked Rate Gross Deductions Net
37 15.75 $582.75 $203.96 $378.79
20 13.50 $270.00 $94.50 $175.50
15 11.95 $179.25 $62.74 $116.51
Step 3: If your results match the test, then hand in your Raptor program and this lab. Otherwise go back over your
Raptor program and correct any errors.
Handing it all in
1. Once you have finished your lab, put your name on the board so that your lab can be graded. DO NOT leave
until your lab has been graded.
2. Log on to Canvas and locate the Lab #7 Assignment.
3. Submit both your Notepad or Notepad++ file and Raptor file.
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