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
-
What are the key principles of Corporate Governance? Provide example for all four principles.
-
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...
-
Straight-Line Depreciation. A company buys an office machine for $5200 on January 1 of a given year. The machine is expected to last for 8 years, at the end of which time its trade-in value, or...
-
What do two earthworms exchange during mating? Explain your answer.
-
Outsourcing production decision (Learning Objectives 1, 6)} Suppose an Olive Garden restaurant is considering whether to (1) bake bread for its restaurant in-house or (2) buy the bread from a local...
-
Kolton Company closes its books on its July 31 year-end. The company does not make entries to accrue for interest except at its year-end. On June 30, the Notes Receivable account balance is $23,800....
-
A proposed cost-saving device has an installed cost of $690,000. The device will be used in a five-year project but is classified as three-year MACRS property for tax purposes. The required initial...
-
Use INDEX and MATCH functions to fill in a table that extracts the amounts shipped between each pair of cities in the accompanying data, which shows the solution to an optimization model that finds...
-
- Betty tried to find derivative of an exponential function f(x) = e2x+4. At first glance, she thoughtf'(x) = (2x + 4)e2x+3. Explain why this is not the derivative of the function and state the...
-
Bond valuation-Semiannual interest Calculate the value of each of the bonds shown in the following table, all of which pay interest semiannually. (Click on the icon located on the top-right corner of...
-
1. what is a customer benefit package its advantage and give example of a service CBP. 2. describe five reasons for a product and service design and give examples
-
A firm has an EBIT of $780,000 per year that is expected to continue in perpetuity.The unlevered cost of equity of the firm is 12 percent and the corporate tax rate is 21 percent.The company also has...
-
Design strategies to increase employee motivation during times of change. Facebook's current implementation and evaluation plans Evaluate the role of leadership in developing an innovative culture....
-
"How can effective motivation management strategies contribute to enhancing employee engagement and productivity within an organization?"
-
Assume that one year ago, you bought 260 shares of a mutual fund for $32 a share, you received a capital gain distribution of $0.60 per share during the past 12 months, and the market value of the...
-
Akramin just graduated with a Master of Engineering in Manufacturing Engineering and landed a new job in Melaka with a starting salary of RM 4,000 per month. There are a number of things that he...
-
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.
-
Identify constraint, then determine product mix (Learning Objective 5) Lifemaster produces two types of exercise treadmills: Regular and Deluxe. The exercise craze is such that Tifemaster could use...
-
Make-or-buy product component (Learning Objective 6) Fiber Systems manufactures an optical switch that it uses in its final product. Fiber Systems incurred the following manufacturing costs when it...
-
Determine product mix for retailertwo stocking scenarios (Learning Objective SJ Each morning, Max Imery stocks the drink case at Maxs Beach Hut in Myrtle Beach, South Carolina. Maxs Beach Hut has 100...
Study smarter with the SolutionInn App