Prepare a C++ program to create a structure.
Program: Create a structure named Apartment that contains data fields to hold the number of bedrooms, the number of bathrooms, and the monthly rent for the apartment.
Write a program that creates an Apartment object and prompts the user for number of bedrooms and baths desired.
Determine the rent from the subsequent table and set the rent field appropriately. If a requested apartment type is not available, set the rent field to 0.
Table
1 Bath 2 Baths
1 bedroom $650 Not available
2 bedroom $829 $925
3 bedroom Not available $1075
Show all the data including an error message if the entered data is invalid, or if no apartments are available with the requested combination.
The solution must be error free and compile correctly on first attempt. Any code that does not do this will not be awarded points and points will be awarded as soon as the correct answer is submitted.