Assignment5

Assignment5 - Assignment Name StudentID Lecture Description...

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

View Full Document Right Arrow Icon
// Assignment #: 5 // Name: To be completed // StudentID: To be completed // Lecture: To be completed // Description: The Assignment 5 class displays a menu of choices // (add carpet, compute total prices, search carpet, // list carpets, quit, display menu) to a user // and performs the chosen task. It will keep asking a user to // enter the next choice until the choice of 'Q' (Quit) is // entered. import java.io.*; //to use InputStreamReader and BufferedReader import java.util.*; //to use ArrayList import static java.lang.Math.*; import java.lang.String.*; public class Assignment5 { public static void main (String[] args) { char input1; String inputInfo = new String(); String line = new String(); boolean found=false; // ArrayList object is used to store carpet objects ArrayList carpetList = new ArrayList(); try { printMenu(); // print out menu // create a BufferedReader object to read input from a keyboard InputStreamReader isr = new InputStreamReader (System.in); BufferedReader stdin = new BufferedReader (isr);
Background image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

Assignment5 - Assignment Name StudentID Lecture Description...

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