Project Outcomes:
Develop a python program that uses:
decision constructs
looping constructs
basic operations on an list of objects (find, change, access all
elements)
more than one class and has multiple objects
Project Requirements:
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 a list of class Room to hold
information about each
room. It will also have a int called occupiedCnt that keeps track
of how many rooms in
the hotel are occupied.
Specific Requirements for the Hotel Class:
1. The Hotel class has two constructors
1. __init__ function, will read in the hotel name and location from
hard-coded
values in the tester class, such as Beach Marriot Pensacola, it
will also assign
numOfRooms to zero. numOfRooms indicates how many rooms
are in the hotel.
It will create a 10 element array.
2. The Hotel will have an addRoom method that will create each
room with the required
information: room number, bed type, smoking/non-smoking, and the
room rate. Create at
least 5 rooms with different characteristics. Each room will also
have a boolean field
called occupied attribute that will be set to false when the room
is created. Don't forget
to increment the numOfRooms instance variable. Example
values for the rooms are:
101 queen s 100
102 king n 110
103 king n 88
104 twin s 100
105 queen n 99
3. The UML class diagram for the Hotel class will look like
this:
Hotel
theRooms: Array Room[]
name: String
location: String
occupiedCnt: int
numOfRooms: int
def __init(self)__(String,String)
def isFull(self) : boolean
def isEmpty(self) : boolean
def addRoom(self ,roomnumber,bedtype,smoking,price)
def addReservation(self,occupantName ,smoking,
bedtype)
def cancelReservation(self,occupantName)
def findReservation(self,occupantName):
def printReservationList(self)
def getDailySales(self) :
def occupancyPercentage(self) :
Setters and getters methods for name and location.
4. isFull() – returns a boolean that is true if all the rooms in
the hotel are occupied.
5. isEmpty() – returns a boolean that is true if all the rooms in
the hotel are unoccupied.
6. The addReservation() method takes three parameters: the
occupant’s name
(String), smoking or non-smoking request (char), and the requested
bed type (String).
When this method is called, the hotel will search the list of its
rooms for one that matches
the bed type and smoking/non-smoking attributes. If an unoccupied
room with the correct
attributes is found, the renter's name will be set and the
occupied attribute will be set
to true. In either case a message will be printed that will state
whether or not the
reservation was made.
7. When the cancelReservation() method executes, the hotel will
search for the
name of the visitor in each room. If it is found, the occupied
attribute will be set to false.
In either case a message will state whether or not the reservation
was cancelled. This
method calls the private utility method findReservation()to scan
the list of rooms
looking for a guest by name. It will return the index of the room
in the Array of rooms
or NOT_FOUND if the room is not found, which will be declared
as:
NOT_FOUND = -1;
8. findReservation() will take in a String representing the
occupant’s name and
search the occupied rooms for a reservation with that person’s
name. It will return the
index of the room or NOT_FOUND if not found.
9. printReservationList() will scan through all the rooms and
display all details
for only those rooms that are occupied. For example:
Room Number: 102
Occupant name: Pinto
Smoking room: n
Bed Type: king
Rate: 110.0
Room Number: 103
Occupant name: Wilson
Smoking room: n
Bed Type: king
Rate: 88.0
10. getDailySales() will scan the room list, adding up the dollar
amounts of the room
rates of all occupied rooms only.
11. occupancyPercentage() will divide occupiedCnt by the total
number of rooms to
provide an occupancy percentage.
12. __str__ – returns a nicely formatted string giving hotel and
room details (by calling
the __str__ in the Room class) for all the rooms in the hotel. For
example:
Hotel Name : Beach Marriot
Number of Rooms : 5
Number of Occupied Rooms : 1
Room Details are:
Room Number: 101
Occupant name: Not Occupied
Smoking room: s
Bed Type: queen
Rate: 100.0
Room Number: 102
Occupant name: Coffey
Smoking room: n
Bed Type: king
Rate: 110.0
Room Number: 103
Occupant name: Wilson
Smoking room: n
Bed Type: king
Rate: 88.0
Room Number: 104
Occupant name: Not Occupied
Smoking room: s
Bed Type: twin
Rate: 100.0
Room Number: 105
Occupant name: Not Occupied
Smoking room: n
Bed Type: queen
Rate: 99.0
13. The Room class diagram will look like this:
Room
roomNum: int
bedType: String
rate: double
occupantName: String
smoking: char
occupied: boolean
def __init__(int,String,char,double)
def getBedType(): String
def getSmoking():
char
def getRoomNum(): int
def getRoomRate(): double
def getOccupant(): String
def setOccupied(boolean)
def setOccupant(String)
def setRoomNum(int)
def setBedType(String)
def setRate(double)
def setSmoking(char)
def isOccupied(): boolean
1. The __init__() for a Room takes an int (room number), String
(bed type), char (s or n for
smoking or non-smoking)), and a double (room rate).
2. isOccupied() method returns true if the room is occupied, false
otherwise.
3. __str__() provides all the details of a room - room number,
name of guest(if
occupied) , bed type, smoking/non-smoking, rental rate. This should
all be formatted
nicely with one attribute on each line using the
'\n' escape character. See example above.
4. Several accessor and mutator methods for the Room class.
# Use list to store the room details.
You have to store required data in the list/database. You can store
hotel name, address, and
all rooms. Customer data in database tables.
In: Computer Science
1.
Majer Corporation makes a product with the following standard costs:
| Standard Quantity or Hours | Standard Price or Rate | Standard Cost Per Unit | ||
| Direct materials | 6.7 ounces | $3.00 per ounce | $20.10 | |
| Direct labor | 0.7 hours | $18.00 per hour | $12.60 | |
| Variable overhead | 0.7 hours | $3.00 per hour | $2.10 |
| Originally budgeted output | 5,700 units |
|---|---|
| Actual output | 5,300 units |
| Raw materials used in production | 30,800 ounces |
| Actual direct labor-hours | 7,960 hours |
| Purchases of raw materials | 33,200 ounces |
| Actual price of raw materials | $92.90 per ounce |
| Actual direct labor rate | $102.40 per hour |
| Actual variable overhead rate | $4.80 per hour |
The company applies variable overhead on the basis of direct labor-hours. The direct materials purchases variance is computed when the materials are purchased.
The materials quantity variance for February is:
2.
Doogan Corporation makes a product with the following standard costs:
| Standard Quantity or Hours | Standard Price or Rate | |||
| Direct materials | 9.2 grams | $3.80 per gram | ||
| Direct labor | 0.3 hours | $38.00 per hour | ||
| Variable overhead | 0.3 hours | $8.80 per hour |
The company produced 7,000 units in January using 41,110 grams of direct material and 2,560 direct labor-hours. During the month, the company purchased 46,200 grams of the direct material at $3.50 per gram. The actual direct labor rate was $37.30 per hour and the actual variable overhead rate was $8.60 per hour.
The company applies variable overhead on the basis of direct labor-hours. The direct materials purchases variance is computed when the materials are purchased.
The variable overhead rate variance for January is:
3.
Doogan Corporation makes a product with the following standard costs:
| Standard Quantity or Hours | Standard Price or Rate | |||
| Direct materials | 2.0 grams | $7.00 per gram | ||
| Direct labor | 0.9 hours | $17.00 per hour | ||
| Variable overhead | 0.9 hours | $3.00 per hour |
The company produced 4,500 units in January using 10,150 grams of direct material and 2,130 direct labor-hours. During the month, the company purchased 10,720 grams of the direct material at $ 7.35 per gram. The actual direct labor rate was $ 17.90 per hour and the actual variable overhead rate was $ 2.80 per hour.
The company applies variable overhead on the basis of direct labor-hours. The direct materials purchases variance is computed when the materials are purchased.
The materials quantity variance for January is:
In: Accounting
Modern Furniture Ltd competes in the modern furniture retail market alongside Adair’s, Harvey Norman and other major furniture retailers. The market is highly competitive prompting management to review working capital practices. Detailed below are relevant figures and ratios to assist you in evaluating Modern Furniture’s working capital management.
Working Capital Ratios 2014 2015 2016 2017
Accounts Receivable Days 30.0 days 38.6 days 44.0 days 51.0 days
Inventory Days 30.0 days 34.5 days 37.0 days 46.0 days
Accounts Payable Days 29.6 days 30.2 days 38.2 days 53.0 days
Note: Ratios are based on assuming end year figures are the average throughout the majority of the year
Extracts from Financial Statements
Cash on hand 0.35mill 0.3mill .01mill .005mill
Sales – all on credit 15 mill 14 mill 15mill 16mill
Accounts Receivable Balance 1.2 mill 1.5 mill 1.8 mill 2.2 mill
Inventory 0.66 mill 0.79 mill 0.9 mill 1.17mill
Cost of Goods Sold 8.0 mill 8.5 mill 8.9 mill 9.3 mill
Accounts Payable 0.65mill 0.7 mill 0.95 mill 1.35 mill
Budgeted Figures
Cash on hand 0.3 mill 0.3 mill 0.31 mill 0.32 mill
Accounts Receivable Balance 1.2 mill 1.22 mill 1.28 mill 1.35 mill
Inventory Balance 0.7 mill 0.72 mill 0.78 mill 0.80 mill
Accounts Payable 0.64 mill 0.65 mill .70 mill 0.71 mill
Accounts Receivable Terms 30 days 30 days 30 days 30 days
Accounts Payable Terms 45 days 45 days 45 days 45 days
Industry Averages
Accounts Receivable Days 30.1 days 29.6 days 30.4 days 33.1 days
Inventory Days 30 days 31 days 33 days 32.2 days
Accounts Payable Days 30 days 28.5days 17 days 15 days
Review Modern Furniture’s working capital management performance utilizing the above information / benchmark figures / industry averages and budgets (250 words).
Once you have analyzed their performance, provide some strategies and recommendations to assist in improving any weaknesses in working capital management referring to the management of components of working capital including cash, inventory, accounts receivable and accounts payable. As part of your recommendations identify the associated potential benefits and costs of each recommendation? (250 word limit)
In: Accounting
Net Present Value Method—Annuity for a Service Company
Amenity Hotels Inc. is considering the construction of a new hotel for $81 million. The expected life of the hotel is 7 years with no residual value. The hotel is expected to earn revenues of $22 million per year. Total expenses, including depreciation, are expected to be $16 million per year. Amenity Hotels’ management has set a minimum acceptable rate of return of 9%.
a. Determine the equal annual net cash flows
from operating the hotel. Enter your answer in million.
Round your answer to two decimal places.
$ million
| Present Value of an Annuity of $1 at Compound Interest | |||||||
| Periods | 8% | 9% | 10% | 11% | 12% | 13% | 14% |
| 1 | 0.92593 | 0.91743 | 0.90909 | 0.90090 | 0.89286 | 0.88496 | 0.87719 |
| 2 | 1.78326 | 1.75911 | 1.73554 | 1.71252 | 1.69005 | 1.66810 | 1.64666 |
| 3 | 2.57710 | 2.53129 | 2.48685 | 2.44371 | 2.40183 | 2.36115 | 2.32163 |
| 4 | 3.31213 | 3.23972 | 3.16987 | 3.10245 | 3.03735 | 2.97447 | 2.91371 |
| 5 | 3.99271 | 3.88965 | 3.79079 | 3.69590 | 3.60478 | 3.51723 | 3.43308 |
| 6 | 4.62288 | 4.48592 | 4.35526 | 4.23054 | 4.11141 | 3.99755 | 3.88867 |
| 7 | 5.20637 | 5.03295 | 4.86842 | 4.71220 | 4.56376 | 4.42261 | 4.28830 |
| 8 | 5.74664 | 5.53482 | 5.33493 | 5.14612 | 4.96764 | 4.79677 | 4.63886 |
| 9 | 6.24689 | 5.99525 | 5.75902 | 5.53705 | 5.32825 | 5.13166 | 4.94637 |
| 10 | 6.71008 | 6.41766 | 6.14457 | 5.88923 | 5.65022 | 5.42624 | 5.21612 |
b. Compute the net present value of the new
hotel, using the present value of an annuity of $1 table above.
Round to the nearest million dollars. If required,
use the minus sign to indicate a negative net present value.
Net present value of hotel project: $ million
c. Does your analysis support construction of
the new hotel?
Yes/No , because the net present value is positive/negative .
In: Accounting
Net Present Value Method—Annuity for a Service Company
Welcome Inn Hotels is considering the construction of a new hotel for $70 million. The expected life of the hotel is 10 years with no residual value. The hotel is expected to earn revenues of $19 million per year. Total expenses, including depreciation, are expected to be $14 million per year. Welcome Inn management has set a minimum acceptable rate of return of 10%. Assume straight-line depreciation.
a. Determine the equal annual net cash flows
from operating the hotel. Round to the nearest million
dollars.
$ million
| Present Value of an Annuity of $1 at Compound Interest | |||||||
| Periods | 8% | 9% | 10% | 11% | 12% | 13% | 14% |
| 1 | 0.92593 | 0.91743 | 0.90909 | 0.90090 | 0.89286 | 0.88496 | 0.87719 |
| 2 | 1.78326 | 1.75911 | 1.73554 | 1.71252 | 1.69005 | 1.66810 | 1.64666 |
| 3 | 2.57710 | 2.53129 | 2.48685 | 2.44371 | 2.40183 | 2.36115 | 2.32163 |
| 4 | 3.31213 | 3.23972 | 3.16987 | 3.10245 | 3.03735 | 2.97447 | 2.91371 |
| 5 | 3.99271 | 3.88965 | 3.79079 | 3.69590 | 3.60478 | 3.51723 | 3.43308 |
| 6 | 4.62288 | 4.48592 | 4.35526 | 4.23054 | 4.11141 | 3.99755 | 3.88867 |
| 7 | 5.20637 | 5.03295 | 4.86842 | 4.71220 | 4.56376 | 4.42261 | 4.28830 |
| 8 | 5.74664 | 5.53482 | 5.33493 | 5.14612 | 4.96764 | 4.79677 | 4.63886 |
| 9 | 6.24689 | 5.99525 | 5.75902 | 5.53705 | 5.32825 | 5.13166 | 4.94637 |
| 10 | 6.71008 | 6.41766 | 6.14457 | 5.88923 | 5.65022 | 5.42624 | 5.21612 |
b. Calculate the net present value of the new
hotel using the present value of an annuity of $1 table above.
Round to the nearest million dollars. If required, use the minus
sign to indicate a negative net present value.
Net present value of hotel project: $ million
c. Does your analysis support the purchase of
the new hotel?
, because the net present value is .
In: Accounting
Theoretical question:
What is the Research Purpose, Objective, and Design?
Also: What is the sampling method & size, data collection method as well as data analysis & Presentation?
The American Conservatory theater, a major repertory theater located in San Francisco, was completing its tenth season. The management team at ACT decided to conduct a major research study, intended to help their planning effort. A questionnaire was deceloped and mailed to their approximately 9,000 season subscribers. A return rate of 40% was obtained. A sample of 982 of these turned questionnaires was selected for analysis.
One of the major interest ACT management was in developing an understanding of the dynamics of the process whereby individuals became ACT subscriber. To assist in this process, whereby individuals became ACT suscribers. To assist in this this process, the sample was divided into four different groups according to their behavior pattern over the 5 seasons.
1. Continual subscriber (32%)- subscribed all 10 seasons
2. Gradual 31%- one or more seasons of attendance followed by becoming a suscriber
3. Sudden 21%- became a subscriber without attending prior performance
4. miscellaneous patterns 21%
The existence of a substantial "sudden subscriber" group was surprising and ran counter to conventional belief among theater managers that people were first enticed to attend a few performances at a particular theater and only after they had some positive experiences with this theater would they become suscribers.
The next step in the research study was to attempt to identify characteristics of the continual, gradual, and sudden subscriber groups that might be of use in understanding the segment differences and as inputs in the development of audience building and retention programs. Five variables appeared to be useful in this regard.
1. Years resident in the San Francisco Bay Area, measured on a scale ranging from 1= two years or less to 5= more than 20 years.
2 Age of suscribers, measured on a scale ranging from 1=25 years old or less to 5= more than 65 years old.
3.Household income, measured on a scale ranging from 1=50,000 per year.
4. whether the subscriber spend more than 20 hours each week watching TV, measured as a dummy variable: 1 if yes, 0 ifno
5. attendence at 6 other institutions that is ballet, civic light, opera, DeYoung museum, museum of modern art, opera, and symphony. The attendance score is the number of the six different activities that the respondent attended at least once in the previous year
In: Economics
8. Peter Griffin calculates that his portfolio's risk, as measured by the standard deviation, is 19.67%. His portfolio is made up of many stocks from just two companies, South Park Company and Quahog Company. South Park Co.'s returns have a standard deviation of 12.9% and Quahog Co.'s returns have a standard deviation of 28.84%. If the weight of Quahog Co. in his portfolio is 48.21%, what is the correlation between the returns of Quahog and South Park.
9.
A portfolio has an excess return of 15.9 % and a standard deviation of 15.23 %. What is the Sharpe Ratio for this portfolio?
In: Finance
3. Design and draw a circuit using the cascade system to operate two cylinders (A and B) which, on the operation of a start valve, produces the sequence A – B + B – A+. The cylinders should park in the positions B – A + when the start switch is in the ‘off’ position.
4. Modify the circuit designed for question 3 to provide an emergency stop which will park both cylinders in the extended position (i.e. A + B +).
5. Modify the circuit designed for question 3 to provide a fail safe. The fail safe should:
(a) act in the event of a reduced pressure at inlet to the group selecting valve
(b) park the cylinders in the retracted position
In: Mechanical Engineering
Investment Timing Option: Decision-Tree Analysis Kim Hotels is interested in developing a new hotel in Seoul. The company estimates that the hotel would require an initial investment of $22 million. Kim expects the hotel will produce positive cash flows of $3.74 million a year at the end of each of the next 20 years. The project's cost of capital is 12%.
What is the project's net present value? A negative value should be entered with a negative sign. Enter your answer in millions. For example, an answer of $1.2 million should be entered as 1.2, not 1,200,000. Round your answer to two decimal places. $ million
In: Finance
Seong Hotels is interested in developing a new hotel is Seoul. The initial investment of the project is $20 million, but cashflows could differ if the government imposes a hotel tax. There is a 60% chance a hotel tax will be imposed and cash flows would be $2 million per year for 20 years. However, there is a 40% chance there will not be a tax imposed so cash flows would be $4 million per year for 20 years. They will not know if the tax will be imposed until next year. What is the project's expected NPV if they wait and implement the project one year from now? Cost of capital is 10%.
In: Finance