Write a class and a client class that stores hotels ratings


Program: Write a CLASS and a CLIENT CLASS that stores hotels ratings over the years. The number of stars represents hotel ratings. Use a two dimensional integer array to represent the years and hotels. The columns can represent the years and the rows the hotels. Each element of the 2-dimensional array stores an integer value between 1 - 5, which represents the number of "stars" this hotel has.

You can initialize the 2-dim array at the beginning of your program.

In addition, declare a one dimensional String array that stores the names of the hotels and each location corresponds to the hotel in each row of the 2-dim array.

Define another String array containing the years.

Prepare CLASS and a CLIENT CLASS and add comments in code section that will be useful in the future.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a class and a client class that stores hotels ratings
Reference No:- TGS0949838

Expected delivery within 24 Hours