create a program that will calculate the expenses for a homeowner to include the electric, rent, and
Fantastic news! We've Found the answer you've been seeking!
Question:
create a program that will calculate the expenses for a homeowner to include the electric, rent, and water bill. The program will provide the user with formatted output that they might use for a printable report each month for their records.
Name of Month
Electric bill amount
Rent Amount
Water bill amount
Format the output such that the items are left-aligned and the amounts are right-aligned as shown below. Be sure to format the currency properly.
Input | Process | Output |
---|---|---|
Name of Month Rent Amount Electric bill amount Water bill amount | Total expenses for the month | Name of month Each item is Identified and displayed (Item left aligned, amount right aligned) Total for all three services for the month |
Example program Run:
Related Book For
Posted Date: