Question: Write the PYTHON test cases for the following program. Do not write the actual MPG calculation code yet, just the tests. This program will compute
Write the PYTHON test cases for the following program. Do not write the actual MPG calculation code yet, just the tests. This program will compute MPG for a car.
a. Prompt the user to enter
i. the number of miles driven
ii.and the number of gallons used.
B. Print the MPG.
Run the unittest and show that it fails.
2.Start adding the mpg code for each function that will make it pass the related tests. Finish all necessary coding to pass each test.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
