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

After line 9 runs, what are the items in the vector?

``` 1 vector vNums; 2 vNums.push_back(10); 3 vNums.push_back(5); 4 vNums.push_back(15); 5 vNums.push_back(25); 6 cout << vNums.size(); 7 vNums.pop_back(); 8 cout << vNums.at(2); 9 vNums.pop_back(); 10 vNums.pop_back(); 11 vNums.pop_back();``` A. 10, 5 B. 5, 15 C. 10, 15, and 25 D. None of these are correct.

Computer Science & Information Technology

What is the value of num after the following statement is performed?

``` num = Math.round( 2.45 ); ``` a) 0 b) 2 c) 2.5 d) 3

Computer Science & Information Technology

Define plagiarism

What will be an ideal response?

Computer Science & Information Technology

Generally, an index is inserted on a separate page at the end of a document

Indicate whether the statement is true or false

Computer Science & Information Technology