If productCost and productPrice are numeric variables, and productName is a string variable, which of the following
Question:
If productCost and productPrice are numeric variables, and productName is a string variable, which of the following statements are valid assignments? If a statement is not valid, explain why not.
a. ProductCost = 100
b. ProductPrice = productCost
c. ProductPrice = productName
d. ProductPrice = "24.95"
e. 15.67 = productCost
f. ProductCost = $1,345.52
g. ProductCost = productPrice - 10
h. ProductName = "mouse pad"
i. ProductCost + 20 = productPrice
j. ProductName = 3-inch nails
k. ProductName = 43
l. ProductName = "44"
m. "99" = productName
n. ProductName = brush
o. Battery = productName
p. ProductPrice = productPrice
q. ProductName = productCost
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: