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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here