The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
University
| Teaching Since: | Apr 2017 |
| Last Sign in: | 438 Weeks Ago, 2 Days Ago |
| Questions Answered: | 9562 |
| Tutorials Posted: | 9559 |
bachelor in business administration
Polytechnic State University Sanluis
Jan-2006 - Nov-2010
CPA
Polytechnic State University
Jan-2012 - Nov-2016
Professor
Harvard Square Academy (HS2)
Mar-2012 - Present
Every summer, Leeland Lakeside resort rents cabins by the week. Create a class named CabinRental that includes an integer field for the cabin number and a double field for the weekly rental rate. Include get methods for these fields and a constructor that requires an integer argument representing the cabin number. The constructor sets the weekly rate based on the cabin number; cabins numbered 1, 2, and 3 are $950 per week, and others are $1,100 per week. Create an extended class named HolidayCabinRental that is used for rentals during weeks that include summer holiday weekends. The constructor for this class requires a room number and adds a $150 surcharge to the regular rental rate. Write an application named DemoCabinRental that creates an object of each class, and demonstrate that all the methods work correctly. Save the files as CabinRental.java, HolidayCabinRental.java, and DemoCabinRental.java.
-----------