Question: Using passing by value or by reference, create the following four functions/procedures: void displayMenu(); int largest(int a, int b, int c); void mySort(int& a, int&

Using passing by value or by reference, create the following four functions/procedures: void displayMenu(); int largest(int a, int b, int c); void mySort(int& a, int& b, int& c); void myPermutation(int& a, int& b, int& c); where displayMenu prints a list of options to the console, largest returns the largest value among three input integers, mySort sorts the three integers in ascending order, and myPermutation applies a permutation to the numbers (that is, a list of numbers 1 2 3 will become 3 1 2 after the function call). Your main function should take in three integers from the user, and then continuously display a menu of options and call the corresponding function based on the user input until the user enters Q or q.

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!