Write a pseudocode for the scenario below Congrats! You work for Zillow now. Your first task is to write an algorithm that recommends apartments based on a user’s preferences. Zillow offers the following three properties for rent: Apartment A – 600 square feet, pets allowed, $1400/month Apartment B – 800 square feet, no pets, $1600/month Apartment C – 1000 square feet, pets allowed, $1800/month Write an algorithm for a program that does the following: Prompt the user for the minimum square footage they will accept, how many pets they have, and the maximum price they’d pay per month, and then calculate and output the apartments that match their preferences. If there is no apartment that matches their preferences, print out "No matches, sorry!". Make sure the inputs are valid--negative square footages, prices, and pet numbers don’t make sense!
Write a pseudocode for the scenario below
Congrats! You work for Zillow now. Your first task is to write an
- Apartment A – 600 square feet, pets allowed, $1400/month
- Apartment B – 800 square feet, no pets, $1600/month
- Apartment C – 1000 square feet, pets allowed, $1800/month
Write an algorithm for a program that does the following: Prompt the user for the minimum square footage they will accept, how many pets they have, and the maximum price they’d pay per month, and then calculate and output the apartments that match their preferences. If there is no apartment that matches their preferences, print out "No matches, sorry!". Make sure the inputs are valid--negative square footages, prices, and pet numbers don’t make sense!
--- Sample run ---:
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images