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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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