Post-Lab Write and algorithm and code the following problem. Proper commenting and indenting of code will be graded. Also normally accepted programming practices will be areas for grading, I.e. no global variables, sensible variable names, proper formatting of output. Modern Apartments has five apartments in each building. Water usages is billed by adding amounts used in each building.
Water rates vary, depending on whether the bills are for home use or commercial use.
Write a program that takes in the use of water for an apartment or commercial usage. Write a function to calculate and return the amount of the bill. Out put the code and cost formatted in dollars and cents with appropriate headings.