Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Johnson Ferris Wheel Company had a problem { the price of raw materials had risen so much they were desperate to nd ways to

The Johnson Ferris Wheel Company had a problem { the price of raw materials had risen so much they were desperate to nd ways to cut costs. Their standard Ferris wheel is illustrated below; the outer circle of the wheel has a radius of r units while the inner circle's radius is 1/2r. The angle between struts is Theta, where the distance between each of the outer points on the circle is d1 and d2 is the distance between the inner points on the inner circle. Because of manufacturing limitations, Theta must always be a whole number, plus in order for the wheel to be anesthetically pleasing the distances between all of the outer points must be equal (i.e. d10 = d11 = d12 = ::: = d1n = d1) which would make all of the inner circle distances equal to each other as well (i.e. d20 = d21 = d22 = ::: = d2n = d2).

image text in transcribed

Currently the company places a string of lights on both the exterior and interior rings. Mr. Johnson wondered if they could save money by running the lights from interior point to interior point (as straight lines) instead of wrapping them around the rings, i.e. how much shorter would the light strings be if they did it this way? Write a C program that inputs the radius of the ferris wheel and the angel and then outputs the number of struts required plus both the point-to-point and around-the-circle distances for both rings. Your program should exit with an error message if the entered theta is incorrect (i.e. it must be a value that evenly divides (with no remainder) into 360). Also all of your prompts, labels, and output (except of course use your name instead of mine) should be formatted exactly as the sample fun below. Declare all floating point variables as type double. Also, use the constant M_PI from math.h in your computations.

image text in transcribed

. homebox:-/progs/k a out D. Resler 2/21 radius? 122 theta (in degrees)? 6 line sepent for outer ring: 12.770 line sepent for inner ring: 6.385 number of struts - 60 length of outer les point-to-point - 766.198 length of outer lights around circle - 766.549 length of inner lights point-to-point - 180.999 length of inner lights around circle - 383.274 homebox-cprogs/ homebox -/coros/ tout D. Resler 2/21 radius? 122 theta (in degrees)? 7 Error! Incorrect theta. homebox:-/pros/

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions

Question

nvm

Answered: 1 week ago

Question

Understand how environmental scanning is practised.

Answered: 1 week ago