Question
#include #include #include #include using namespace std; int main() { srand(time(NULL)); int intnum_1, intnum_2, intnum_3; float avg_value; //Write code to place number as per specifications
#include |
Lines 10 and 11 declare 3 int variables and 1 float variables. The 3 int variables are populated using random number generation. In order to complete this program, complete these steps:
Write a loop to ensure that intnum_1 is Between 1 and 50 It is a multiple of 6 |
Implement the print_numbers function by: Defining the function Coding a function prototype |
Implement the get_average_value function by: Defining the function Coding a function prototype |
Sample output
#1 (multiple of 6)=30, #2=12, #3=1
Average value of first 2 numbers = 14.3
Step 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