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

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.



Problem Statement:







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












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




















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.

Posted Date: 3/21/2013 5:47:20 AM | Location : United States

Related Discussions:- Create a raptor program - use class in raptor and in python, Assignment Help, Ask Question on Create a raptor program - use class in raptor and in python, Get Answer, Expert's Help, Create a raptor program - use class in raptor and in python Discussions

Write discussion on Create a raptor program - use class in raptor and in python
Your posts are moderated
Related Questions
Special Matrices There are some "special" matrices out there which we may use on occasion. The square matrix is the first special matrix.  A square matrix is any matrix that s

(a)  Create procedures for accessing the root, left subtree and right subtree, and also mutators for changing the root, left subtree and right subtree of an avl argument. (b) Wr

ADO. NET ADO.NET (ActiveX Information Things for .NET) is a set of programs elements that developers can use to accessibility data and data solutions. It is an element of the platf

Implement a two-dimensional table in Prolog. Your program will contain: An insert_entry predicate that takes a table, row, column and an entry and inserts the entry at the g

In the procedure section, it is important to have a clear circuit diagram with component values and a brief, but accurate description of each step taken. 1. Tables for both the

Problem Solving 1. Write Pascal code that accepts as input the names of the students, course work score and exam score for a unspecified number of students who have taken a subjec

how to save bulk entries at a time using collections?

How to do socket programming in C

Problem 6. Demonstrate how and when can you use the commands- vi, cat, chmod, grep, man, pwd, ps, kill, mkdir, rm demonstrating how and when the above 10 commands can be

how do u define a letter in python "NameError: name ''r'' is not defined"