*meant to say 60 - 100
Type: Posts; User: g3tb0mbed
*meant to say 60 - 100
My assignment is to first:
1. create a program to generate 100 random grades from 50-100
2. display them in 5 rows of 20 grades
3. display the average of the grades as a float
4. display the most...
It is an array of integers. And the only way i was taught was
int x[500] = {42, 42, 42, ...};
Which is why im asking for help
I was thinking if i were to generate a random number between say 10 and 20 i could do
int r = rand() % (21 - 10) + 10;
Is there a more efficient way?
How would i go about loading an array with random numbers with in a range. For example, loading an array of 500 elements with random numbers in the range of 50-100.
Thank you for your help :)
No that definitely wont be acceptable. Sorry its my fault im really new to this and missed the first two weeks of class due to being in the hospital. Ill go through the textbook again and see if i...
Could i start my program off with just that printf statement and then use for loops for the rest of the pyramid?
In order to do that all i would need is a single printf statement
printf("0000000000");
How exactly does this help me
I honestly don't know where to start or I wouldn't be asking this question
Any help is appreciated...
I need to create a program that gives this output
0000000000
999999999
88888888
7777777
666666
55555
4444
333
I wanted to make a counter variable and add 1 to it everytime a number is greater than 80. Then if counter is over 5 itll output "high tide." But im kind of lost
Write a program to allow a user to input 10 integers. If more than half of the integers are over 80, then print “high tide.” otherwise print “low tide”
Any help is appreciated. I am a student...