fill the tank and return gallons needed

What will be an ideal response?


```
double Tank :: fillUp()
{
double needed = capacity - current;
current = capacity;
return needed;
}
```

Computer Science & Information Technology

You might also like to view...

A(n) ________ can be used in single-user contiguous memory allocation systems to prevent programs from damaging the operating system’s memory.

a) lock b) protection bit c) boundary register d) semaphore

Computer Science & Information Technology

Which type of cable should you use when the cable will run in false ceilings through which circulating air reaches other parts of the building?

A. PVC B. coaxial C. plenum D. twisted-pair

Computer Science & Information Technology

Customers and clients will have ________ in the outcome of the disaster recovery

A) no effect B) a direct interest C) no interest D) an important role

Computer Science & Information Technology

Whenever you actively work on something using your computer, that work is temporarily stored in:

A. BD B. a tape drive C. RAM D. a bay

Computer Science & Information Technology