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

  We-versus-me orientation

Apply the communication competence model to the jury in the movie. Concentrate on the We-versus-Me orientation, skills and knowledge, appropriateness and effectiveness, sensitivity, commitment, and ethics.

  Classical and contemporary foundationalists

What is the key difference between classical and contemporary foundationalists? Why have contemporary foundationalists modified the classical position?

  Discussing the medicalization of madnes

Goffman suggest the central feature of stigma is acceptant detail both arguements and illustrate these arguements by discussing the medicalization of madnes starting in classical greece rome and ending with european experience duringt the 18th cen..

  How much does the watch lose or gain time and by how much

How much does the watch lose or gain time and by how much.

  Purpose and history of penitentiaries

Write a 700- to 1,050-word paper that examines the purpose and history of penitentiaries. Include the following:

  Human history-robot vs planet of the apes

A major conflict seen throughout human history has been the notion that a society can sometimes be defined by their accomplishments that shaped them to what they became. In some instances, a dynasty's own advancements eventually led to their own down..

  Government institutions in europe

Regarding the varieties of representative government institutions in Europe, there are a number of important choices to make (e.g., majoritarian versus consensual parliamentary systems, constitutional review strength, and federalism).

  Effect of the study of ethics

Does studying ethics inspire students and professors to be morally better people? Aristotle thought that we learned ethics only through life experience, and that intellectual or academic training did little to shape behavior.

  Describe tradeoffs between lifecycle and first cost analyses

Create the 1,050- to 1,400-word paper in which you describe tradeoffs between lifecycle and first cost analyses in terms of risk and cost.

  Seasonal affective disorder

I found it very interesting what you wrote Seasonal Affective Disorder (SAD), I made me think about myself. Every year around the month of September I began to get really depressed.

  Is the ship liable for the loss

The ship nonetheless pulled into the port at Beira and tied up at the pier. Immediately, the ship was struck by a mortar round and the goods that the ship carried were destroyed. Is the ship liable for the loss.

  Freudian stages-modern consideration of personality

What are the five stages of Freudian psychosexual development and briefly describe each. How can understanding of Freud's stages be useful in modern consideration of personality?

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