Python coding Variables, IF/THEN/ELSE, Loops
Flowcharts
Problem 1: Pay Calculation
Start
Set choice to Y
Choice = Y
Hours and rate positive
Enter rate
Enter hours
End
Yes
No
Pay = hours x rate
Show Pay
Enter choice
Yes
No
End
Problem 2: average miles/gallon Calculation
Start
Set choice to Y
Choice = Y
Miles and gallons positive
Enter gallons
Enter miles
End
Yes
No
Avg = miles / gallons
Show Avg
Enter choice
Yes
No
End