Computers-Java

posted by .

I am writing a computer program to calculate the number of gallons of water used per day in my household but I want to make sure I am doing the program right.

Ex. (toilet usage)
# of people in household:5
# of times a person flushes per day:5
# of gallons per flush:5

The total should be equal to the # of people in household * # of times a person flushes per day * # of gallons per flush, right?

  • Computers-Java -

    correct.
    Are you OK with the coding?

  • Computers-Java -

    Yes, I'm okay with the coding.

  • Computers-Java :) -

    Very good. Keep up the good work.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. computer science /use java language

    write the program that inputs a string representing a binary number(0s and 1s). First, your program should veerify that it is indeed a binary number, that is, the number contains only 0s and 1s . if that is not the case, your program …
  2. programming

    I am having trouble writing this program for java. can anybody help write a program that prints the letter X composed of asterisk.
  3. computer programming

    Write a program that simulates the dial of a phone number. The program will input a phone number and the program will acknowledge the call by either writing an error message or the 8 digit phone number to the console window. The phone …
  4. COMPUTER SCIENCE

    Write a program that calculates and displays the total travel expenses of a businessperson on a trip. The program should have functions that ask for and return the following:  The total number of days spent on the trip  The time …
  5. ENGLISH HELP?? 2 QUESTIONS.

    Can you answer two questions for me? Thanks!! "On average each of us consumes nearly 53 gallons of water a day at home. Some citizens of water-poor countries survive on as little as 4 gallons a day. We've grown used to seeing water
  6. Computer Literacy

    1. Which vendor did IBM select to create the operating system for the IBM PC?
  7. JAVA PROGRAMMING

    Create a java program that will calculate the current grade in a classroom. The program should ask for 5 grades as well as total point value per grade available.
  8. java programming

    Create a java program that will calculate the current grade in a classroom. The program should ask for 5 grades as well as total point value per grade available.
  9. computer science

    Acarrentalcompanyusesthefollowingtabletohelpcomputerentalfees. TABLE 9.3 Car Type Chevrolet Corvette Pontiac Buick Oldsmobile Cadillac Rate per Day 50.00 85.00 53.00 60.00 60.00 70.00 Rate per Mile 0.27 0.45 0.32 0.32 0.35 0.40 Write …
  10. computer science

    Acarrentalcompanyusesthefollowingtabletohelpcomputerentalfees. TABLE 9.3 Car Type Chevrolet Corvette Pontiac Buick Oldsmobile Cadillac Rate per Day 50.00 85.00 53.00 60.00 60.00 70.00 Rate per Mile 0.27 0.45 0.32 0.32 0.35 0.40 Write …

More Similar Questions