Friday, July 31, 2009

How to write the information given in C program?

a) Write a function that will return a random double number. The function takes two parameters (both integers). The first parameter is the maximum whole-number value that the number can be (the minimum is 0.) The second parameter is how many places of random precision the number must have.





b) Write a line of code that will call the function you just wrote above and ask it to generate a random number from 0-100 with two places of precision, saving the return value in a variable (declare it) named ran.





c) Print the value of ran to two places.

How to write the information given in C program?
Dude let me tupe it up first and then I will get back to you on that

order flowers

No comments:

Post a Comment