Chapter 2: Problem 18
You need the user of a program to enter the amount of sales for the week. Write a statement that prompts the user to enter this data and assigns the input to a variable.
Chapter 2: Problem 18
You need the user of a program to enter the amount of sales for the week. Write a statement that prompts the user to enter this data and assigns the input to a variable.
All the tools & learning materials you need for study success - in one app.
Get started for freeIs the variable name Sales the same as sales? Why or why not?
You need the user of a program to enter a customer's last name. Write a statement that prompts the user to enter this data and assigns the input to a variable.
What value will be assigned to result after the following statement executes? result \(=9 \quad\) \& 2
Who is a programmer's customer?
Look at the following assignment statements: \\[ \begin{array}{l} \text { value1 }=99 \\ \text { value } 2=45.9 \\ \text { value } 3=7.0 \\ \text { value } 4=7 \\ \text { values }=\text { 'abci } \end{array} \\]
What do you think about this solution?
We value your feedback to improve our textbook solutions.