Design a tester class called amusementparktester

Assignment Help Computer Engineering
Reference no: EM132128948

Item 4 is the tester program for implementing the Amusement Park.

I am looking for an Amusement Park Tester program that is in Java. None of the answers included the tester program! I need to:

Design a tester class called AmusementParkTester. The tester class has a main() method and tests the functionality of the class AmusementPark as follows:

a. Create AmusementPark and name it "Walden Amusement Park".

b. Create a minimum of three Ticket objects and add them to the bookstore.

c. Create Apparel objects, at least two of each category, and add them to the AmusementPark.

d. Set up a loop to:

i. Display a short menu that allows a user to perform different actions in the gift shop such as looking up tickets or merchandise or purchasing items. Use all of the accessor methods in the AmusementPark to access specific items. Use the given methods to make purchases.

ii. Prompt the user for a specific action.

iii. Depending on the specific action prompt the user for additional input such as the id of a ticket or merchandise category, etc. You might want to use static methods in main() to handle each menu item separately.

iv. Perform the action and display results such as the list of merchandise that the user has requested. Use the toString() method to display AmusementPark items on the screen.

v. Prompt the user for continued access to the AmusementPark or to end the program.

Your program should handle input errors gracefully. For example, if a particular ticket is searched and not found, the program should display a message such as "Selected ticket not found." Feel free to experiment with the tester program in order to develop a more useful program.

Implementation Notes:

1) All accessor methods in AmusementPark must create a new ArrayList to copy objects into the new list. This requires loops to access objects from the corresponding instance fields and adding them to the new ArrayList.

2) Proper error handling is essential for this project.

3) Javadoc must be used to document AmusementPark, Ticket, and Merchandise.

Submission Requirements:

1. Your project submission should have four files for this assignment:

a. Ticket.java - The Ticket class,

b. Merchandise.java - The Merchandise class,

c. AmusementPark.java - The AmusementPark class,

d. AmusementParkTester.java - A driver program for testing your AmusementPark class.

Reference no: EM132128948

Questions Cloud

Write a program to implement a static method : A company uses public Internet to carry its phone service. The voice data will be encrypted before sending to Internet.
Evolution of decision support systems : Conduct some research and provide an example of a Decision Support System for each category.
What are the motivations of the ethical hacker : Discuss the pros and cons of an organization regularly engaging in penetration testing.
Write the name of the type of each data structure : Select an appropriate data structure for each problem below. For each, write the name of the type of each data structure (queue, for example).
Design a tester class called amusementparktester : Display a short menu that allows a user to perform different actions in the gift shop such as looking up tickets or merchandise or purchasing items.
Draw a circuit for one contact switch : Give the configuration of the interrupt associated registers if one door and one window are monitored (using two contact switches)
Describe 5 different federal regulations your company needs : Your company wishes to ensure that know and understand they various regulatory acts they are required comply with and understand.
Calculate the alternating sum of the first digits : Do a search for how to write a for-loop in R. Practice some simple examples from the internet.
Which style of interpreter does scheme use : What will be the behaviour of this code on an interpreter that uses applicative-order evaluation? Explain why.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd