Question: Q1. Write a Complete C/C++ which would get a and b values from the user as integer numbers. Additionally, the program will generate c as
Q1. Write a Complete C/C++ which would get a and b values from the user as integer numbers. Additionally, the program will generate c as a random integer number in between the range of -5 and 10 Having done these, these values (a, b and c) will be passed into a user-defined function named equation which would then calculate the given formula below. The result of the equation will return back to main where the output will be displayed. Please be aware that formula calculation needs to be done in the user defined function and NOT in the main. The user defined function prototype and formula are given below. Note that lcl stands for absolute value of c. (25 pts.) float equation (int, int, int) cos(b) +Vab +Ic12 result log10(100)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
