Implement a basic Java program using Java Standard Edition

Assignment Help JAVA Programming
Reference no: EM132358289

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 File.rar

Reference no: EM132358289

Questions Cloud

Write Theoretical Framework on Oaks International Inc : Write 3 pages on Oaks International Inc. Include the following points: Background information, Theoretical Framework and Conclusion
Write about Oaks International Inc : Write 3 pages on Oaks International Inc. Include the following points: Background information and Theoretical Framework
Build the foundation for a social media application : 2703ICT Web Application Development Assignment, Griffith University, Australia. Build the foundation for a social media application
Provide a system vison and requirement models for subsystem : HS2011 Systems Analysis and Design Assignment Holmes Institute, Australia. Provide a system vison and requirement models for subsystem
Implement a basic Java program using Java Standard Edition : COSC1295 Advanced Programming Assignment, RMIT University, Australia. Implement a basic Java program using Java Standard Edition
Creating an annotated bibliography calls for the application : MGT502 Business Communication Assignment, Laureate International Universities, Australia. Creating an annotated bibliography calls for the application
What benefits were achieved by implementing the new solution : MIT Australia - MN601 Network Project Management - Case Study Assignment. What benefits were achieved by implementing the new solution
Describe the company capital structure : MFE6200 Corporate Finance Assignment - Using information obtained from FactSet, describe the company's capital structure
Prepare financial ratios related to profitability : Case - Comprehensive Financial Statement Analysis. Evaluate the company's past financial performance: Prepare financial ratios related to profitability

Reviews

len2358289

8/17/2019 12:34:21 AM

All the requirement are in the document attached. This assignment is worth 15% towards your final grade. NOTE - This assignment is of a size and scope that can be done as an individual assignment. Group work is not allowed. A more detailed marking rubric will be provided closer to submission. Submission Details - You must submit a zip file of your project via Canvas. In Eclipse, right click on your project, select Export, select General, then select Archive File to export your project as a zip file.

len2358289

8/17/2019 12:34:17 AM

IMPORTANT - Before submission, check the zip file you submit carefully to make sure that it 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 if all your source code, all .java files exist. You can submit your assignment as many times as you would like prior to the due date. The latest submission will be graded.

Write a Review

JAVA Programming Questions & Answers

  Design an object hierarchy

Design an object hierarchy and design your own UML class diagram to reflect the classes and relationship required by your program.

  Improving problem solving and programming ability

Improving problem solving and programming ability using Java programming language - Improving design ability - implement a system or parts of a system

  Program to display the original value

For each value read, your program should display the original value, the number rounded to the nearest integer, the number rounded to the nearest tenth, the number rounded to the nearest hundredth and the number rounded to the nearest thousandth.

  Find additional amount of sale that each salesperson achieve

It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. The application should ask for the name of each salesperson being compared.

  Design and implement a small and simple email server

Design and implement a small and simple email server using the concept of web based information system (WBIS).

  Implement a custom environment for your maze game

ITECH7201 Software Engineering - Design and implement a custom environment for your maze game. This requires producing your own unique hand-drawn map of the maze game environment.

  Describe the differences between relative and linear layouts

Describe the differences between relative and linear layouts. Why are .png files the preferred type of image resource for the Android device? Write a paragraph that gives at least three reasons.

  You need to implement lispexpressionevaluator

You need to implement LispExpressionEvaluator.java which uses Java API Stack - Compile programs (you are in directory containing Readme file)

  Create java program to simulate the operation of a bank atm

write a Java program to simulate the operation of a bank ATM (cashpoint) system for payment and deposit on an account. In order to make the system fairly simple there is only one bank account and there are 5 cards that can be used to deposit or wi..

  Write cross-reference program which builds a data structure

CSC-220 - Write a cross-reference program which builds a data structure with all words included from a text file and records the line numbers

  Implements the measurable interface

Implement a class Quiz that implements the Measurable interface. A quiz has a score and a letter grade (such as B+).

  Provide method that compellingly differentiates the class

Provide at least one field and one method that compellingly differentiates each class from the others. Do not include constructors, getters, or setters in your description.

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