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

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  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.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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