Create the algorithms in both flowchart and pseudocodeforms for the following:
A. Write a Python function that receives milesdriven and gallons of gas used and returnsmiles per gallon.
B. Write a Python program where the main function usesan input function to get the miles driven(a decimal value) and the gallons of gas used (an integervalue), then writes out the milesper gallon, using the function defined above.
Note: Part B has 3 functions — (1) mile/galloncalculation – Part A, (2) input function, and (3) main function.Please note you will need 3 algorithms here two functions and onethe main program.
Expert Answer
An answer
PayPal Gateway not configured
PayPal Gateway not configured