Course Hero Logo

Assignment5.java - / Assignment #: / Arizona State / Name:...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 2 out of 3 pages.

// Assignment #: 5// Arizona State University - CSE205//Name: Punit Denani//StudentID: 1210836234//Lecture: MWF 10:30//Description: The Assignment 5 class displays a menu of choices//(add a member or non-member customer,//compute their payment amount, count certain students,//list students, quit, display menu) to a user.//Then it 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 BufferedReaderimport java.util.*;//to use ArrayListimport java.text.NumberFormat;public class Assignment5{public static void main (String[] args){char input1;String inputInfo = new String();String line = new String();boolean operation;// ArrayList object is used to store customer objectsArrayList<Customer> customerList = new ArrayList<Customer>();try{printMenu();// print out menu// create a BufferedReader object to read input from a keyboardInputStreamReader isr = new InputStreamReader (System.in);BufferedReader stdin = new BufferedReader (isr);

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
N/A
Tags
Object Oriented Programming, public class Assignment5, a switch case

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture