Explain your program and use meaningful variable names

Assignment Help Python Programming
Reference no: EM132078899

You need help for your python 3.5.2 version assignment.

Directions:

Define and call main. Add comments at the top to explain your program and use meaningful variable names.

Create a program that will allow the user to enter in payroll data including first name, last name, hours worked, and pay rate. You will need to declare an empty list to store each of these data sets.

Get this data from your user using meaningful prompts. Make sure you use an appropriate typecast for numerical data, but typecasting is not needed for string data since input from the keyboard comes in as a string by default.

Add a while loop that lets the user press enter for the first name if they wish to quit entering data.

At this point, if you printed out the first element in each list, you would have data that looks like the following:
Joe Smith 40 10

Add a loop that will print out all the data for each individual. HINT: The subscripts for the elements you print on a single line will all be the same!

Add a function that will calculate and return the total pay. You do not need to store total pay in a list. Just call the function from within the loop either before the print statement or within the print statement. Display the pay amount using a preceeding $ and two decimal points. You should now have something like this:
Joe Smith 40 10 $400.00

Force the input for the employee's name to all caps. It is also important to use field widths and align financial data to the right. You should now have something like this:

JOE SMITH 40 10 $400.00

It is important that you strip the data of all preceeding and following spaces (white space) which can effect string data. Do this for all the data that has a data type of string. Test by adding a couple preceding and following spaces to all the data you input. If done correctly, the display will have only one space between each piece of data and there will be no error messages.

Reference no: EM132078899

Questions Cloud

System relies on neurotransmitters to function : All of the nervous system relies on neurotransmitters to function. Many drugs and diseases act by changing the levels of neurotransmitters
Sketch and label the meninges of the brain : Sketch and label the meninges of the brain. If you had an infection in your cerebrospinal fluid, what meninges would also be likely to get infected?
Describe the location of the site : Describe the location of the site, type of pollutant(s), how it/they got there, and what is being done to clean up the site/water source.
What is occurring for the thorn phenotype in garfinas plants : Some Garfinas have thorns and some do not. You collect data from wild Garfinas populations and discover that plants with thorns have significantly
Explain your program and use meaningful variable names : Define and call main. Add comments at the top to explain your program and use meaningful variable names.
Explain how hormones are produced : Explain how hormones are produced and if we are able to stimulate more to be made. If so, why would someone want this?
What the definition of the precaution contact precautions : What the definition of the precaution Contact Precautions. When it would be contact precautions implemented and what type of personal
Implement two different numerical algorithms jacobi : The project should be about a real-world problem and should implement two different numerical algorithms jacobi/gauss seidel, interpolation lagrange.
Write a program to generate prime numbers : Write a program to generate prime numbers. Specifically, prompt the user for how many prime numbers to find and generate that many prime numbers.

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