Question: Can you please help me with using these logical structures with a 3 part problem no programming language, just using these structures: Do xxxxxxxxx xxxxxxxxxxx

Can you please help me with using these logical structures with a 3 part problem

no programming language, just using these structures:

Do xxxxxxxxx

xxxxxxxxxxx

xxxxxxxxxxx

Loop

If xxxxxxx Then

xxxxxxxxxxx

xxxxxxxxxxx

Else

xxxxxxxxxxxx

End If

Note the indentions in the structuresI want to see those to make it read well.

The problems:

Part 1 - This solutions should contain 1 loop and conditional structures.

Mr. Furly owns 1 apartment that he rents. The usual rent is due every month except July and December; in those months Mr. Furly gives his renters a 50 percent credit. So they owe only half the usual amount. Design a solution that would print 12 payment coupons. Each coupon should contain the month (1 through 12), and the amount of rent due.

HINT: When complete with Part 1, the most efficient way of completing this algorithm should contain no more than 11 lines. If you exceed more than 13 lines, you are doing it wrong.

For example the coupon should read:

Month: 1 Rent: $$$$ (where $$$$ is the actual rent)

Month: 2 Rent: $$$$

and so on through Month 12.

Part 2 - This solutions should contain 2 loops where one is nested within the other and conditional structures.

Mr. Furly owns an apartment building. The building contains 15 units that he rents. The usual monthly rent for apartments numbered 1 through 9 in each building is $700; the monthly rent is $850 for apartments number 10 through 15. The usual rent is due every month except July and December; in those months Mr. Furly gives his renters a 50 percent credit. So they owe only half the usual amount. Design a solution that would print 12 payment coupons for each of the 15 apartments. Each coupon should contain the apartment number (1 though 15), the month (1 through 12), and the amount of rent due.

HINT: Start with the answer from Part 1.

Part 3 - This solutions should contain 3 nested loops and conditional structures.

Mr. Furly owns 20 apartment buildings. Each building contains 15 units that he rents. The usual monthly rent for apartments numbered 1 through 9 in each building is $700; the monthly rent is $850 for apartments number 10 through 15. The usual rent is due every month except July and December; in those months Mr. Furly gives his renters a 50 percent credit. So they owe only half the usual amount. Design a solution that would print 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 though 15), the month (1 through 12), and the amount of rent due.

Part 3 Hint: Start with the answer from Part 2. The most efficient way of completing this algorithm should contain no more than 29 lines of code. If you have more than 35, you are doing it wrong.

The first coupon should read:

Building 1, Apartment 1, Month 1, Rent 700.00

The last couple should read:

Building 20, Apartment 15, Month 12, Rent 425.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!