Question: in C++ please. 2 2 Write a C++ program that: (a) uses your studentID as a seed for rand() function. (b) generates a random floating-point
in C++ please. 2 2 Write a C++ program that: (a) uses your studentID as a seed for rand() function. (b) generates a random floating-point number with 4 decimal points between -10 and -9c.g. -9.5427 and store it a variable. The interval does NOT include -9 and -10 i.e. (-10,-9). (e) print the generated random value. (d) print the absolute value, ceiling and floor of the generated random value. (e) print the decimal part of the generated random value. Sample Output Random number -9.7823 Absolute value: 9.7823 Its floor : -10 Its ceiling: -9 Its decimal part: 7823
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
