subject

Note: the exercise instructions here are long -- read them all carefully. if you see an internal scrollbar to the right of these instructions, be sure to scroll down to read everything.
write an arithmetic expression that calculates the average of 18 and 46.
you may already know that:
the average of two numbers is their sum divided by 2
the symbol for division is /, thus 10 divided by 5 is written as 10/5
division has higher arithmetic precedence than addition
parentheses 's) may be used to override precedence
thus, one correct solution would be:
(18+46)/2
try it-- enter the above solution and click the submit button!
even with an exercise as simple as taking the average of 18 and 46 it is still possible to make mistakes. for example:
we might forget to use parentheses:
18+46/2
or, we might use the wrong arithmetic operator:
(18-46)/2
try these and see the system feedback. also try entering some of your own incorrect answers, and see what you get.
again, what makes programming so interesting is that there are also many ways to be right. for example, we could reverse the 18 and 46 and still have a correct
(46+18)/2
one of the most essential components of all learning is experimentation. nowhere is this more true than in learning programming. students should be encouraged to experiment with solutions even after "getting it right".
having submitted a typical correct solution, a student might experiment with:
(18+46)/(3-1)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:40
Amain idea is supported, explained, or expanded on with a numbers b. a concluding statement c. details d. a topic sentence. im e paragraphs reset nex next
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
What are the different components of the cloud architecture?
Answers: 2
You know the right answer?
Note: the exercise instructions here are long -- read them all carefully. if you see an internal s...
Questions
question
Mathematics, 29.01.2020 10:51
question
Mathematics, 29.01.2020 10:52
Questions on the website: 13722359