Calculate the speed of each cycle

Assignment Help Other Subject
Reference no: EM13193398

In the spirit of the Tour de France, you have been asked to provide a program that calculates the speed of the 3 cycles based on its gears and compares the speed to an overall desired speed to determine which cycle to use:

a. Be able to handle up to 3 different cycles (Use can enter less than 3)
b. Enter the number of teeth for the main gear for each of the cycles (3 inputs)
c. Enter the revolutions per minute that the rider will pedal (3 inputs)
d. Enter the desired speed. (1 input)
e. Calculate the speed of each cycle
Formula 1: Speed of cycle = (RPMs * Number of Teeth) / 10
f. Calculate the Average Speed of the cycles
Formula 2: SUM of Formula 1 / (the number of cycles entered)
g. Determine which cycle is closest to the desired speed without being below:

h. Display all information 
Test Case and Output Format:
Bike: RPMs Teeth Speed (Calculated)

Schwinn 80 8 64
Trek 100 6 60
K2 70 12 84

Desired Speed: 61
Average Speed: 69.33
Closest cycle: Schwinn

Solution Criteria:

1. Solution should use arrays for data
2. Solution should use looping to process algorithms 

Reference no: EM13193398

Questions Cloud

Why the issue is relevant to your community : Identify a social issue and identify news articles that present at least two different points-of-view on the issue
Optimal level of consumption or consumer demand : The company selling the good x starts an advertisement campagin that has the following effect on the consumer he makes decisions as if maximizing a decision utility function.
Salient causes for the arab uprisings : what are some of the salient causes for the arab uprisings? to what extent can we say that the arab spring has failed? and if so why?
State the methyl group in equatorial position the energy : the energy is 18.44 kj/mol and for the methyl group in equatorial position the energy was 8.66 KJ/mol based on this information which is more stable and why?
Calculate the speed of each cycle : In the spirit of the Tour de France, you have been asked to provide a program that calculates the speed of the 3 cycles based on its gears and compares the speed to an overall desired speed to determine which cycle to use:
Depict a structural formula of an alkene or alkenes : Draw a structural formula of an alkene or alkenes (if more than one) that undergo acid-catalyzed hydration and without rearrangement give 2-methyl-2-butanol as the MAJOR product.
The office of community oriented policing services : The Office of Community Oriented Policing Services (COPS), part of the U.S. Department of Justice, has identified the following four areas associated with street gangs as key target areas for today's police agencies.
Relationship between theory and research : What is the relationship between theory and research? Explain your answer using one example from the readings and define causality and its applicability to social science research
Explain what is the normal force on the inclined plane : The inclined plane is supported by a horizontal table. Both the cube and the inclined plane can move without friction along the surfaces that support them (the inclined plane and the table, respectively). What is the normal force on the inclined p..

Reviews

Write a Review

Other Subject Questions & Answers

  Organizational hierarchies

Which of the following organizational hierarchies is correct?

  Find such concepts coming out of specific social structures

Anthropology-  can we find such concepts coming out of specific social structures, or do these ideas give birth to social structure Illustrate what is Love.

  Employment laws

Many laws have been created to protect both the employer and the employee. Compare and contrast two of these laws. Be sure to include a brief summary of the law and the protection that the law provides.

  Basic motives of maslow theory

How do these events compare to Maslow's theory that basic motives must be satisfied before those farther up the hierarchy?

  Steps to construct a critical path diagram

Constructing a critical path diagram. Provide the diagram with step by step instructions on how to construct a cpm diagram in microsoft word?

  Evaluating policy recommendations

The relationship between researchers and policy makers: what ties them together? What are bridges/barriers? What are useful criteria to use when evaluating policy recommendations?

  Explaining the bar owner -is jack liable for negligence

Using the elements explained in the text and your first assignment, is Jack liable for negligence, i.e. list and apply the elements of negligence as applied to Jack?

  Employment related motives-motives personal to the employee

How important do you think motive is in any assault? Motives can generally be divided into three separate categories : 1) employment related motives; 2) motives personal to the employee and 3) motives neutral to the employee and to his employment.

  Explaining the intent of law

How the US Constitution is applied is a good illustration of the struggle between discerning the letter of the law and the spirit of the law.

  Specific personality characteristics or traits

Please discuss at least three of your specific personality characteristics or traits. Using your life experiences, explain how these characteristics were developed.

  Evaluate positive and negative effects of affirmative action

Evaluate the positive and negative effects of Affirmative Action in the United States. Target current issues, trends, and demographics. No word Requirement...This is a general discussion post.

  Explain your rationale

Analyze various research methods employed in psychology to determine which research method seems most applicable across greatest number of situations. Explain your rationale

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