Write a console application in the java programming

Assignment Help JAVA Programming
Reference no: EM132365525

Assignment

You are required to implement a basic Java program using Java Standard Edition 8.0 or higher. This assignment is designed to:

Practise your knowledge of design classes in Java

Practise the implementation of various kinds of classes in Java

Practise the use of polymorphism

Overview

NOTE: Carefully read this document. In addition, regularly follow the Canvas assignment discussion board for assignment related clarifications and discussion.

For this assignment you need to write a console application in the Java programming l anguage which allows a hotel named CityLodge to manage the renting and maintenance of two types of hotel rooms: standard hotel rooms and suites.

Implementation Requirements

Your Hiring Record class must meet the following requirements:

Override the public String toString() method to return a string containing the details of a hiring record in the following format:

recordId:rentDate:estimatedReturnDate:actualReturnDate:rentalFee:lateFee

(notice how the colon is used as a separator)

Implement a public String getDetails() method. This method should build a string and return that string. The returned string should be formatted in a human readable form as shown below. This method

MUST NOT do the actual printing to the console

Implementation requirements for all room classes (standard room and suite)

Each room must maintain its own collection of hiring records. These records store information about the 10 most recent times that room has been rented.

The following methods can be called on any object of type standard room or suite:

public boolean rent(String customerId, DateTime rentDate, int numOfRentDay)

public boolean returnRoom(DateTime returnDate)

public boolean performMaintenance()

public boolean completeMaintenance(DateTime completionDate)

public String toString()

public String getDetails()

Implementing the CityLodge application class

You are required to implement a class named CityLodge which contains a single collection to store up to 50 objects of both types standard room and suite. Objects of type standard room and suite will be added at runtime by the user of your program via Console input using a menu system described below.

Design Requirements

You must work out an object design for the above task. You should take advantage of object-oriented concepts such as composition, inheritance, method overriding, abstract classes, interfaces wherever appropriate.

Class hierarchies, relationships and components must be conceptualised in a relevant manner, based on the problem description and special conditions listed in this document. Furthermore, you must be able to explain how your program design will perform in certain scenarios and circumstances.

It may be necessary for your design to provide more functionality, such as accessors and mutators, than is specified in the above sections here for the mechanics of your design to work.

Attachment:- JAVA Programming.rar

Reference no: EM132365525

Questions Cloud

Describe the USGA technical requirements for golf clubs : Review Snapshot from Practice 4.1: Big Bertha versus the USGA's COR Requirement - Describe the USGA's technical requirement(s) for golf clubs
Critical syntheses that engage all the readings : Assignment - Reading Response: critical syntheses that engage all the readings and course material. Critical engagement with classroom discussion
Explain denial codes and ways to correct errors : General Appeals Process - Explain denial codes and ways to correct errors. Are there times the claims should be discussed with the provider
Write research paper on key themes in American Studies : Write an original four-to-six-page research paper that focuses on key themes in American Studies. Choose a cultural artifact
Write a console application in the java programming : Take advantage of object-oriented concepts such as composition, inheritance, method overriding, abstract classes, interfaces wherever appropriate.
What is the difference between an RA and an EOB : What is the difference between an RA and an EOB? Describe the purpose of the general appeals process, and identify the basic steps within the process
What is the equilibrium population density : SCIE5500 - Modelling Natural Systems - The University of Western Australia - Introduction to Modelling Population Dynamics
Value sensitive design of complex product systems : Value Sensitive Design (VSD) describes theoretically grounded approaches to design technologies.VSD provides detailed and principled explanation of human value
How does knowledge of the groups shape or bias your view : Students are typically consumers in the school community. To what extent, if at all, is it reasonable to expect students to go beyond being consumers to being.

Reviews

len2365525

9/4/2019 12:30:00 AM

Eclipse IDE for Java DevelopersVersion: (4.12.0)Build id: 20190614-1200 PAge 11of the requirement file says " You must submit a zip file of your project via Canvas. In Eclipse, rightclick on your project, select Export, select General, then select Archive File to export your project as a zip file.? Before submisison, check the zip file you submit carefully to make sure that i t contains all your code,i.e. all .java files.? After you have submitted the zip file on Canvas, download your submission from Canvas again and unzip, check i f all your source code, all .java files exist.

Write a Review

JAVA Programming Questions & Answers

  What are design patterns and why do we use them

What are design patterns? Why do we use them? Select and submit a Creational Design Pattern; explain why you selected that particular pattern.

  Program to allow the user to complete the 1040ez form

Create a program to allow the user to complete the 1040EZ form. You will notice that some lines on the form require the user to enter information

  Create a class in java to enable its object to be persiste

How do you create a class in Java to enable its object to be persistent? What are Java data streams and how are they used to facilitate storage and retrieval of persistent objects?

  Create a default and parameterized constructor

Create a default and parameterized constructor. Create sets/gets for all instance variables. Create a get method to calculate and return the profit or loss.

  Design RECURSIVE algorithm to find greatest common divisor

Design a RECURSIVE algorithm to find the greatest common divisor of two positive integers p and q, using the property

  What will unboxing do with null values

Java Question: Whatwill unboxing do with null values?

  Write java program to evaluate postfix expressions

Write a java program to evaluate postfix expressions containing complex numbers using a stack. This program should contain two classes.

  Create web application uses visual web java server

Create the Web application which uses Visual Web Java Server Faces framework and either Apache Tomcat or Glassfish as the server.

  How do the two implementations differ

Give an example of a program that uses the non-generic version of a class from the Java collection framework and the equivalent program that uses the generic version.How do the two implementations differ?

  Determine the classes that are required for the design

MN404- T1 2017 Fundamentals of Operating Systems and Java Programming Assessment. Determine the classes that are required for the design

  Multiple inheritance and casts

An important aspect of C++ object and virtual function table (vtbl) layout is that if class D has class B as a public base class, then the initial segment of every D object must look like a B object, and similarly for the D and B virtual function ..

  Compute the sum of odd numbers

Compute the minimum number, compute the sum of odd numbers, count negative numbers, and compute the sum of numbers in the array are less than the last number

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