Ch 7: Practice Questions

Practice #1
Like the previous examples, in the code box below store a brief text-based message in a variable, and then print out that message.

Practice #2
Like practice #1, in the code box below store a brief text-based message in a variable, and then print out that message. Change the value of your variable to a new message, and then print out the second message as well. The program should print out two different messages.

Practice #3
For the following practice questions, put brackets around groups of numbers to see how the results change:

Practice #4
Store your age in a variable as a number. Using that variable, print out a message that states your name and what your age is.

Practice # 5
Using the arithmetic operators, print at at least 4 additional statements that result in 8 using strings and numbers. You can only use each operator once. I completed one with addition: