subject

Does anyone know how to write this right? This is for a coding class and I’m super confused on it. First activity:

1. Declare three variables: firstSnack,
second Snack, and thirdSnack.
Assign the name of a snack (as a string)
to each variable.

2. Declare another variable and call it
bestSnack.
Assign a value to bestSnack USING THE
NAME OF ONE OF THE ABOVE VARIABLES.
Do not use a string directly.

3. Now, change your mind! Reassign the value
of bestSnack, again using the variable name,
not the string. (THIS SHOULD BE DONE ON
A NEW LINE)

Second activity:

4. Declare three variables and give them the names of three common grocery items. Assign to each variable a NUMBER value approximately its price. Don’t use $ sign, just the actual number.

5. Declare another variable, name it total, and assign to it the SUM of the three other variables, contain. Hint - you’ll need to use an arithmetic operator to do this.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
You know the right answer?
Does anyone know how to write this right? This is for a coding class and I’m super confused on it....
Questions
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
English, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
English, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Biology, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
Questions on the website: 13722367