Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started