Ask Question
7 February, 06:45

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.

+5
Answers (1)
  1. 7 February, 08:28
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers