Question: Activity description: complete three C + + programs with the requirement mentioned below. You must submit a . cpp file the three programs mentioned below

Activity description: complete three C++ programs with the requirement mentioned below. You must submit a .cpp file the three programs mentioned below as Question 2,3, and 4.
Include the following comments in the header of the .cpp file.
/*
Student's fullname
Homework 2: functions and nested loop
Jan 15,2024
*/
Question 2
The program will print all numbers from the minimum number to a maximum number in a step of 1. The program should have the following functions:
One function to collect and return a number between 1 and 20. If the user enters a wrong number, the program should ask the user to enter a number again. Name the function as collect_num()
One function, named lowest_num(), to find and return the lowest number between two numbers. The two numbers are collected using function collect_num(), for example:
int n1= collect_num();
int n2= collect_num();
int minimum = lowest_num (n1,n2);
One function, named highest_num(), to find and return the highest number between two numbers. The two numbers are collected using function collect_num(), for example:
int maximum = highest_num (n1,n2);
one function to print all numbers between two numbers. It prints from the lowest to the highest number, inclusive, in a step of 1. This
When runs the program, the program asks the user to enter two numbers:
Question 2
Enter number 1:
 Activity description: complete three C++ programs with the requirement mentioned below.

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!