Hi All
I am a beginner to C Programming, as a Networking student, im struggling with some of the programming for university module, using an application called Code-Block. I have been struggling with some of the basic programming and wonder if anyone can give me any advise or pointer on where to get things started.
Write a program to read three numbers and to output the median value. The median of three numbers is the number whose value is between the other two. For example, the median of 3, 8, and 4 is the value 4. (This is not the average, which would be 5). Note that the median of 3, 8 and 3 is the value 3.
Write a program to read a coursework mark between 0 and 100. Assign a letter grade of ‘A’ for a mark of 70 or above; ‘B’ for a mark of 60 to 69; ‘C’ for a mark of 50-59; ‘D’ for a mark of 40-49 and ‘F’ for a mark below 40. Output this grade or an error message for a mark below 0 or above 100.
Write a program to read a series of positive and negative integer values terminated by a 0, and outputs the length of the longest sequence of negative values. For example: for the following input:
5 6 7 -4 -5 9 1 6 7 8 -1 5 6 -4 -1 -7 -9 7 -4 -5 8 7 0
Output: the longest negative sequence is of length 4
Corresponding to the sequence -4 -1 -7 -9 (not required on output).
[/SIZE][/FONT]
Any help would be much appreciated
Regards
Ollie