1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
barxatty [35]
3 years ago
9

Write a c++ program to compute a water andsewage bill. The inputis the number of gallons consumed. The bill is computed asfollow

s:
water costs .21dollars per gallon of water consumed

sewage service .01dollars per gallon of water consumed
Computers and Technology
1 answer:
Butoxors [25]3 years ago
8 0

Answer:

#include<iostream>

using namespace std;

//main function

int main(){

   //initialization

   float gallonConsume;

   //print the message

     cout<<"Enter the number of gallons consumed: ";

     cin>>gallonConsume;   //read the input

   float waterCost = 0.21 * gallonConsume;   //calculate the water cost

   cout<<"The water cost is: "<<waterCost<<endl;  //display

   float sewageService = 0.01 * gallonConsume;   //calculate the sewage service cost

   cout<<"The sewage service cost is: "<<sewageService<<endl;  //display

   return 0;

}

Explanation:

Include the library iostream for using the input/output instruction.

Create the main function and declare the variables.

then, print the message on the screen by using cout instruction.

the value enters by the user is read by cin instruction and store in the variable.

After that, calculate the water cost by using the formula:

Water\,cost = 0.21 * water\,consume

then, display the output on the screen.

After that, calculate the sewage service cost by using the formula:

sewage\,service\,cost = 0.01*water\,consume

finally, display the output on the screen.

You might be interested in
As an interviewer, it is not necessary to be at eye level with interviewee<br><br> True<br> False
Tamiku [17]

Answer:

True

Explanation:

Have a great day

3 0
3 years ago
Read 2 more answers
Write if true or false
ICE Princess25 [194]

Answer:

Formula is a sequence of cell referenced operators to do calculations.

6 0
3 years ago
ASAP!!!<br><br> How do you follow a podcast?
11111nata11111 [884]
You go to the podcast link and you press follow or subscribe
3 0
3 years ago
An organization is implementing a preselected baseline of security controls, but finds not all of the controls apply. What shoul
Anna35 [415]

Answer:

D. Tailor the baseline to their needs

Explanation:

The process by which a security control baseline is modified based on the application of scoping guidance. The process of determining which portions of a standard will be employed by an organization i.e There is no need to implement security controls that do not apply, and it is not necessary to identify or re‐create a different baseline.

3 0
3 years ago
What is one way to improve the upward flow of information?
kobusy [5.1K]

Answer:

b.Encourage managers to have regular meetings with staff.

Explanation:

Upward flow of information is when the information is flown from the lower level of hierarchy to upper level of hierarchy in an organization. for example:- the flow of information from employees to the managers.

The upward flow of information can be improved by encouraging the managers to have meeting with the staff at regular interval of time.

4 0
4 years ago
Other questions:
  • A(n) _____ allows unauthorized entry into a wireless network.
    8·1 answer
  • What does anti-malware software look for to determine that a program or a process is a virus?
    7·1 answer
  • (count single digits) * write a program that generates 100 random integers between 0 and 9 * and displays the count for each num
    7·1 answer
  • The process of providing and denying access to objects is called:
    5·1 answer
  • Some example questions include: ""How does multithreading affect the throughput of a GetFile Server hosting many very large file
    7·1 answer
  • Which of the following illustrates an example of a string data type?
    15·2 answers
  • An ISP is considering adding additional redundant connections to its network. Which of the following best describes why the comp
    14·1 answer
  • First Person Who Answers Fast As Possible Will Be Marked As Brainiest ​
    12·1 answer
  • PLEASE HELP ME ASAP I HAVE AN EXAM SOON!!!!
    5·1 answer
  • James uses a database to track his school's football team. Which feature in a database allows James to find a specific player by
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!