Week 4 Assignment: Getting Started Coding with Python complete solutions correct answers key

Week 4 Assignment: Getting Started Coding with Python Instructions: You will complete this assignment in Python 3.x. Make sure you have downloaded the software and it is installed correctly. You will download it from this site: https://www.python.org/downloads/.You will code the following and submit it in one file. Use the information in the Lessons area for this week to assist you. Save it as a python file (.py), and upload it into the Assignments area for the Week 4 Assignment. 1.   Create a comment block with the following information:Your NameCourse Name, Section (example: ENTD200 B002 Spr15)Instructor nameWeek  # Date completed 2.   Problem 1: Write a program to solve a simple payroll calculation. Find the amount of pay given, hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Use these values to test the calculation: Problem 1A (hours = 30 and rate = 8.52) and Problem 1B (hours = 53 and rate = 11.54). Display hourly rate, hours worked, and pay. Use the print command and make basic mathematical calculations.  Note that these values should only be used to test your solution.  They should not be constant values.  Get the actual values as user input. 3.   Problem 2: Write a program that will calculate the average miles per gallon obtained on a trip. Input the amount of gas used and the number of miles driven. (The formula to calculate miles per gallon is miles per gallon = number of miles driven / amount of gas used. ) Use these values to test the calculation: Problem 2(number of miles driven = 298) and (amount of gas used = 12.17). Use the print command and make basic mathematical calculations.  Note that these values should only be used to test your solution.  They should not be constant values.  Get the actual values as user input. 
Powered by