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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 8RQ
icon
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.
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
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Variables
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,