Draw pie chart in c++ program, C/C++ Programming

Assignment Help:

Draw pie chart in c++ program:

int main()

{

                char cmd;

 

                cout << "Chart desired: Pie  Bar  Scatter  Line  Three-D";

                cout << "\n Press first letter of the chart you want: ";

                cmd = toupper(getch());

                cout << '\n';

 

                if (cmd == 'P')

                                cout << "Doing pie chart\n";

                else if (cmd == 'B')

                                cout << "Doing bar chart\n";

                else if (cmd == 'S')

                                cout << "Doing scatter chart\n";

                else if (cmd == 'L')

                                cout << "Doing line chart\n";

                else if (cmd == 'T')

                                cout << "Doing 3-D chart\n";

                else cout << "Invalid choice.\n";

 

return 0;

}


Related Discussions:- Draw pie chart in c++ program

Explain about the unions, Explain what are Unions? The Unions like as s...

Explain what are Unions? The Unions like as structures, contain members whose individual data types may perhaps differ from one another. Though the members that create a union

Define the bitwise-exclusive-or operator, Define the Bitwise-Exclusive-OR O...

Define the Bitwise-Exclusive-OR Operator: ^: The bitwise-exclusive-OR operator (^) compares every bit of its first operand to the corresponding bit of its second operand. If on

Write a Programme that computes the price of portfolio, write a programme t...

write a programme that computes the price of shares and options. do the options in one-period binomial model.

#psuedocode, Create a pseudocode in getting Calendar Quarter. The program s...

Create a pseudocode in getting Calendar Quarter. The program should identify which quarter falls the given date. Note: Consider the date format DDMMYYYY.

Tells the operators one can override; which operators , Q:  Tells the opera...

Q:  Tells the operators one can override; which operators should he override? A: Bottom line: don't puzzle your users. Remember the reason of operator overloading: to decreas

What is object variable, The definition of an object(variable ): We can...

The definition of an object(variable ): We can explain a variable(set memory to the variable) in the following ways. e.g. double salary; int month; When more than o

Program, program to check whether a given point lies inside a rectangle or ...

program to check whether a given point lies inside a rectangle or not

Quick Homework, Write three functions in C or C++: one that declares a larg...

Write three functions in C or C++: one that declares a large array statically, one that declares the same large array on the stack, and one that creates the same large array from t

Flowcharts, push and pop operation using array draw flowcharts

push and pop operation using array draw flowcharts

What is your reaction to following line of code? , Q-What is your reaction ...

Q-What is your reaction to following line of code?               delete this; A: This is not a good programming Practice. A good programmer will insist that you must absolute

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd