I have this assignment that I need some help on I am posting the problem then what I have also I think that it should be a loop but am not sure. Any help is appreciated my instructor will not help me or he tells me I am right and then when he grades it he says it is wrong. Thanks.
[email protected]
The Acme Real Estate Company is planning an apartment complex. The company figures that during the first year, its income will be $450 per month from each studio apartment, $550 per month from each one-bedroom apartment, and $700 per month from each two-bedroom apartment. Each studio apartment will be 200 square feet in size; each one-bedroom apartment will be 300 square feet in size, and each two-bedroom apartment will be 450 square feet in size. The building cost is $75 per square foot. To aid in planning, the company wants a program that will allow it to input the number of studios, one-bedroom, and two-bedroom apartments and will calculate the total size of the building needed to house the apartments, the total building cost, and the expected income for the first year and output those results in report form. Write this program and structure it so that Acme can enter as many sets of data as desired at one time. A sample run follows.
ACME REAL ESTATE PLANING PROGRAM
How many studio apartments? 5
How many one-bedroom apartments? 12
How many two-bedroom apartments? 10
Report for 5 studio apartments
12 one-bedroom apartments
10 two-bedroom apartments
Space Costs Income
Studios: 1000 75000 27000
One-Bedrooms: 3600 270000 79200
Two-Bedrooms: 4500 337500 84000
------------------------------ --------- ---------
Totals Space: 9100 Cost: 682500 190200
Do you want to enter another set of data (y/n)? n
Thank you
Here is what I have and I don't know what else to do, I am not sure where I need to go from here. I am confused. I am using MS visual studio ver 6.0.
#include<stdio.h>
/* Function Prototypes */
int main(void)
{
int intvar;
printf("ACME REAL ESTATE PLANNING PROGRAM");
printf("---------------------------------");
/* Input the number of apartments */
printf("How many studio apartments?\n");
scanf("%d", intvar);
printf("How many one-bedroom apartments?\n");
scanf("%d", intvar);
printf("How many two-bedroom apartments?\n");
scanf("%d", intvar);
printf("Report for %d studio apartments\n", intvar);
printf("%d one-bedroom apartments\n", intvar);
printf("%d two-bedroom apartments\n", intvar);
printf(" Space Costs Income\n");
printf(" Studios:
printf("One-Bedrooms:
printf("Two-Bedrooms:
printf("-------------
printf("Totals Space: Cost:
printf("Do you want to enter another set of data (y/n)?\n");