Question: I hope I can get help with this, it is urgent: Create a new project, add this code to the project and follow the instructions
I hope I can get help with this, it is urgent:
Create a new project, add this code to the project and follow the instructions :
/* Make sure to put your name on top. Use constants for any value that doesnt change. Make sure to follow the guidelines for programming. Create a Program that does the following. Main consists of two function calls. getSelection(int, int) processSelection(int) Put the two functions in a do while loop that keeps processing until exit is selected. getSelection does the following. calls display menu. gets a valid menu selection. Use a do while loop to get an integer that does not accept anything less than minimum or greater than maximum processSelection uses a switch statement to call the appropriate function. The switch statements should call the proper function and display the results. Ex Menu Press 1 to get the area of a rectangle. Press 2 to get the radius of a circle. Press 3 to get the circumference of a circle. Press 4 to check if a number is even. Press 5 to exit Use the following functions. Int getAreaRectange() Calls getNumber twice to get length and the width getNumber keeps getting input until a number > 0 is imput Calculates and returns the area as an int Int getRadius Calls getNumber to get radius Double getCircumference Calls getNumber to get the radius Calculates and returns the circumference PI * diameter. Use 3.14159. Make sure to declare as global constant checkIfEven() call getNumber to get a number to check call Bool isEven(int) to check if number is even Prints whether the number is even or odd. Extra Credit Add a menu selection of your choice Process the choice Use a Sentinel instead of literal to end. */ #include#include using namespace std; void displayMenu(); int getSelection(int, int); void processSelection(int); int getNumber(); void checkIfEven(); bool isEven(int); int main() { return 0; } //main void displayMenu() { } int getSelection(int, int) { return 0; } void processSelection(int) { } int getNumber() { return 0; } void checkIfEven() { } bool isEven(int) { return false; }
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
