Create the algorithms in both flowchart and pseudocode forms forthe following: A. Write a Python function that receives milesdriven and gallons of gas used and returns miles per gallon. B.Write a Python program where the main function uses an inputfunction to get the miles driven (a decimal value) and the gallonsof gas used (an integer value), then writes out the miles pergallon, using the function defined above. Note: Part B has 3functions — (1) mile/gallon calculation – Part A, (2) inputfunction, and (3) main function. Please note you will need 3algorithms here two functions and one the main program.
Expert
OR
PayPal Gateway not configured
OR
PayPal Gateway not configured
PayPal Gateway not configured
PayPal Gateway not configured