Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

must follow this code format,option six is custom implement in one function using c++ built in function its in the 3 to last bullet point

image text in transcribed

must follow this code format,option six is custom implement in one function using c++ built in function its in the 3 to last bullet point

LECTURE CODE: ///////////////////////////////// // // // #include using namespace std;

// functions prototypes void fun1(); void fun2(int x); void fun3(int a, double b, bool c); /////////////////////////// // project entry point int main() { // declaration int z; double l; bool s; // initialization z = 100; l = 3.145; s = true;

fun1(); fun2(100); fun3(z,l,s); return 0; }

////////////////////////////// // // void fun1() { // declaration

// initialization

cout

////////////////////////// // void fun2(int x) { // declaration

// initialization cout

/////////////////////////////////////////// // // void fun3(int a, double b, bool c) // the arrangment of a first, b second , c third is called function signiture { // declaration

// initialization cout

// no return is needed }

CREATE A C++ PROGRAM THAT IMPLEMENTS A CALCULATOR WITH THE FOLLOWING FUNCTIONALITIES: 1. ADDITION FUNCTION 2. SUBTRACTION FUNCTION 3. MULTIPLICATION FUNCTION 4. DIVISION FUNCTION 5. SINE, COSINE, TAN FUNCTION (SAME ANGLE) YOUR PROGRAM DISPLAYS A MENU FROM WHICH THE USER CHOOSES WHAT FUNCTION NEEDED FROM ABOVE. ONCE THE FUNCTION IS CHOSEN, THE SCREEN CLEARS AND ASKS THE USER TO INPUT THE DATA NEEDED FINALLY YOU PROGRAM DISPLAYS THE RESULT AND ASKS THE USER IF HE NEEDS TO REPEAT THE PROCESS OF CHOOSING A DIFFERENT FUNCTION CODE IMPLEMENTED USING FUNCTIONS ONLY. NO CODE IN THE MAIN BESIDES DECLARATIONS AND INITIALIZATION. USE A SEPARATE FUNCTION FOR OPTIONS 1 THROUGH 4 IMPLEMENT OPTION 6 IN ONE FUNCTION USING C++ BUILT IN FUNCTIONS. TEST YOUR RESULTS ACCURACY IF NEEDED USE #INCLUDE FOR OPTION # 6. CREATE A C++ PROGRAM THAT IMPLEMENTS A CALCULATOR WITH THE FOLLOWING FUNCTIONALITIES: 1. ADDITION FUNCTION 2. SUBTRACTION FUNCTION 3. MULTIPLICATION FUNCTION 4. DIVISION FUNCTION 5. SINE, COSINE, TAN FUNCTION (SAME ANGLE) YOUR PROGRAM DISPLAYS A MENU FROM WHICH THE USER CHOOSES WHAT FUNCTION NEEDED FROM ABOVE. ONCE THE FUNCTION IS CHOSEN, THE SCREEN CLEARS AND ASKS THE USER TO INPUT THE DATA NEEDED FINALLY YOU PROGRAM DISPLAYS THE RESULT AND ASKS THE USER IF HE NEEDS TO REPEAT THE PROCESS OF CHOOSING A DIFFERENT FUNCTION CODE IMPLEMENTED USING FUNCTIONS ONLY. NO CODE IN THE MAIN BESIDES DECLARATIONS AND INITIALIZATION. USE A SEPARATE FUNCTION FOR OPTIONS 1 THROUGH 4 IMPLEMENT OPTION 6 IN ONE FUNCTION USING C++ BUILT IN FUNCTIONS. TEST YOUR RESULTS ACCURACY IF NEEDED USE #INCLUDE FOR OPTION # 6

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_2

Step: 3

blur-text-image_3

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

Advances In Spatial And Temporal Databases 10th International Symposium Sstd 2007 Boston Ma Usa July 2007 Proceedings Lncs 4605

Authors: Dimitris Papadias ,Donghui Zhang ,George Kollios

2007th Edition

3540735399, 978-3540735397

More Books

Students also viewed these Databases questions