Python Coding
Payroll Calculation
Clear Working Locations
SET
A = Hourly rate
SET
B = Hours put in
Defining Payroll Calculation
Clearing out working locations will allow for more processing (If applicable)
This Flowchart is to describe how a Payroll calculation works
“A” will be defined as the hourly rate for the given job.
“B” will be defined as how many hours you have put in your job.
C=(A)(B)
“C” will be equaled to the hourly rate you get paid at (A), times how many hours you put in at work (B).
Print “C”
END
SET
C = (A)(B)
Lastly, The equation of C=(A)(B) will be the outcome of how much you made in total. When multiplying the amount of hours and the hourly rate, you will get your total outcome of how much you made equaling “C”.
Averaging MPG used in a trip
Clear Working Locations
SET
A = Gallons used (20)
SET
B = Miles driven (345)
Determining the Average MPG Used in a Trip
Clearing out working locations will allow for more processing (If applicable)
This Flowchart is to describe how many miles per gallon were used on a single trip
“A” will be defined as how many gallons used for the trip.
“B” will be defined as how many miles were driven during the trip.
C = 17.25
“C” will be equaled to the amount of miles driven divided by how many gallons of gas was used.
Print “C”
END
SET
C = B÷A
C = 345÷20
Lastly, The equation of C = B÷A
will be the average miles per gallon used during a single road trip.