Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please code this using C language. Problem: Desired Input and Output: Thank you very much in advance. So your first job here at MCWE, the

Please code this using C language.

Problem:

image text in transcribed

Desired Input and Output:

image text in transcribed

image text in transcribed

image text in transcribed

Thank you very much in advance.

So your first job here at MCWE, the city's premiere water company, is going to involve making software that would allow us to calculate our customer's monthly bill with ease. Our company offers 3 different packages: Package A - P250.00 plus P0.002 per gallon used Package B - P5,000.00 for the first 4 million gallons and P0.002 for each additional gallons Package C - P8,000.00 if usage does not exceed 4 million gallons, P14,000.00 if usage is more than 4 million gallons but not more than 10 million gallons, and P18,000.00 if usage exceeds 10 million gallons. Your program should ask the user for the package and the gallons of water used. It should then output the users monthly water bill. Best of luck! Input A12000 Your No Output Output Expected Output P274.00 Input B 4200000 Your No Output Output Expected Output P5400.00 Input C3621500 Your No Output Output Expected Output P8000.00

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

T Sql Window Functions For Data Analysis And Beyond

Authors: Itzik Ben Gan

2nd Edition

0135861446, 978-0135861448

More Books

Students also viewed these Databases questions