Question: C++ 1) Pre-defined C++ functions A. Create a function that makes three function calls that use square root, cosine and floor. Display your results from
C++
1) Pre-defined C++ functions A. Create a function that makes three function calls that use square root, cosine and floor. Display your results from each call, such as "The square root of 4 is 2", etc.... B. Next write the function weather Generator that uses the random function. The function should have a loop that will generate 365 results from the randomly generated values, 1 through 7. Display 365 lines of the following for each randomly generated number's equivalent: 1 - Sunny 2 - Partly Sunny 3- Partly cloudy 4- Cloudy 5- Rain 6-Snow 7 - Fog
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
