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...

Which of the following is NOT possible to do while in Outline view?

A) Rearrange the order of slides B) Add transitions to the slides C) Move easily from one slide to another D) Copy text from one slide to another

Computer Science & Information Technology

An off-by-one error is a common problem associated with counter-controlled loops where the loop body is performed one too many or one too few times.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology