Ask Question
1 January, 15:24

Write an application for a condo owner on a Florida Beach. The owner wants an application to be able to accept the season for the rental and the amount of days of the customer wishes to rent the condo. Based on each, the application will determine a final price for the rental.

+3
Answers (1)
  1. 1 January, 17:55
    0
    in_season_price = 120.0

    off_season_price = 70.0

    price = 0

    season = input ("Which season you plan to rent / "IN/OFF/" season: ")

    days = int (input ("Enter the days you want to rent: "))

    if season = = "IN":

    price = in_season_price * days

    elif season = = "OFF":

    price = off_season_price * days

    print ("Rental price is: " + str (price))

    Explanation:

    Set the prices for in and off season

    Ask the user to choose the season and number of days they want to stay

    Depending on the user choice calculate the price, multiply the season price with the number of days

    Print the total price
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write an application for a condo owner on a Florida Beach. The owner wants an application to be able to accept the season for the rental ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers