SammysRentalPriceWithMethods.java - /import...

This preview shows page 1 out of 1 page.

//import com.sun.xml.internal.bind.v2.TODO;import java.util.Scanner;//----------------------------------------------------------------------// a single class solution to the Unit 3 Case problem// - user is asked for the length of a rental in minutes// - hours, minutes, and price are calculated// - the results are displayed along with the motto//----------------------------------------------------------------------public class SammysRentalPriceWithMethods {public static void main(String[] args){int totalMinutes = getRentalLength();displayMotto();displayPrice(totalMinutes);}public static void displayMotto(){System.out.println("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Void type, public static void, Scanner inp, public class SammysRentalPriceWithMethods

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture