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

  Implications of law enforcement

The authors state that slavery has created great psychological and social problems for succeeding generations of black citizens.

  Adapt their products more to global markets

American fast food, music, and movies have become popular around the world with little product adaptation, whereas U.S. retailers, banks, and beer companies have had to adapt their products more to global markets. Why?

  Learning outcomes

LEARNING OUTCOMES BEING ASSESSED 1. Critically analyse management practices in the Australasian context. 2. Understand organisational behaviour and management theory.

  Social stress and social networks affecting health

How can I prove or disprove the idea that social stress and social networks affect an individual's health?

  Fighting to maintain democracy-capitalism-military strength

Was the United States fighting to maintain democracy, capitalism, military strength, and/or control of space What about the Soviet Union? Which goals were most important to each side To what lengths were they willing to go to achieve their goals

  Impact of genetic and environmental factors

Please explain the impact of genetic and environmental factors on the development of personality.

  Importance of theory to the mental health counseling

Could you please explain to me what the role and importance of theory to the mental health counseling practice, and include an explanation about the role of new and emerging theories and why they are important?

  Provision of counseling services to children

Based on your experience in the field of counseling or other professional arena, Can you identify and discuss three specific legal issues that are associated with the provision of counseling services to children and adolescents.

  Creating job search tools such business cards-elevator pitch

Creating job search tools such as business cards, elevator pitch, and 30-60 second commercials. Discuss your understanding of these ideas. Please cite url or references used for class discussion and answer in 140 words or less.

  Studying is guarding against

A researcher who gradually and slowly comes to be accepted by the group she is studying is guarding against:

  Describe how well that leader manages

Consider the findings from the Ohio State and Michigan studies: Good leadership requires effectiveness on two dimensions - initiating structure, commonly called task orientation, and showing consideration, commonly called employee orientation.

  What is the stanine score for someone who obtains raw score

You have developed a test of musical ability, and would like to report the scores as Stanines, with a mean of 5 and a standard deviation of 2. Raw scores on your test have a mean of 30 and a standard deviation of 5. What is the Stanine score for s..

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