Module 2 - Lab - Monthly ExpensesOwned byNVC Computer Science DepartmentLast updated:Oct 29, 20231 min read Objective
Question:
Module 2 - Lab - Monthly ExpensesOwned by NVC Computer Science DepartmentLast updated: Oct 29, 20231 min read Objective
In this lab, you will 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:
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell