Practice Problem about arrays for Computer Science
5-5 Practice Problems: Arrays
Using the scenario below, answer the following questions:
You are preparing for the Boston Marathon. In order to prepare, you need to train for 10 weeks, running an increasing number of miles per week, starting at running at least 2 miles your first week up to 26 miles by week 10.
1.) Initialize the array with the appropriate number of values.
2.) What is the value in the array element when the index contains 2?
3.) What is your list length?
4.) Calculate the sum of the total miles you spent running over the 10 weeks. Calculate the average number of miles you ran.
5.) Write a search to determine whether 4 is on your list.
11 years ago
10
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

- array_question_to_initiazile_miles_run_in_ap.txt
Bids(1)
other Questions(10)
- outline and powerpoint
- Analyzing Cultural Relevance in Instruction
- Can you write me an essay of Autobiographical Essay SUGGESTIONS about yourself to share with the reader:
- discussion post
- 400 Words Essay - Employment Law
- Dis B 2
- journalize the transaction
- FIN 534 Homework Chapter 3 NEW
- A+ Answers
- Write a 500-600 word paper identifying some of the technology used by law enforcement in carrying out their duties.