Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using COBOL Language RENT.TXT B152043509450012425509186542 B192539511376024253311254535 B513439414745638721508563087 B411551508568014896209578400 Write a program to compute the profit or loss on apartment buildings. Example input: RENT.TXT B152042509350012425509186542 Columns:

Using COBOL Language

RENT.TXT

B152043509450012425509186542 B192539511376024253311254535 B513439414745638721508563087 B411551508568014896209578400

Write a program to compute the profit or loss on apartment buildings.

Example input: RENT.TXT

B152042509350012425509186542

Columns: 1 3 The apartment building identification number

4 5 The number of rental units in the building

6 8 The monthly rent per unit

9 14 The annual revenue received from the building

15 20 The annual cost of heating the building

(9999v99 two places to the right of the decimal)

21 - 28 The interest payments made on a mortgage on the

building (9999v99)

Output example:

Revenue Statement 2017

Dr. Petes Apartments Inc

Apt. Units Rental Annual Annual Annual Occupancy Gross

Bdg. Rate Revenue Heating Interest Rate (%) Profit(+)

Monthly Cost Lost(-)

B15 20 425 $93,500 $1,242.55 $91,865.42 91.67 $ 392.03+

Total Profit or Loss $???,???.??

In the output file, the occupancy rate is computed from the annual revenue as a percentage of the theoretically possible annual revenue from rents, that is, number of units times monthly rental times 12. The gross profit is the revenue less heating cost less interest payments. All dollar values must be formatted as above. Your output heading must include your name, assignment number and due date. Compute and print the total profit or loss for all the apartments.

When computing a value that may be negative you need a picture with the S

i.e. 05 profit-loss pic s99999v99.

And

i.e. 05 profit-loss-out pic +$999,999.99

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Does your product/program have a descriptive and memorable slogan?

Answered: 1 week ago

Question

How does this compare with the Fog Index for your written message?

Answered: 1 week ago