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




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




    1. productCost = 100




    2. productPrice = productCost




    3. productPrice = productName




    4. productPrice = "24.95"




    5. 15.67 = productCost




    6. productCost = $1,345.52




    7. productCost = productPrice - 10




    8. productName = "mouse pad"




    9. productCost + 20 = productPrice




    10. productName = 3-inch nails




    11. productName = 43




    12. productName = "44"




    13. "99" = productName




    14. productName = brush




    15. battery = productName




    16. productPrice = productPrice




    17. productName = productCost








Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here