Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ETC 208-228 Computer Applications in Engineering Technology Module 2 Homework Assignments Part 2: Programming Projects Design, write and run interactive C++ programs to solve the

image text in transcribed
ETC 208-228 Computer Applications in Engineering Technology Module 2 Homework Assignments Part 2: Programming Projects Design, write and run interactive C++ programs to solve the following problems. The inputs will be provided by the user at run time. You MUST follow the problem solving process discussed in Module 1. Write and submit Step 1 - Analysis & Step 2 - Design a Solution as an MS Word document. Step 3 - Coding and Step 4 - Testing are to be done using C++. (Refer to the document on submission of C++ Program. 1. The minimum radius required for a cylindrical rod, such as one supporting a bicycle pedal, to provide enough support for the pressure exerted by the rider's foot yet not exceed the stress placed on the crank's arm sprocket attachment, is given by this formula: d.P cm where r is the radius of the cylindrical rod in d is the length of the crank arm in cm Pis the weight placed on the pedal in N Sids the stress in MPa. (1 MPa = 10% Nim2 = 1 N/mm) The program will display the required radius for various values of inputs supplied by the user. Test your program with the following set of inputs: crank arm is 20 cm, a maximum weight of 1.50 kN and a stress of 70 MPa. Compare the output of your program with hand-calculated value ofr. Make sure your units are consistent. 2. (a) The volume of a sphere of radius ris given by the formula: 4x7 volume =- The program will display the volume of the sphere with units for a given radius r. Compare the output of your program with hand-calculated value of the volume for a radius of 20 cm (b) The sphere in 2(a) is placed in a cubic box of side 2r. Modify your program in 2(a) to determine volume of the empty space between the box and the sphere. Again, compare the output of your program with hand-calculated value for a radius of 20 cm

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

Define the term Working Capital Gap.

Answered: 1 week ago