Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Mrs. Rodgers owns 20 apartment buildings. Each building contains 15 units tha

ID: 3686113 • Letter: 1

Question

1. Mrs. Rodgers owns 20 apartment buildings. Each building contains 15 units that he rents for $800 per month each. Design the application that would output 12 payment coupons for each of the 15 apartments in each of the 20 buildings. Each coupon should contain the building number (1 through 20), the apartment number (1 through 15), the month (1 through 12), and the amount of rent due. Use Flowchart and Pseudocode. This assignment is based off of Programming Logic and Design 8th edtion. https://www.chegg.com/homework-help/programming-logic-and-design-comprehensive-8th-edition-chapter-7-problem-2pe-solution-9781285776712 is the format that is used.

Explanation / Answer

#include<iostream.h>
#include<conio.h>

void main()
{
   int i,j,k,pay=800;

   for(i=1;i<=20;i++)
   {
       for(j=1;j<=15;j++)
       {
           for(k=1;k<=12;k++)
           {
               cout<<"Building no="<<i<<", Apartment no="<<j<<", Month no="<<k<<", Amount due="<<pay<<endl;
           }
       }
   }
   getch();
}