Implement a basic java program using java standard

Assignment Help JAVA Programming
Reference no: EM132836953

Advanced Programming 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 language which allows a hotel named CityLodge to manage the renting and maintenance of two types of hotel rooms: standard hotel rooms and suites.
Common Features of All Hotel Rooms - Each hotel room managed by CityLodge has the following attributes:
• Room id: a string which uniquely identifies each room. A room id must begin with R_ if the room is a standard hotel room and S_ if the room is a suite. For example R_108 or S_559.
• Number of beds: a standard room can have either 1, 2, or 4 beds. A suite always has 6 beds.
• Feature summary: a short string (maximum 20 words) to summarise all the room features. For example "air conditioning, cable TV, Wifi, fridge, electric kettle".
• Room type: CityLodge currently has two types of rental rooms: standard room and suite. For simplicity, we use two values for room type: i.e. Standard and Suite. The different characteristics of those types of rooms are described in the sections below.
• Room status: employees of CityLodge inspect this attribute to determine whether the room is currently available for rent or being rented or under maintenance. For simplicity, we use three values for room status: i.e. Available, Rented and Maintenance.
Furthermore, each room also keeps its own collection of Hiring Records, i.e information about the 10 most recent times that room has been rented. Details of a hiring record is shown in attached file.

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.
• 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.
Start-up Class - You should create a startup class which contains a main method in which an object of the CityLodge class is created and a single method is called on that object to run the entire CityLodge application.

General Implementation Requirements -
• You are required to modularise classes properly. No method should be longer than 50 lines.
• You should aim to provide high cohesion and low coupling.
• You should aim for maximum encapsulation and information hiding.
• Your coding style should be consistent with Java coding conventions.
• You should comment important sections of your code remembering that clear and readily comprehensible code is preferable to a comment.
• Your programs will be marked with Java SE 8.0. Make sure you test your programs with this setting before you make the submission.

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:- Advanced Programming Assignment.rar

Reference no: EM132836953

Questions Cloud

Discuss what kind of teaching approaches you would have : Discuss what kind of teaching approaches you would have used in order to facilitate the learning of a 15 year old student with dyslexia.
Identify 3 disadvantages of countertrade : 2.) Identify 3 disadvantages of countertrade? Explain how counterpurchasing works. Give the cite your information came from for further researching.
Write a brief letter to shareholders based on ethical vision : Imagine that you are the CEO of a pharmaceutical company which produces HIV/AIDS drugs. You have the responsibility to the company's shareholders and employees.
Determine the club accumulated fund on January : Loan interest at 5% per year was still outstanding. Determine the club's accumulated fund on 1 January 2020
Implement a basic java program using java standard : Practise the implementation of various kinds of classes in Java - write a console application in the Java programming language which allows a hotel
Would you recommend being treated for disease at hospital : Would you recommend being treated for the disease at the hospital? Why or why not? Discuss any other point that adds an opinion or presents new information.
Prepare schedule of cost of goods manufactured for the year : Prepare a schedule of cost of goods manufactured for the year. Assume all raw materials are used in production as direct materials
Differences between cultural and marketing values of western : Differences between the cultural and marketing values of Westerners and Asians Global Marketing 8th Edition by Warren J. Keegan
Determine the annual interest rate on the debt contracts : Determine the annual interest rate on the debt contracts. An installment loan for $2,000 that has monthly payments of $66 for the 36 months

Reviews

Write a Review

JAVA Programming Questions & Answers

  Consider the java code

Identify when you would you use an If-Else statement in programming - Consider the Java code

  Write a program that reads in a text file and then computes

Write a program that reads in a text file and then computes and prints a table of letter frequencies. For example, if the file is the text of "A Tale of Two Cities", found in the file at data/tales.txt , the program will print

  Develop a method called min that takes a parameter

Develop a method called min that takes a parameter of an integer array and returns the smallest value stored in the parameter.

  Console application for a small car servicing company

Develop a program for the service department staff - Console application for a small car servicing company

  What is server-side and client-side scripting

What is Server-side and Client-side scripting - Explain the differences between server-side and client - side scripting languages.

  Create dynamic web applications using javaserver pages

Analyze, design, develop, test, and deploy small-to-medium-scale Web applications and Create dynamic Web applications using JavaServer Pages (JSP) technology and Java Servlets

  Write a syntactically correct java program

Give an example from your daily life of some things that could be represented as an Array and how it could be used. Write a syntactically correct Java program to present your example: declarations, initializations and use

  Write a bash script larger x y that compares the sizes

Write a bash script larger X Y that compares the sizes of two specified files X and Y, and reports which file is larger. For example, if X is larger, the output should be "File X is larger", while if Y is larger, the output should be "File Y is la..

  Write a script and verify an logi by reading a file from xl

write a script and verify an logi by reading a file from xl sheet, first time only give the password and get an error message, second time give the email only and get an error message and third time give both email and correct password and get "Signe..

  Eliminate the last comma in the string output

Eliminate the last comma in the String Output which includes array output values from "hourlyTemp[i]" (entire list). My guess is that this needs to incorporate "%d" somehow but my online book won't accept the use of "%d" for some reason. From the boo..

  Instantiate two savingsaccount objects

saver1 and saver2, with balances of $2000.00 and $3000.00, respectively (was trying to figure out the formula, what I have written so far is as follows, and I am trying to see if I missed something

  Calculates the minimum maximum and average for each quiz

Write a Java application that calculates the minimum, maximum, and average for each quiz. Print the output results in a table format using a text area. Use loop and if statement control structures as well as Array data structure

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