Question: complete the program without any use of array. using void functions 1. Complete the program shown below. Note: do not omit the comments a) You

 complete the program without any use of array. using void functions

1. Complete the program shown below. Note: do not omit the comments

a) You will write a void function to get a positive integer

complete the program without any use of array.

using void functions 1. Complete the program shown below. Note: do not omit the comments a) You will write a void function to get a positive integer between 1 and 12 inclusive. The twelve numbers represent the months of the year. The user will be asked to enter an integer between 1 and 12 inclusive. If the number entered by the user is not within range, an appropriate error message will be displayed, and the user will be asked to try again until a valid number is entered b) You will write a void function to print the month number and the month name with an appropriate message. Consider a good layout when displaying the output c) You will also complete the function main by making a call to the function GetMonthNumber with an appropriate argument and by making a call to the function DisplayMonth with an appropriate argument d) Add a loop to allow the program to repeat, allowing the user to continue. Consider proper indentation and alignment of the statements e) Output your name as well before the program ends. f) Test the functions using different test data Show several examples to show that the program performs validation check as well. Write the documentation and include the screenshots. 1/ Purpose: To get a month number between 1 and 12 inclusive and print the month number and the corresponding month name. 11 This part to be completed 17 #include //for using cin and cout using namespace std; 11 Function Prototypes void GetMonthNumber(int.); void DisplayMonth (int): int main() int monthllum: y/a number representing a month GetMonth Number //get a month number W/call function o output the month number and month name system("pause"; return 11 Definition of function GetMonthNumber. 1. The parameter number is a reference parameter to an int. 1/ The function asks the user to enter an integer between 1 and 12 inclusive. 11 If the number entered is not within range, an error message will be 1/ displayed, and the user will be asked to try again until a valid number is 11 entered. void GetMonthNumber ) number representing month number ( //prompt user to enter number and read the number cout > while //while number entered is not between //between 1 and 12 // inclusive cout

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!