Lab03b - out.print("Enter the minutes ::...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//© A+ Computer Science - www.apluscompsci.com //Name - //Date - //Lab - import java.util.Scanner; import static java.lang.System.*; import static java.lang.Math.*; public class Lab03b { public static void main( String[] args ) { Scanner keyboard = new Scanner(in); out.print("Enter the distance :: "); int dist = keyboard.nextInt(); out.print("Enter the hours :: "); int hrs = keyboard.nextInt(); out.print("Enter the minutes :: "); int mins = keyboard.nextInt(); MilesPerHour test = new MilesPerHour(dist, hrs, mins); test.calcMPH(); test.print(); out.print("Enter the distance :: "); dist = keyboard.nextInt(); out.print("Enter the hours :: "); hrs = keyboard.nextInt();
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: out.print("Enter the minutes :: "); mins = keyboard.nextInt(); test.setNums(dist,hrs,mins); test.calcMPH(); test.print(); out.print("Enter the distance :: "); dist = keyboard.nextInt(); out.print("Enter the hours :: "); hrs = keyboard.nextInt(); out.print("Enter the minutes :: "); mins = keyboard.nextInt(); test.setNums(dist,hrs,mins); test.calcMPH(); test.print(); out.print("Enter the distance :: "); dist = keyboard.nextInt(); out.print("Enter the hours :: "); hrs = keyboard.nextInt(); out.print("Enter the minutes :: "); mins = keyboard.nextInt(); test.setNums(dist,hrs,mins); test.calcMPH(); test.print(); } }...
View Full Document

Page1 / 2

Lab03b - out.print("Enter the minutes ::...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online