Question: answer within a hour please,urgent. DevC++ 2. For question 2, refer to file Test2_Q2.cpp provided. Correct the code so that it can be run and

answer within a hour please,urgent. DevC++
2. For question 2, refer to file Test2_Q2.cpp provided. Correct the code so that it can be run and match the output as in Figure 1. List out all the corrections made to run the code clearly and if NOT, NO marks will be given. (8 marks) Enter the liters used (Between -1 to end): 2 Enter the distance driven : 7 The km/liters for the car tank was 3.5 Enter the liters used (Between -1 to end): 2.5 Enter the distance driven: 11 The km/liters for the car tank was 4.4 Enter the liters used (Between -1 to end): -1 The overall average km/liters was 4 Process exited after 24.55 seconds with return value o Press any key to continue Figure 1: Example output of question 2. Example how to answer: a. Add #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
