Question: create java project in eclipse, following requirement for a method that takes in two parameters: a number of people that will be staying at a

create java project in eclipse, following requirement

for a method that takes in two parameters: a number of people that will be staying at a hotel and the number of nights they will be staying. The method then returns a total price for the hotel stay. If there are less than 5 people in the hotel room and they are staying 7 nights or more, the price would be $100x the number of nights they are staying. If there are 5 or more people, or they are staying less then 7 nights, the price is $150x the number of nights they are staying.

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!