Visual Basic lab. In this project, you will create a program, using an array, which keeps a list of the rent rates for an apartment building. The rent rate for an apartment depends on which floor the apartment is located on and every apartment on the same floor has the same rent rate. The program shall read the name of the apartment building, how many floors the apartment building has, and get the rental rates for each of the floors. Once the rental rates are provided, the program shall list the rates. The program user shall be able to provide a floor number and the program will display the apartment building name, the total number of floors, the requested floor, and how much the rent is for the given floor. The customer has several apartment buildings to choose from. The smallest apartment building has three floors and the largest apartment building has 20 floors. The program shall validate that the floor number is XXXXX the minimum and maximum floor values. Also, the minimum rental rate for any building is $1,000 per month, while the highest rent is $2,500. The program shall validate that the provided rental rates are within the minimum and maximum rates.

In this project, you will be tasked with creating a program in Visual Basic that utilizes an array to store and manipulate rent rates for an apartment building. The rent rate for each apartment will be determined by the floor on which it is located. Specifically, every apartment on the same floor will have the same rent rate.

To begin, the program will prompt the user to enter the name of the apartment building. It will then ask for the number of floors in the building. Using this information, the program will then ask the user to enter the rent rates for each floor, one by one.

Once the rental rates have been provided, the program will proceed to display a list of the rates that were entered. This step is pivotal, as it allows the user to verify that the correct rates were inputted.

Next, the program user will be able to enter a floor number. Upon doing so, the program will display several key pieces of information. These include the apartment building name, the total number of floors in the building, the requested floor number, and the corresponding rent rate for that floor.

It is important to note that since the customer has multiple apartment buildings to choose from, the program must account for the different sizes of these buildings. The smallest building will have three floors, while the largest will have twenty floors. Thus, the program needs to validate that the floor number entered by the user is within the acceptable range for the specific building.

Similarly, the rent rates must also be validated. It is specified that the minimum rental rate for any building is $1,000 per month, while the maximum is $2,500 per month. Therefore, the program must ensure that the provided rental rates for each floor fall within this range.

To summarize, the main objectives of this project are to create a program that utilizes an array to store and manipulate rent rates for an apartment building, to validate that the entered floor numbers and rental rates fall within the specified ranges for the chosen building, and to display key information regarding the apartment building and its rent rates.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer