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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!