subject

1. develop a simple hotel program. we will have two classes, a hotel class representing an individual hotel and a room class. the hotel class will contain several room objects and will have several operations. we will also have a driver program to test the hotel class. 2. build a hotel class that will store information about a hotel. it will include a name and location. it should also include an array of instances of class room to hold information about each room. it will also have an int called occupiedcnt that keeps track of how many rooms in the hotel are occupied. you must use an array, you cannot use an arraylist. set the array to hold 10 room objects. 3. build a hoteltest class to test your application. your test class should not require any interaction with the user. it should verify the correct operation of the constructor and all public methods in the hotel class. create at least 5 rooms.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 01:10
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Consider the usual algorithm to convert an infix expression to a postfix expression. suppose that you have read 10 input characters during a conversion and that the stack now contains these symbols: (5 points) | | | + | | ( | bottom |_*_| now, suppose that you read and process the 11th symbol of the input. draw the stack for the case where the 11th symbol is
Answers: 2
You know the right answer?
1. develop a simple hotel program. we will have two classes, a hotel class representing an individua...
Questions
question
Mathematics, 27.09.2021 01:00
question
Social Studies, 27.09.2021 01:00
question
Mathematics, 27.09.2021 01:00
question
Social Studies, 27.09.2021 01:00
question
Mathematics, 27.09.2021 01:00
Questions on the website: 13722361