99 017
Assignments Done
98.9%
Successfully Done
In May 2021

# Answer to Question #16235 in C++ for cord

Question #16235
&bull;Option 1: Mr. Furly owns 7 apartment buildings. Each building contains 5 units that he rents for $800 per month each. Write a program that will print 12 payment coupons for each of the 5 apartments in each of the 7 buildings. Each coupon should contain the building number (1 through 7), the apartment number (1 through 5), the month (1 through 12), and the amount of rent due. &bull;Option 2: Allows the user to enter a building number, apartment number, and a description of the problem. Error check so they can only enter appropriate apartment and building numbers (1 - 7 or 1 - 5). &bull;Option 3: Allows the user to enter information about a perspective tenant, including their name, monthly income, and how many bedrooms they want (1 - 4). 1 Expert's answer 2012-10-11T08:35:21-0400 1!•Option 1 #include <iostream> #include <stdlib.h> using namespace std; int main() { int bud[7] = {1,2,3,4,5,6,7}; int kv[5] = {1,2,3,4,5}; int mounth[12] = {1,2,3,4,5,6,7,8,9,10,11,12}; int pay=800; cout<<"plese enter #mounth"<<endl; int n; for (int i = 0; i < 12; i++) for (int k = 0; k < 7; k++) for (int j = 0; j < 5; j++) { cout<<"mounth ---"<<mounth[i]<<endl; cout<<"bud ---"<<bud[k]<<endl; cout<<"pay="<<pay<<"$"<<endl;

cout<<"kv ---"<<kv[j]<<endl<<endl;

}

system("PAUSE");

return 0;

}

2!•Option 2

#include <iostream>

#include <stdlib.h>

using namespace std;

int main()

{

int bud;

int kv;

int mounth[12] = {1,2,3,4,5,6,7,8,9,10,11,12};

int pay=800;

cout<<"plese enter home "<<endl;

cin>>bud;

cout<<"plese enter room "<<endl;

cin>>kv;

int n;

for (int i = 0; i < 12; i++)

{ cout<<"mounth ---"<<mounth[i]<<endl;

if (bud<8) cout<<"bud ---"<<bud<<endl;

if (kv<6) cout<<"kv ---"<<kv<<endl;

cout<<"pay="<<pay<<"$"<<endl<<endl; } system("PAUSE"); return 0; } 3!•Option 3 #include <iostream> #include <stdlib.h> using namespace std; int main() { int bud; string name; int mounth[12] = {1,2,3,4,5,6,7,8,9,10,11,12}; int pay; cout<<"plese enter monthly income"<<endl; cin>>pay; cout<<"plese enter how many bedrooms they want "<<endl; cin>>bud; cout<<"plese enter name "<<endl; cin>>name; int room[4]= {1,2,3,4}; int n; for (int i = 0; i < 12; i++) for (int k= 0; k < bud; k++) { cout<<"mounth ---"<<mounth[i]<<endl; cout<<"money ---"<<pay<<"$"<<endl;

cout<<"name ---"<<name<<endl;

cout<<"number of bedrooms ---"<<room[k]<<endl<<endl;

}

system("PAUSE");

return 0;

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!