Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Note: Not accept Java programs Change.c... amount $100 cost $21.17 Bills: Twenty Ten Five One Coins: Quarter Dime Nickel Penny that Java your and not

Note: Not accept Java programs Change.c... amount $100 cost $21.17 Bills: Twenty Ten Five One Coins: Quarter Dime Nickel Penny

that Java your and not correct. my program introduced class for C class.

image text in transcribed

Water Lab Purpose: Use Visual Studio to create, edit, debug and compile a simple C program. Scenario: The cost of using water is determined based on how much is used during the billing period. The higher the amounts of water consumed the more expensive it becomes Create a program that accepts a customer's starting and ending meter readings and calculates the amount of the water bill. Inputs: 1) The starting meter reading. The ending meter reading. Processing: Determine the amount of the water bill according to the following rates: a. Water amounts less than 1000 gallons are charged at 0.05 per gallon. b. Water amounts between 1000 and 9999 gallons are charged at 0.15 per gallon, C. Water amounts above 9999 gallons and less than 99000 gallons are charged at 20 per gallon d. Water amounts above 99000 gallons are charged at 1.00 per gallon. Output: Display a nicely formatted message that indicates the number of gallons used and the cost of the water. Output should display on the screen and be written to a text file. Submit: Zipped solution folder

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions