Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Assignment: Write a simple re-occurring program where the user selects 1 of 19 functions() from geometric math formulas (see attached file) from a switch
C++ Assignment: Write a simple re-occurring program where the user selects 1 of 19 functions() from geometric math formulas (see attached file) from a switch statement (displayed as a list) in your main(). Once the user selects a function(), it asks the user for a value(s) and performs the calculation of the selected function(). If user enters 20; it ends the code. The list of formulas are listed below.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started