Write a C – Program which :
a) stores the students data in an " array " , ( stu [102] [6] )
b) data of each one of the (100 students) is stored in " one raw " of the array, (stu),
( this data includes:- "student number " and marks of "five " subjects ) .
c) sorts the array (rows) according to the marks of the " second subject" .
d) calculates the " average marks " for every subject.
------------------------------------------------------------------------------------------------------------
Write a C – Program which
a) define a "structure type", ( distance ) which includes
( meters , centimeters , and millimeters).
b) defines two variables of type ( distances ) , A and B.
c) reads values for A and B.
d) defines a "FUNCTION" that receives the two ( distances ) , A , B
e) the function will reserve ( another ) two ( distances ) C and D.
f) stores ( A + B ) in ( C ) , and ( prints ) its contents on screen
g) stores ( A * B ) in ( D ), and ( returns ) ( D ) to the main program
Write a C-program that :-
o Reads an integer number, (n) .
o Sends (n) to a "FUNCTION"
o The function prints on screen (n) terms of the following series ;
ai ,(i = 0 , 1 , ... n-1 );
(for example. a0 , a1 , ....... , an-1 ) , where, , ai = (-1)i x (i)2i