Home Help & Support Search Tips Options: Case:



   Need A Tutor?    |   Need Homework Help?                                                                             Help and Support     | Join or Cancel

Exam  1     2     3     4     5     6     7    8     9    10     Midterm   1    2     Final Exam  1   2
Graded Program Assignment   
1   2    3    4    5    6    7    8    9           Python Compiler

Computer Programming
Assignment 2
Miles Payroll


Assignment #2 Part 1 – Miles

#======================================================================================
# PROGRAMMER:       Type your first and last name here
# PROGRAM NAME:     Assignment #02 - Pay Roll
# DATE WRITTEN:     Enter the current date
# PURPOSE:          Use assignment statements to calculate gross Pay of an employee
#
#======================================================================================
# INITIALIZE / DECLARE VARIABLES
Join Now For Answers & Help!!!
 
#======================================================================================
# INPUT STATEMENTS
milesDriven = Join Now For Answers & Help!!!
 
#======================================================================================
# PROCESSING / CALCULATIONS
milesPgallon = Join Now For Answers & Help!!!
#======================================================================================
# OUTPUT STATEMENTS
"CAR MILEAGE INFORMATION"
#======================================================================================
print(Join Now For Answers & Help!!!);
print(" Miles Driven = " Join Now For Answers & Help!!!
print(" Gallons Of Gas Consumed = " Join Now For Answers & Help!!!
print(" Miles Per Gallon = " Join Now For Answers & Help!!!
print(Join Now For Answers & Help!!!);
 
#======================================================================================
# END PROGRAM


Assignment #2 Part 2 – Payroll

#==================================================================================
# PROGRAMMER:       Type your first and last name here
# PROGRAM NAME:     Assignment #02 - Pay Roll
# DATE WRITTEN:     Enter the current date
# PURPOSE:          Use assignment statements to calculate gross Pay of an employee
#
#==================================================================================
# INITIALIZE / DECLARE VARIABLES
Join Now For Answers & Help!!!;
 
#==================================================================================
# INPUT STATEMENTS
employeeName = input(Join Now For Answers & Help!!!);
hoursWorked =  float(input(Join Now For Answers & Help!!!));
payRate = float(input(Join Now For Answers & Help!!!));
 
#==================================================================================
# PROCESSING / CALCULATIONS
grossPay = Join Now For Answers & Help!!!
 
#==================================================================================
# OUTPUT STATEMENTS
print("=" * 45);
print(Join Now For Answers & Help!!!);
print   Join Now For Answers & Help!!!
print("Hours Worked =   Join Now For Answers & Help!!!
print(" Join Now For Answers & Help!!!));
print(" Gross Pay   = $ " + format(Join Now For Answers & Help!!!));
print(Join Now For Answers & Help!!!);
 
#==================================================================================
# END PROGRAM


Exam  1     2     3     4     5     6     7    8     9    10     Midterm   1    2     Final Exam  1   2
Graded Program Assignment   
1   2    3    4    5    6    7    8    9           Python Compiler


Home
Accounting & Finance Business
Computer Science General Studies Math Sciences
Civics Exam
Everything Else
Help & Support
Join/Cancel
Contact Us
 Login / Log Out