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 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Selling a product through an electronic medium is
Answers: 1
question
Computers and Technology, 23.06.2019 16:10
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
question
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
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
Chemistry, 09.03.2021 14:00
question
Mathematics, 09.03.2021 14:00
question
Mathematics, 09.03.2021 14:00
question
Mathematics, 09.03.2021 14:00
question
French, 09.03.2021 14:00
Questions on the website: 13722363