Discover the best answers at Westonci.ca, where experts share their insights and knowledge with you. Get quick and reliable solutions to your questions from knowledgeable professionals on our comprehensive Q&A platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Drivers are concerned with the mileage obtained by their automobiles. one driver has kept track of several tankfuls of gasoline by recording miles driven and gallons used for each tankful. develop a sentinel-controlled-repetition script that prompts the user to input the miles driven and gallons used for each tankful. the script should calculate and display the miles per gallon obtained for each tankful. after processing all input information, the script should calculate and display the combined miles per gallon obtained for all tankfuls (that is, total miles driven divided by total gallons used)

Sagot :