Problem 1: Build a flowchart 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: (hours = 30 and rate = 8.52) and (hours = 53 and rate = 11.54). Display hourly rate, hours worked, and pay.2.
Problem 2: Build a flowchart 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: (number of miles driven = 298) and (amount of gas used = 12.17).