Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a class that encapsulates the evolution of the quality ratings of various hotels over the years. (also write a client class to test it).

Write a class that encapsulates the evolution of the quality ratings of various hotels over the years. (also write a client class to test it). Hotel ratings are represented by a number of stars, which can vary from one star to five stars. Your only instance variable should be a two-dimensional array of values representing the quality ratings. Dimension 1 represents the hotel and dimension 2 represents the year. Your constructor can take two parameters representing the number of hotels and the number of years. The ratings can simply be generated randomly. You should include the following methods: - a method returning an array of indexes of the hotels that have earned five stars at least once over the years - a method returning the average rating of all the hotels over the years - a method printing the indexes of the hotels that have earned five stars every year - a method returning true if at least one hotel earned five stars for at least one year; false otherwise

Requirements:

1. Create pseudocode. What steps are needed to make this a working program?

2. Create the Java coding. Create in your own style and words the code that is needed to generate this result. Make sure that you post your name and this assignment at the top of your comments. Make sure you leave comments when needed.

3. Display the result. Provide screenshots or paste results of the working application.

4. Summarize. The client is inquiring what is the program going to do. Let that person know in just a few sentences.

5. Will there be a need for maintenance or any updates in the future?

6. Is there a need to train anyone to run this program? Answer in a few sentences.

Please do as requirements, thanks!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

How do n-type and n-type dopants differ? Explain.

Answered: 1 week ago