usıng void functions 1. Complete the prograna shoan below. Note do sot omit the comments a) You will wnite a void fanction to get a positive integer between I and 12 inclasive. The twelve mumbers represent the months of the year. The user will be asked to enter an integer between I and 12 inclasive. If the mumber entered by the user is not within range, an appropriate error message will be displayed, and the user will be acked to try again uatil a valid number is entered. b) You will write a void function to priat the month number and the month name with an appropriate message. Consider a good layout when duplaying the output c) You will also complete the function main by making a call to the function GetMonthNumber with an appropriate argarment and by making a call to the fanction DisplayMonth with an appropriate argameat 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 wel before the program ends. f) Test the fuactions using different test data. Show several examples to show that the program performs valıdation check as well. Write the documeatation and include the screenshots. ) Submit the files to Moodles: cpp. exe, and the Word document.
usıng void functions 1. Complete the prograna shoan below. Note do sot omit the comments a) You will wnite a void fanction to get a positive integer between I and 12 inclasive. The twelve mumbers represent the months of the year. The user will be asked to enter an integer between I and 12 inclasive. If the mumber entered by the user is not within range, an appropriate error message will be displayed, and the user will be acked to try again uatil a valid number is entered. b) You will write a void function to priat the month number and the month name with an appropriate message. Consider a good layout when duplaying the output c) You will also complete the function main by making a call to the function GetMonthNumber with an appropriate argarment and by making a call to the fanction DisplayMonth with an appropriate argameat 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 wel before the program ends. f) Test the fuactions using different test data. Show several examples to show that the program performs valıdation check as well. Write the documeatation and include the screenshots. ) Submit the files to Moodles: cpp. exe, and the Word document.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 8RQ
Related questions
Question
![Σ
00
LO
R
%24
BA11 (1) - Protected View - Saved to this PC
no.
References
Mailings
Review
Help
n contain viruses. Unless you need to edit, it's safer to stay in Protected View.
Enable Editing
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 fwelve
mumbers represent the months of the year. The uzer will be asked to enter an integer between 1 and 12
inclusive. If the mumber entered by the user is not within range, an appropriate error message will be
displayed, and the nser will be asked to try again uatil a valid number is entered.
b) You will write a void function to print the month mumber 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 fmction 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.
g) Submit the files to Moodles: .cpp, .exe, and the Word document.
I.
CFocus
M
意。
du
114
144
DD\
6
3.
2
1/4
1/2
4.
1.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe7d514b7-31e0-4328-8245-ec8e02ad3f3d%2F998676ea-6085-4ff0-a29a-45bed3ef8cab%2Foh8pmzr_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Σ
00
LO
R
%24
BA11 (1) - Protected View - Saved to this PC
no.
References
Mailings
Review
Help
n contain viruses. Unless you need to edit, it's safer to stay in Protected View.
Enable Editing
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 fwelve
mumbers represent the months of the year. The uzer will be asked to enter an integer between 1 and 12
inclusive. If the mumber entered by the user is not within range, an appropriate error message will be
displayed, and the nser will be asked to try again uatil a valid number is entered.
b) You will write a void function to print the month mumber 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 fmction 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.
g) Submit the files to Moodles: .cpp, .exe, and the Word document.
I.
CFocus
M
意。
du
114
144
DD\
6
3.
2
1/4
1/2
4.
1.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,