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

  What is the syntax of the inheritance method

What is the syntax of the Inheritance method to extending a base class in C++

  User experience framework

The user experience framework also informs about the relationship between a conceptual model and a user's understanding of it for past, current, and future systems. The case study actually consists of two studies

  Force p that will cause impending motion

The coefficient of static friction between the crate and the ground is µs = 0.2, and between the wheel and the ground µ's = 0.5.

  Explain the basic primary tasks ongoing evaluations

Explain the basic primary tasks, ongoing evaluations, and major policy and procedural changes that would be needed to perform as the BC lead / manager.

  Compare and contrast firewire 800 vs esata

Compare and contrast FireWire 800 vs eSATA

  A network manager discovers that a network component

A network manager discovers that a network component is performing poorly and issues an order to the technicians to replace it. Which MIB group contains the information for the technician to find out the physical location of the component?

  Briefly explain the main concept of a java virtual machine

Briefly explain the main concept of a Java Virtual Machine (JVM.)

  Evaluate the potential remedies for breach of contract

Evaluate the potential remedies for breach of contract that might be available is someone breached the contract you created.

  Investigation of object-oriented programming by creating

We begin our investigation of object-oriented programming by creating an object-oriented program with a class called Employee. You will create two objects based on the Employee class, along with a class that contains the main method. The attributes, ..

  The benefits derived from application of computer technology

Briefly state the benefits derived from application of computer technology to controller - pilot communications. Explore in detail the challenges or risks of using CPDLC.

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Create a base class to store characteristics about a loan

Create a base class to store characteristics about a loan. Include customer details in the Loan base class such as name, loan number, and amount of loan. Define subclasses of auto loan and home loan.

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