What is the value of charges after the following code has been executed?
```
double charges, rate = 7.00;
int time = 180;
charges = time <= 119 ? rate * 2 :
time / 60.0 * rate;
```
a. 7.00
b. 14.00
c. 21.00
d. 28.00
c. 21.00
You might also like to view...
In SQL, the ____________ can be used to search for a sub string.
a. Sub method b. Contains statement c. Who instruction d. Like operator
By default, email addressed to system goes to root. How would you also save a copy in /var/logs/systemmail?
What will be an ideal response?
Which function call is correct for the function named PassThis which passes the Table array?
```int Table[4][3]={3, 2, 8, 6, 7, 4, 1, 5, 8, 0, 9, 1};``` A. PassThis(Table); B. void PassThis(Table); C. PassThis(Table[4][3]); D. None of the above.
Suppose you enter 34.3 57.8 789, then press the ENTER key. Analyze the following code.
``` Scanner input = new Scanner(System.in); double v1 = input.nextDouble(); double v2 = input.nextDouble(); String line = input.nextLine(); ``` a. After the last statement is executed, line contains characters '7', '8', '9'. b. After the last statement is executed, line contains characters '7', '8', '9', '\n'. c. After the last statement is executed, line contains characters ' ', '7', '8', '9', '\n'. d. After the last statement is executed, line contains characters ' ', '7', '8', '9'.