SummerCamp.java - /Assignment 5/Arizona State University...

This preview shows page 1 out of 1 page.

//Assignment #: 5 //Arizona State University - CSE205 // Name: Sofia Mase //StudentID: 1217636459 // Lecture: TTh 10:30-11:45 //Description: The Assignment 5 class displays a menu of choices // (add summer camp, search summer camp title, // list summer camps, 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.util.*; import java.text.NumberFormat; import java.util.Locale; //Create Summer Camp as an absract class public abstract class SummerCamp { //declare protected attributes protected String title; protected String location; protected double weeklyRate; protected int numberOfWeeks; protected double totalCost; //declare the constructor method to initialize the instance variables public SummerCamp(String someTitle, String someLocation, double

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture