Question: Computers are most useful when you can use a small amount of code to * do the same action * to * many different things
Computers are most useful when you can use a small amount of code to do the same action to many different things
For example, in the time it takes you to calculate the tip on a restaurant bill, a laptop can calculate tips for every restaurant bill paid by every human on Earth that day. Thats if you're pretty fast at doing arithmetic in your head!
Arrays are how we put many values in one place so that we can operate on them as a group. For example, if billionsofnumbers is an array of numbers, the expression
billionsofnumbers
gives a new array of numbers that contains the result of multiplying each number in billionsofnumbers by Arrays are not limited to numbers; we can also put all the words in a book into an array of strings.
Concretely, an array is a collection of values of the same type
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
