
Drivers are concerned with the mileage their vehicles get. One driver has kept track of several tankfuls of fuel by recording the kilometres(km) driven and litre of fuel used for each tankful. Develop a java application that will input the kms driven and litre of fuel used (both as integers) for each tankful. The program should calculate and display the km per litre obtained for each tankful and print the combined km per litre obtained for all tankfuls up to this point. All averaging calculations should produce floating point results. Use class Scanner and sentinel-controlled repetition to obtain the data from the user.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.