Create a raptor program - use class in raptor and in python, Programming Languages

Assignment Help:

In this portion of the lab you will analyze a problem and create a Raptor program to solve it.  Make sure you use a class in Raptor and in Python to solve the problem.  Read the following:

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 employee's 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:  Analyze the problem.  In the table below list the inputs, outputs and a one sentence description of the problem.

Input:

 

Problem Statement:

 

 

.

Output:

 

 

Step 2:What variables are you going to need and what will be their datatype.  (The number of spaces in this table does not necessarily mean these are the only variables\constants.  This problem can be solved a number of different ways.)

Variable\Constant Name

Datatype

 

 

 

 

 

 

 

 

 

 

Step 3:Create a 30,000 view outline of the problem.  How would you break this problem into numerous smaller units?  Place your outline below:

Step 4:Construct your class DeterminePay.

Step 4:In looking at your overall outline of the problem.  Break apart your larger portions into smaller ones.  Place your revised outline below:

Step 5:  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 6:  Test your program using the following data.  At this point don't 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

My output looked like the following:

186_Create a Raptor Program -  Use class in Raptor and in Python.png

Step 7:  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.


Related Discussions:- Create a raptor program - use class in raptor and in python

Draw the sequence diagram for the scenario, Draw the sequence diagram for t...

Draw the sequence diagram for the following scenario of eBroker. Sell Stock The user enters the username and password The system checks that the user is a valid user

Create a structure to represent deck of cards, We want to create a structur...

We want to create a structure that will represent a deck of cards (not necessarily full). Each card has a character (between '2' to '9' and 'T', 'J', 'Q', 'K', 'A') and a suit (dia

Unix help, need a command to : Display user id, first and last names of all...

need a command to : Display user id, first and last names of all the students the class specified by the prefix in alphabetical order by last name from /etc/passwd

Write a program to draw a sketch of a cow, write a program to draw a cow. N...

write a program to draw a cow. Now, draw a cow standing amongst the grass, with (say) 500 blades of grass. Each blade of grass should be a separate random green line. Do all your d

Write and test a simple perl program on the linux platform, Write and test ...

Write and test a simple perl program on the linux platform.  You may use any linux system you wish, including the Suse linux installed in the lab. Activities. Note:  to r

Java source code classes and objects, Design and implement a stringed music...

Design and implement a stringed musical instrument class using the following guidelines: a. Data fields for your instrument should include number of strings, an array of stri

Lmc, Plan, design and dry run a program for the Little Man Computer (LMC) t...

Plan, design and dry run a program for the Little Man Computer (LMC) that produces the same result using a fixed number of 10 iterations.

Optimal solution, what is the optimal solution for this problem? Max 1...

what is the optimal solution for this problem? Max 1A + 1B s.t. 5A +3B 3A + 5B A,B >0

Software tools for structuring complex program, This assignment begins soft...

This assignment begins software tools and techniques for structuring complex programs. Use it to become familiar with these facilities, and ensure you use the speci?ed concepts in

I have to create three batch files, I have to create a bank atm machine usi...

I have to create a bank atm machine using MS-DOS. I am struggling to create LIST ALL ACCOUNTS ROLL-BACK TRANSACTIONS ACCESS AN ACCOUNT

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd