Name your files hw3_<problem>.cpp, such as hw3_1.cpp. Email all the cpp files to my Helios account.
int main() { int num1, num2, num3; double dnum1, dnum2; // Two integer version get_input(num1, num2); print_min(find_min(num1, num2)); // Two double version get_input(dnum1, dnum2); print_min(find_min(dnum1, dnum2)); // Three integer version get_input(num1, num2, num3); print_min(find_min(num1, num2, num3)); return 0; }
Welcome to the CS221 Homework 3 Menu ==================================== 1. Multiply two integers 2. Divide two integers 3. Check if a number is within the range 10-20 4. Find the minimum of a list of 3 numbers 0. Exit ==================================== Enter selection:From within each case statement, there will be a void function that gets the input from the user using by-reference parameters and a second void function that takes the input as by-value parameters, does the task and prints the result to the screen. For example, the first menu item case statement would be:
case 1: int a, b; get_input(a, b); do_multiply(a, b); break;You should have at least the following 7 void functions in your final code. More functions are fine if you wish to break each menu item task into subtasks.