Question: WRITE THIS PROGRAM IN C THANK YOU! Function Pointers Assignment 2 due Thursday, October 4th Simple Calculator filename: yourlastname2.c Write a program that prompts the

WRITE THIS PROGRAM IN C

WRITE THIS PROGRAM IN C THANK YOU! Function Pointers Assignment 2 due

Thursday, October 4th Simple Calculator filename: yourlastname2.c Write a program that prompts

THANK YOU!

Function Pointers Assignment 2 due Thursday, October 4th Simple Calculator filename: yourlastname2.c Write a program that prompts the user for which operation they want to run This program should loop, allowing the user to select a different operation using different operands for each iteration Use an array of four functions 1. function that will add two user inputted values. 2. function that will subtract the user inputted values 3. A function that will multiply the user inputted values 4. A function that will divide the user inputted values. The functions will . be passed the user inputted values (the operands) . print the equation without the answer . return the solution (functions will not have a return type of void) main() will . loop until user inputs O . print the menu (you can have a menu function, if you want) . request the operation . get the operands from the user (only if they did not choose to exit) . print the results (which I expect to be in a readable, labeled format - most or all of the labeling will occur in the function). There should only be ONE line of code for calling ALL four of the functions (and it should only call the selected one) Call the functions from main0 using the array! Do NOT use the function names to call the functions - you will get a ZERO. ONLY call the user selected function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!