Question: Starting Out with Java (6th Edition) Distance File Page.345 #3 For Distance File, use a while loop. There are some inconsistancies in the author's UML
Starting Out with Java (6th Edition)
Distance File Page.345 #3
For Distance File, use a while loop.
There are some inconsistancies in the author's UML diagram.
It's fine if you make everything integers for this program .
DistanceFileDemo.Java
DistanceTravelledOutput.txt
I have to use this UML

Output must look like the output below

Distance speed double hours int + Distance(s : double, h : int) + setSpeed(s : double) : void + setHours(h: int) void getSpeed) : double + getHours): int + getDistance int
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
