Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the functionality number 3 and 6 below of a menu-driven procedural C++ program that shows on the console statistic values from a series of

Complete the functionality number 3 and 6 below of a menu-driven procedural C++ program that shows on the console statistic values from a series of 3 real values inserted by the user. Use as starting point the program prototype below. BASIC STATISTIC CALCULATOR:

1.- Insert Series

2.- Minimum

3.- Maximum

4.- Sum

5.- Arithmetic Mean

6.- Standard Deviation

7.- Full Report

8.- Show Series

0.- Quit

Template below-

//Basic Calculator based on menu #include  using namespace std; //DECLARATION OF PROTOTYPES int menu(); void dataInput(float &x1,float &x2, float &x3); void showSum(float x1,float x2, float x3); void showSeries(float x1,float x2, float x3); void showMinimum(float x1,float x2, float x3); void showMean(float x1,float x2, float x3); void showFullReport(float x1,float x2, float x3); int main(void){ int op; float x1=0,x2=0, x3=0; do{ op=menu(); switch(op){ case 1: system("cls"); dataInput(x1,x2,x3); break; case 2: system("cls"); showMinimum(x1,x2,x3); break; case 4: system("cls"); showSum(x1,x2,x3); break; case 5: system("cls"); showMean(x1,x2,x3); break; case 7: system("cls"); showFullReport(x1,x2,x3); break; case 8: system("cls"); showSeries(x1,x2,x3); break; } }while(op!=0); return 0; } int menu(void){ int option; cout<<" Basic Calculator "; cout<<" 1. Insert series"<>option; return(option); } void showSum(float x1,float x2, float x3){ cout<<" Sum: "<>x1>>x2>>x3; } void showSeries(float x1,float x2, float x3){ cout<<" Series: "<                        

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

More Books

Students also viewed these Databases questions