Disabled individuals open jars and containers

Assignment Help Python Programming
Reference no: EM13524748

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:

 

 

 

 

Lab 12.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 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:

 

 

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.

Reference no: EM13524748

Questions Cloud

Find what speed does the first escape pod measure : A spaceship in distress sends out two escape pods in opposite directions. One travels at a speed v1 = 0.60c in one direction, What speed does the first escape pod measure for the second escape pod
Evaluate the potential of a zinc electrode immersed : Calculate the potential of a zinc electrode immersed in 0.0100M in Zn(NH3)4 2+ and 0.25M in NH3 B4 for Zn(NH3)4 2+ is 7.76*10^8
What is the relation between the good and the sun : What is the relation between the Good and the Sun? What is the analogy between the Sun and the Good?
Explain how many seconds would it take to deposit ni metal : How many seconds would it take to deposit 0.500 g of Ni metal on an electrode by passing a 3.00 amp current through a solution of Ni2+
Disabled individuals open jars and containers : What variables are you going to need and what will be their datatype and how would you break this problem into numerous smaller units?
What is the relation of ethics to achieving that aim : According to Aristotle, what is the highest human aim and what is the relation of ethics to achieving that aim? Describe Aristotle’s theory of virtue and character, with particular attention given to 1) The nature of the relationship between virtues ..
How do you find the components of the first displacement : A particle undergoes three successive displacements in a plane, as follows: 3.50 m southwest, 4.50 m east, and 6.00 m in a direction 60.0° north of east. How do you find the components of the first displacement
Define how many grams of cobalt metal can be formed : How many grams of cobalt metal can be formed if a 2.00 amp current is passed through a solution of Co2+ for a period of 20.0 minutes
Describe the categories of aristotelian logic : List and describe the Categories of Aristotelian logic. How are they related to logical statements (i.e. propositions), and how is logical reasoning achieved? In your answer, be sure to explore the distinction between logical truth and validity, and ..

Reviews

Write a Review

Python Programming Questions & Answers

  Python errors

python errors, please correct them that are located in this program,

  Q1if we knew all the ecological social and competitive

q1if we knew all the ecological social and competitive forces that regulate populations and in reality we couldnt what

  Aussie best car abcdeclares that based on its yearly sales

aussie best car abcdeclares that based on its yearly sales it will award a bonus as follows. the bonus will be equally

  Same directory as your program

In the same directory as your program, create a file FF1, and write into it Hello (with a space at teh end). Similarly, create a file FF2, and write into it world! (with a new line, i.e., an ENTER at the end). And create a file DD and write into i..

  Question 1 research 5-8 species within one family of birds

question 1 research 5-8 species within one family of birds. be sure to use primary or very good secondary literature

  Improve the structural design - haunted house game

List the things you changed and the purpose of changing it. Good reasons include making code easier to read and easier to navigate when modifying it.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  Write a function rmduplic(l), where l is any list

Write a function rmDuplic(L), where L is any list. The function should return a list M that contains the same items as L, except that repetitions (duplicates) have been removed: only the first occurrence of each entry is kept (i.e., order is prese..

  Input a temperature as a floating point

Your program should input a temperature as a floating point number with an appended unit letter. It should then print the temperature in all four of the units above

  Write a program that does simple packet routing

Write a program that does simple packet routing and your program will take three command-line arguments:

  Program that creates a dictionary containing

Write a program that creates a dictionary containing the U.S. states as keys and their capitals as values. The program should then randomly quiz the user by displaying

  Grade that will calculate and return a student''s exam

Write a function overall Grade that will calculate and return a student's 2316 exam average. It will accept five parameters, which correspond to exam1,2,3,4 and the Final grade. It should replace the lowest exam grade with the 2nd lowest exam grade

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