Question: The Java Beach Resort has two types of suites: Ocean View and Street Side. The suites eau accommodate either two, 4 people, or more. The

 The Java Beach Resort has two types of suites: Ocean View

The Java Beach Resort has two types of suites: Ocean View and Street Side. The suites eau accommodate either two, 4 people, or more. The rates are higher in summer than in the winter. Write an application that can determine the cost of a suite. Suite charger, are in the given table. Type of suite is specifies us "Oecan" or "Street" and is case insensitive The season is 'Slimmer" or "Winter" and is case insensitive Write a class Suite. It has a constructor that takes three parameters: public Suite (String view. String season, int occupants) public double getCost() The cost is based on the table above. One peison costs the same as two people and three people cost the same as I people. For more than 4 people, the charge is a flat $200 per person for every room. If view is a String other than ''Ocean" or 'Street". charge the rate for "Ocean". If the season is anything other than "Summer" or "Winter", charge the rate for "Summer." Use nested if statements

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!