An electrical fault may exist in any of the rooms in a business. The business has three buildings B1, B2 and B3 with 2, 3 and 4 floors in the buildings respectively. If each floor has 4 rooms, draw a tree diagram representing a sample space.
An electrical fault may exist in any of the rooms in a business. The business has...
Write a complete Java program with methods that prompt user for the number of floors, rooms, occupied rooms in a hotel. You must validate floors, rooms, occupied rooms. Compute vacant rooms, occupancy rate on each floor and display rooms, occupied rooms, vacant rooms and occupancy rate for each floor. Use the given method names. See validation rules below: 1. getFloors(). This method prompts user for number of floors in a hotel and returns floors to the caller. 2. testFloors(floors). Do...
(1 point) A building has 4
floors. The building elevator starts from the first floor with 7
passengers and may stop at any of the 3 floors (from the 2nd floor
to the 4th floor). Suppose that each passenger may get out of the
elevator at any of these 3 floors. Note that 7 passengers are
different. How many ways may the 7 passengers get out of the
elevator?
(1 point) A building has 4 floors. The building elevator starts...
C ++ Project Description
The BlueMont chain hotels have 4 different types of
room:
Single room: $60/night
Double room: $75/night
King room: $100/night
Suite room: $150/night
The size of the hotel chains in different locations may be
different in terms of the number of floors and the type and the
number of rooms on each floor.
You are required to write a program that calculates the
occupancy rate and the total hotel income for one night and
displays this information as...
1. An investor has two stocks: stock A and stock B. Each stock may increase in value, decrease in value, or remain unchanged. Consider the experiment of investing in the two stocks and observing the change (if any) in value. a. Construct a tree diagram for this experiment. b. Use the tree diagram to construct the sample space for this experiment. c. If possible, calculate the probability that at least one of the stocks will increase in value. If not...
There are 10 floors in a hotel (numbered from 0 to 9). On each floor there are 26 rooms, each marked with a capital letter of the English alphabet (from "A" to "Z"). Your task is to compute which room was booked most frequently, based on a list of room reservations. The list of reservations consists of N three-character strings. The first character of the string is "+" or "−", which describes whether the room was booked or freed. The...
The floor system shown has a dead load that includes: Floor tile and bedding 17 psf 2VLI20 (2" deep metal deck with 42" of concrete on top) Mechanical ducts = 4 psf Electrical 1 psf Gypsum board ceiling 3 psf Beam self-weight is given by its name (ie. W16x26 is 26 plf) Girder self-weight is given by its name (ie. W30x90 is 90 plf) The floor live load is 150 psf. 45 psf 1. Determine the end reactions for Beams...
The Miami Central Hotel has 440 rooms. Every day, the housekeepers clean any room that was occupied the night before. If a guest is checking out of the hotel, the housekeepers give the room a thorough cleaning to get it ready for the next guest. This takes 25 minutes. If a guest is staying another night, the housekeeper only "refreshes" the room, which takes 20 minutes. Each day, each housekeeper reports for her 8-hour shift, then prepares her cart. She...
The Miami Central Hotel has 420 rooms. Every day, the housekeepers clean any room that was occupied the night before. If a guest is checking out of the hotel, the housekeepers give the room a thorough cleaning to get it ready for the next guest. This takes 25 minutes. If a guest is staying another night, the housekeeper only "refreshes" the room, which takes 20 minutes. Each day, each housekeeper reports for her 8-hour shift, then prepares her cart. She...
A large bowl contains 10 marbles and each marble has a color and a number. The 10 marbles are denoted by B1, B2, B3, B4, B5, R1, R2, R3, G1, G2 where B1 denotes a blue marble with the number 1. Two marbles are drawn from the bowl at random, one after the other, without replacement. a.) describe the sample space N(S) b.) What is the probability of drawing a green marble on the second draw? c.) What is the...
Eleven students arrive at a motel, which has ten vacant rooms. You want to stay with 3 friends in a row (LE four in total), while the remaining seven students are allocated in whichever way. Each student will receive exactly one room. (Hint. Consider another room called 'street to work with 11 students and ll rooms”). 1) How large is the sample space? 2) What is the probability that the 4 friends stay in a row? 3) What is the...