Hey I changed it, but the answer I'm getting this as the output when I put 5 as my search number:
-1 -1 -1
3
-1 -1 -1 -1
Type: Posts; User: special1zed
Hey I changed it, but the answer I'm getting this as the output when I put 5 as my search number:
-1 -1 -1
3
-1 -1 -1 -1
I just did 8, 7, 6, 5, 4, 3, 2, 1 for my array. And then I put 5 as my search number. Thanks for your help!
I'm sorry about not being clear enough. Here is the new code:
#include <stdio.h>
int main (void)
{
float ary[8];
float input;
int numbers;
int x;
Here is the problem. I need to make an array with floating point numbers, after entering the numbers, the program asks me to enter another number to search the array:
Example:
Consider the...
Okay I need help with this problem:
Write a function that verifies if a given number exists in an array of floats. The function is supposed to return the first position in where the number is...
Thanks! works great. Thank you guys for all your help again. You saved my grade! Is there a way to rep you on this forum?
So my if statement is incorrect?
The point of this program is to calculate the average of the array and then tell how many numbers are greater than or equal to the array. I am having trouble now with the calculating the amount...
That did the trick, thank you sooooo much again!
I changed that and I'm still getting 0 as the average. Thanks for the help though. I also changed the 10 to 10.0 and nothing changed.
Thanks, but since I changed the average to ave. I get the average as 0. What is wrong with it now? lol. Thanks for all your help btw.
I made a program that calculates the average of an array, but I'm getting wrong answers. When I enter 10 9 8 7 6 5 4 3 2 1, the average is 4199211. Are there any errors in my program? Thanks
...
thanks for your help, i'll check my answer again!
I have an online class and I got these homework questions that I have to do. I answered all the questions but not sure about some of them. I was seeing if anyone can check these for me? I'm new to...