Solved Questions

Solutions
Question
5
solutions
Category: Computer Science
Assume that speed = 10 and miles = 5. What is the value of each of the following expressions? a. speed + 12 - miles * 2 b. speed + miles * 3 c. (speed + miles) * 3 d. speed + speed * miles + miles e. (10 - speed) + miles / miles
17
solutions
Category: Computer Science
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....
8
solutions
Category: Computer Science
Explain why each of the following names does or does not seem like a good variable name to represent a state sales tax rate. a. stateTaxRate b. txRt c. t d. stateSalesTaxRateValue e. state tax rate f. taxRate g. 1TaxRate h. moneyCharged
1
solution
Category: Computer Science
A message that asks a user for input is a(n) ________. a. comment b. echo c. prompt d. declaration
1
solution
Category: Computer Science
Program comments are ________. a. required to create a runnable program b. a form of external documentation c. both of the above d. none of the above
1 2 3 10