Calculate the average number of miles you ran

Assignment Help Basic Computer Science
Reference no: EM131048736

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.
For reference, here is atutorial on arrays.

Reference no: EM131048736

Questions Cloud

Supply chain for breakfast cereal : Consider the supply chain for breakfast cereal. Discuss the competing objectives of the farmers who make the raw materials, the manufacturing division of the company that makes the cereal, the marketing of the company that makes the cereal,
How many addresses are left : Create 4 subnets for this organisation with the first subblock of 120 addresses, the second subblock of 60 addresses, the third subblock of 30 addresses and the fourth subblock of 12 addresses.
Can anybody give me a snippet or a little guide : I need to calculate the hash of the file that its path is stored in fpath variable.I think it can be done via GetHashCode. Can anybody give me a snippet or a little guide?
Annual cost associated with running the upgraded system : What should be done based on your analysis of the US distribution system? Should the new Los Angeles distribution centre be added? Is this strategically something that ABC should do? What have they not considered that may be important?
Calculate the average number of miles you ran : Calculate the sum of the total miles you spent running over the 10 weeks. Calculate the average number of miles you ran.
Display a square on the screen : Write aprogram class named SquareDisplay that asks the user for a positiveinteger nogreater than 15. Theprogram should then display a square on the screen using thecharacter ‘X'. The number entered by the user will be the length of each side of th..
What evidence indicates that corporate profits will rise : What two factors are important to making the principle of "compounding" work? What evidence indicates that corporate profits will rise?
Difficulties that barilla operating system faces : Would it be effective? If so, which customers would you targetnext? How would you convince them that the JITD program was worth trying? If not, whatalternatives would you suggest to combat some of the difficulties that Barilla's operating system f..
Write essay about video resource based economy sue everatt : Write a short essay one page and a half about the following video. Resource based economy: Sue Everatt at TEDxPasseigDesBorn- https://www.youtube.com/watch?v=LViQjSXjZPw&spfreload=10.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Describe an algorithm for counting the number

In C++ Please: Describe an algorithm for counting the number of left external nodes in a binary tree, using the Binary tree ADT.

  Discuss how a cyber warrior can use a social networking

Discuss the vulnerabilities associated with four of the ten networks described in your readings. Make sure you identify the network, potential vulnerabilities, and what the result could be from an attack against it.

  A sharper image

Iain works on the Web development team for a prominent community college system in the Southwest part of the United States. He was assigned to create several new Web pages, most of which would include detailed images. These images would aid nav..

  Highlight element enables highlight the text.true or false

The highlight element enables you to highlight the text. True or False

  What are the desirable qualities of a product vision

What is the approach that Scrum encourages when a Team determines it will be difficult to deliver any value by the end of a Sprint?

  The radar gun used by a police officer

The radar gun used by a police officer outputs a radar signal and measures the speed of the cars as they pass. However, when the officer wants to ticket an individual for speeding

  What role do users have in the development phase

What advantages does commercial off-the-shelf software provide over custom software? What role do users have in the development phase and integration phase for information systems

  Design a linear algorithm

Let G = (V, E) be an undirected graph. Use depth-?rst search to design a linear algorithm to convert each edge in G to a directed edge such that the resulting graph is strongly connected, or determine that this is not possible.

  How procuring organization has sorted out problem

You are the engineer involved in development of financial system. Should you simply abandon work until procuring organization has sorted out problem?

  Find integers q and r

Q1. For each of the following values of n and d find integers q and r such that n =dq+r and 0≤r

  Requirements and assumptions for new interface design

You are to prepare the project scope and initial requirements and assumptions for a new Interface Design project for the Museum Guided Exhibition as outlined in the Museum Guided Exhibition problem case study.

  How many clock cycles are needed

Indicate data dependency in the above code. Assuming there is no forwarding in the pipeline, how many clock cycles are needed to finish the program? If full forwarding is used, how many clock cycles are needed?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd