A group of college friends are looking at the mileage their vehicles get while on a road trip to New Mexico. Sam kept a log of him and his friends road trip. He recorded miles driven and how many...


A group of college friends are looking at the mileage their vehicles get while on a road trip to New Mexico. Sam kept a log of him and his friends road trip. He recorded miles driven and how many gallons were used to fill a tank. In a Java program, create an algorithm that uses pseudo-code and top stepwise refiment. The integers are: miles driven AND galons/tank. This program is to calculate and display mpg per trip and print the combined mpg obtained for all trips to this point. This program is expected for all avg. calculations to create floating-point solutions. Class scanner and sentinel-controlled repetition used to get info from the user.



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here