How many and what kind of variables (primitive or object) are created in the code below?

```
> double cost = 19.20; // cost is a primitive variable
> double percentOff = 0.4; // percentOff is a primitive variable
> double salePrice = cost * (1.0 - percentOff); // salePrice is a primitive variable
```


This creates 3 primitive variables.

Computer Science & Information Technology

You might also like to view...

HTTP error code ____ means the client stopped the request before the server finished retrieving it.?

A. ?400 B. ?401 C. ?403 D. ?408

Computer Science & Information Technology

Within a table row, a two-sided ____ tag indicates the presence of individual table cells.

A. B. C. D.

Computer Science & Information Technology

Which of the following ports are used to connect a computer to a cable modem or to a network?

A) FireWire B) Ethernet C) DVI D) HDMI

Computer Science & Information Technology

?To communicate with a friend while you're on the go or send messages to family members, you can use ____.

A. ?clips B. ?email C. ?spam D. ?a wiki

Computer Science & Information Technology