Help me with this Simple Problem using structure in turbo C.

Basic Program

The Problem:Using structure

1) Consider the given data in the student Class Record

a.) Enter for the name of the student and student number (10students).

b.) Enter the class standing and prelim exam.

c.) To Compute for prelim grade:

PG= (CS+PE)/2

d.) Enter the Class Standing for midterm and midterm exam.

e.) To compute for midterm grade:

MG= (PG+CS+ME)/3

f.) Enter the class standing for final and final exam.

g.) To compute for the final grade:

FG= (MG+CS+FE)/3

h.) Remark the final as Passed or Failed.

2.) After performing the inputs and computations arranged the

students name according to their alphabetical order.(Z-A).

pls help me make this problem into program using C,