If you're unable to solve the problem, be sure to submit your code anyway so I can give you partial credit and feedback!
-
📚 Read Structs.
-
📚 Read While Loops.
-
✅ Write a program that solves the problem below, using what you learned above as a guide:
-
Declares a public struct that represents a house.
-
The struct should contain variables numberOfRooms, city, address, and price, each assigned their appropriate data type (string, int, etc)
-
When your program runs, allow users to enter information for one to many houses.
-
After the user submits all their information, print a list of the houses for sale in the following format:
-
123 Address Road San Francisco 8 Rooms $123,456
456 Another Ln Pittsburgh 4 Rooms $90,000