Allow the user to input the no of rooms per floor (up to 3 rooms and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Allow the user to input the no of rooms per floor (up to 3 rooms and a fix size of 3 floors indicated as follow "Ground floor, First floor and Second Floor") one at a time and there is an option to print the rooms that the user entered. If the user tries to enter more than the numbers can be entered, display any message that no more rooms can be entered. Store the data in an array. Include a menu that shows the options to enter (create), rent, update (modify), display. Verify that a correct option is entered. When the user chooses rent option, prompt the user to specify which room no or name to rent. Verify that the user enters a valid no or name. When the user chooses the modify option, the program prompts the user to specify which number to modify. Verify that the user enters a valid number, ask for the new number if not valid and then change the value. Create a class for room offered by a hotel. Data fields include a String to hold the room no. or room name, a number type to hold the amount or price of the room and a String or an integer to hold if the room is available or not. The class name is HotelRoom. Include a constructor that requires arguments for all the three data fields and three get methods that each return one of the data fields value. The class should have instance variables. The class should have input and output method. Your program should use all the methods we discussed. Your class should have a reasonable set of accessors and mutator method, whether your program uses them. You may add other method if you wish. You may also choose the design of the output that you want too. Allow the user to input the no of rooms per floor (up to 3 rooms and a fix size of 3 floors indicated as follow "Ground floor, First floor and Second Floor") one at a time and there is an option to print the rooms that the user entered. If the user tries to enter more than the numbers can be entered, display any message that no more rooms can be entered. Store the data in an array. Include a menu that shows the options to enter (create), rent, update (modify), display. Verify that a correct option is entered. When the user chooses rent option, prompt the user to specify which room no or name to rent. Verify that the user enters a valid no or name. When the user chooses the modify option, the program prompts the user to specify which number to modify. Verify that the user enters a valid number, ask for the new number if not valid and then change the value. Allow the user to input the no of rooms per floor (up to 3 rooms and a fix size of 3 floors indicated as follow "Ground floor, First floor and Second Floor") one at a time and there is an option to print the rooms that the user entered. If the user tries to enter more than the numbers can be entered, display any message that no more rooms can be entered. Store the data in an array. Include a menu that shows the options to enter (create), rent, update (modify), display. Verify that a correct option is entered. When the user chooses rent option, prompt the user to specify which room no or name to rent. Verify that the user enters a valid no or name. When the user chooses the modify option, the program prompts the user to specify which number to modify. Verify that the user enters a valid number, ask for the new number if not valid and then change the value. Allow the user to input the no of rooms per floor (up to 3 rooms and a fix size of 3 floors indicated as follow "Ground floor, First floor and Second Floor") one at a time and there is an option to print the rooms that the user entered. If the user tries to enter more than the numbers can be entered, display any message that no more rooms can be entered. Store the data in an array. Include a menu that shows the options to enter (create), rent, update (modify), display. Verify that a correct option is entered. When the user chooses rent option, prompt the user to specify which room no or name to rent. Verify that the user enters a valid no or name. When the user chooses the modify option, the program prompts the user to specify which number to modify. Verify that the user enters a valid number, ask for the new number if not valid and then change the value. Create a class for room offered by a hotel. Data fields include a String to hold the room no. or room name, a number type to hold the amount or price of the room and a String or an integer to hold if the room is available or not. The class name is HotelRoom. Include a constructor that requires arguments for all the three data fields and three get methods that each return one of the data fields value. Create a class for room offered by a hotel. Data fields include a String to hold the room no. or room name, a number type to hold the amount or price of the room and a String or an integer to hold if the room is available or not. The class name is HotelRoom. Include a constructor that requires arguments for all the three data fields and three get methods that each return one of the data fields value. Create a class for room offered by a hotel. Data fields include a String to hold the room no. or room name, a number type to hold the amount or price of the room and a String or an integer to hold if the room is available or not. The class name is HotelRoom. Include a constructor that requires arguments for all the three data fields and three get methods that each return one of the data fields value. The class should have instance variables. The class should have input and output method. Your program should use all the methods we discussed. Your class should have a reasonable set of accessors and mutator method, whether your program uses them. You may add other method if you wish. You may also choose the design of the output that you want too. The class should have instance variables. The class should have input and output method. Your program should use all the methods we discussed. Your class should have a reasonable set of accessors and mutator method, whether your program uses them. You may add other method if you wish. You may also choose the design of the output that you want too. The class should have instance variables. The class should have input and output method. Your program should use all the methods we discussed. Your class should have a reasonable set of accessors and mutator method, whether your program uses them. You may add other method if you wish. You may also choose the design of the output that you want too.
Expert Answer:
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
You have been asked, as a consultant, by the chief compliance officer of a multi-facility health system to assist in evaluating the organizations current enterprise-wide coding compliance plan for...
-
On July 15, 2016, Cottonwood Industries sold a patent and equipment to Roquemore Corporation for $ 750,000 and $ 325,000, respectively. The book value of the patent and equipment on the date of sale...
-
1. Complete a function "dupFile(const char* name1, const char* name2)" in the attached program. template "prog.c" After its completion, name2 file will have duplicated contents from name1 file...
-
Tom Slater opened an accounting firm on March 1,2010. During the month of March, the business completed the following transactions: Requirements 1. Open, or set up, the following T-accounts: Cash,...
-
You have been hired as a fraud auditor to examine the assets of a company that recently filed for Chapter 11 bankruptcy. The company manufactures and sells circuit boards for childrens computerized...
-
You are negotiating the contract buyout of a professional basketball coach. The annual contract is for $2,500,000 and there are four years remaining. It is anticipated the coach can earn 6% annually...
-
In 2023, Lisa and Fred, a married couple, have taxable income of $400,000. If they were to file separate tax returns, Lisa would have reported taxable income of $225,000 and Fred would have reported...
-
A novice golfer on the green takes three strokes to sink the ball. The successive displacements of the ball are d = 4.02 m to the north, d = 2.10 m northeast, and d3 = 1.18 m at 30.0 west of south
-
On 1 Jan 2020, Uptown Ltd acquired a 40% stake in Downtown Ltd for $220,000 cash. At the time of the acquisition, Downtown's share capital was $300,000, its retained earnings were $200,000, and all...
-
Examine and research the following nine "megatrends" in our economy: Population Mobility The Internet of Things Artificial Intelligence (AI) and Robotics Ageing Population Emerging markets...
-
Write a press release The topic of this press release should be an announcement of an event that will be held at Mount Saint Mary College. It does NOT need to be a real event. The essence of the...
-
Analyze how two significant features of a specific mobile OS keep their devices secure.? Evaluates how features of a specific mobile OS keep their devices secure.?
-
The three recent articles below discuss " Why Do Prices Keep Going Up and What's the Cause of Inflation? a) What is meant by the term inflation? How is inflation measured in the U. S. economy? What...
-
5. Agricultural export subsidies in a small nation The followinggraph shows the market for wheat in Canada, where DC D C is thedemand curve, SC S C is the supply curve, and PW P W is the freetrade...
-
Eleni Cabinet Company sold 2,200 cabinets during 2011 at $160 per cabinet. Its beginning inventory on January 1 was 130 cabinets at $56. Purchases made during the year were as follows: February . 225...
-
Create a JavaFX application that acts as a simple calculator. Create buttons for digits 0-9 and a text field that concatenates digits for the current number as the buttons are clicked. Add additional...
-
Suppose that we want to store digitized audio information in a binary file. An audio signal typically does not change much from one sample to the next. In this case, less memory is used if we record...
-
Draw a picture of an initially empty data structure, as described in the previous exercise, after adding the numbers 2, 8, 4, and 6, in this order.
-
What does it signify physically if the \(x\) component of an object's average velocity is negative over some time interval?
-
What is the relationship between the magnitude of a vector and the vector's \(x\) component?
-
What is the purpose of the unit vector \(\hat{\imath}\) ?
Study smarter with the SolutionInn App