Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

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

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

In certain functions more than others?

Answered: 1 week ago

Question

What are the purposes of promotion ?

Answered: 1 week ago

Question

Define promotion.

Answered: 1 week ago

Question

Write a note on transfer policy.

Answered: 1 week ago