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) 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

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!