Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c++ please # 1: homework-func-cpp This is basically a modification to your last assignment. Instead of having all the code in the main function,
in c++ please
# 1: homework-func-cpp This is basically a modification to your last assignment. Instead of having all the code in the main function, you'll implement the DispMesg function which will handle the actual display of the homework messages. The main function should prompt the user as usual for the number of times he/she wishes to be reminded to do his/her homework, but then this value should be passed as an argument to the DispMesg function. Thus the DispMesg function must have a formal parameter of type int, and it doesn't need to return anything to the caller (hint: what do you think the return type should be? Think of the DrawTriangle function we wrote earlier...). The result of running the program should produce output identical to the Do Your Homework programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started