I’m trying to use the method (getDistance) in my first class (DistanceTravled) to calculate the distance traveled in my second class (DistanceTraveledTest). I have the loop working correctly for the hours, but for some reason the getDistance method will not work correctly and I’ve tried different things to get it to work. I’ve attached my JAVA classes. The output should read like this: Hours you have driven: 3 How fast were you going: 40Hours Distance traveled1 402 803 120Attachment 1Attachment 2import java.util.Scanner;public class DistanceTraveledTest {public static void main(String args) {// TODO Auto-generated method stubint speed;int time;int i;Scanner scan = new…
Consider the following information, and answer the question below. China and England are international trade…
The CPA is involved in many aspects of accounting and business. Let's discuss some other…
For your initial post, share your earliest memory of a laser. Compare and contrast your…
2. The Ajax Co. just decided to save $1,500 a month for the next five…
How to make an insertion sort to sort an array of c strings using the…
Assume the following Keynesian income-expenditure two-sector model: AD = Cp + Ip Cp = Co…