Question: computer engineering sorry HW1 CSC 211 Review Functions and Using Graphics in C++ PROBLEM 1. Barn Precision Company (max 50 points) Your Barn Precision Company

computer engineering sorry
HW1 CSC 211 Review Functions and Using Graphics in C++ PROBLEM 1. Barn Precision Company (max 50 points) Your Barn Precision Company produces flat washers. In order to estimate the shipping costs, you need a program to compute the weight of a specified quantity of flat washers. A flat washer resembles a small donut. To compute the weight of a single flat washer, you need to know its rim area, its thickness, and the density of the material used in its construction. The last two quantities are problem inputs. However, the rim area (see figure below) must be computed from two measurements that are provided as inputs: the washer's outer diameter and its inner diameter (diameter of the hole) shown below. In the following data requirements, the washer's inner and outer radius (half the diameter) are listed as program variables. We also list the rim area and weight of one washer (unitWeight) as program variables. rim area - red./2) - (d./2) DATA REQUIREMENTS Problem Constant PI = 3.14159 Problem Inputs float holeDiameter float edgeDiameter float thickness float density float quantity Problem Outputs float weight Program Variables float holeRadius float edgeRadius float rimArea float unitWeight // diameter of hole // diameter of outer edge // thickness of washer // density of material used // number of washers made // weight of batch of washers // radius of hole // radius of outer edge // area of rim // weight of 1 washer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
