Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include #include using namespace std; double width, height, radius,base,a,b,n; void enterwh() { cout > width; cout > height; } void enterw(){ cout > width; }

#include #include using namespace std;

double width, height, radius,base,a,b,n;

void enterwh() { cout > width; cout > height; } void enterw(){ cout > width; } void enterbh(){ cout > base; cout > height; } void enterr() { cout > radius; } void enterah(){ cout > a; cout > height; } void enterahn(){ cout > a; cout > height; cout > n; } void enterab(){ cout > a; cout > b; }

int main() { int n = 0; int t_element = 0; double x, y = 0, xA = 0, yA = 0, A = 0, sumxA = 0, sumyA = 0, sumA = 0, xf, yf, Area = -1, pi = 3.14159265359; cout > n; for (int i = 1;i > t_element; Area = -1; if (t_element == 1) { enterbh(); Area = (base * height) / 2; } else if (t_element == 2) { enterwh(); Area = height * width; } else if (t_element == 3) { enterw(); Area = width * width; } else if (t_element == 4) { enterr(); Area = pi * radius * radius; } else if (t_element == 5) { enterr(); Area = (pi * radius * radius) / 4; } else if (t_element == 6) { enterr(); Area = (pi * radius * radius) / 2; } else if (t_element == 7) { enterah(); Area = (4* a *height)/3; } else if (t_element == 8) { enterah(); Area = (2* a *height)/3; } else if (t_element == 9) { enterah(); Area = (a*height)/3; } else if (t_element == 10) { enterahn(); Area = (a*height)/(n+1); } else if (t_element == 11) { enterab(); Area = (pi * a * b)/4; } else if (t_element == 12) { enterab(); Area = (pi * a * b)/2; }

if(Area != -1) cout > n; for (int i = 1;i > x; cout > y; cout > A;

xA = x * A; cout

sumxA = sumxA + xA; sumyA = sumyA + yA; sumA = sumA + A; }

cout

xf = sumxA / sumA; yf = sumyA / sumA;

cout

}

image text in transcribed

Pleas make the flow chart thank you

: 92250 : 20250 Sum of xA is Sum of yA is ex is : 51.25 Y is : 11.25

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

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions