What is the value of the variable amountDue?
double price = 2.50;
double quantity = 5;
double amountDue = 0;
amountDue = price * quantity;

a. 12
b. 12.25
c. 12.5
d. 13


C

Computer Science & Information Technology

You might also like to view...

The most prominent quality of an analyst is that of a(n):

A) problem solver. B) consultant. C) programmer. D) agent of change.

Computer Science & Information Technology

When you configure inbound or outbound rules using Windows Firewall with Advanced Security, you determine programs or ________ that are allowed to pass through the firewall

a. Ports b. Users c. Operating systems d. None of the above

Computer Science & Information Technology

In the accompanying figure, a tag contains information about the user's most recent tweet.

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

Computer Science & Information Technology

The declaration statement ____ declares milesAddr to be a pointer variable that can store the address of (that is, will point to) an integer variable.

A. int milesAddr&; B. int milesAddr*; C. int *milesAddr; D. int &milesAddr;

Computer Science & Information Technology