Reference no: EM132330173
Question
first program is: you need help with this program called gas_calc.py, which asks the user for the number of miles they drove on a trip
Ask them the number of gallons of gas they used
Then ask the user for the price of gas
Use the input to figure out and display the cost of the trip & the miles per gallon (MPG) for the trip.
Format output as good looking information - a typical 2-column format with text on the left & numbers lined up on the right.
Second program is you need to write program called sales_tax.py: program that asks the user to enter the price of a purchase order. Then, the program figures state sales tax at 5% and county sales tax at 2.5%. The output should include Purchase Order Price, State Tax, County Tax, and Grand Total.
Third program you need help is: called area.py : The area of a rectangle is calculated by taking its length times its width. program which asks the user for 1) their measurement unit, 2) the length of a rectangle, and 3) the width of a rectangle.
The program will calculate the area and display the answer within a sentence, including the units that they are using. Important: Use a rounding and/or a format code, to cut off possible long decimals at 2 places. Test the program to ensure it works with different units, lengths and widths.