Question: C++ Assignment: Write a simple re-occuring program where the user selects 1 of 19 formulas (as Functions) from the math formulas (see table below) from
C++ Assignment: Write a simple re-occuring program where the user selects 1 of 19 formulas (as Functions) from the math formulas (see table below) from a switch statement (displayed as a list) in your main(). Once the user selects a formula, it asks the user for a value(s) and performs the calculation of the selected formula. If user enters 20; it ends the code. Functions allow to structure programs in segments of code to perform individual tasks which should be used for the 19 different formulas!

Square Rectangle Perimeter Circumference Circle C 2*pi r Square Rectangle Triangle Trapezoid Circle A a2 A-I*b A - bh/2 A - (b1+b2)h/2 A pi r2 Area Cube Cylinder Cone Sphere S 6a2 S 2*pi r*h S-pi*r*l Surface Area Cylinder Cone Sphere V bh Volume V-4 pi *r3/3 Pythagorus Theorem Distance Formula d sqrt[(x2-x1)2+(y2-y1)2] Slope of a line m : (Y2-y1)/(X2-X1) Midpoint Formula
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
