I'm going for a second attempt at my project. The system would allow Lecturer to Create a course marking scheme. A course marking scheme allows a lecturer to set the weightage of individual assessment in a Particular Course. This is the logic that I have come up with so far. Is it okay?

Step 1: Break down into a series discrete steps


Weightage for final exam mark= 40%.
Midterm weightage = 20-30 %
Lab test or quiz or lab test and quiz or none <= 5%
One or more assignment(depending on lecturer)
Assignment 1 mark = weightage & total
Project = weightage & total
Final (40%) + Midterm(range of between 20% to 30%) + (the rest of assessment weightage) = 100% Weightage

Step 2: Convert into codes

Weightage for final exam mark= 40%.
Code:
scanf("%lf", final_weightage);
if(final_mark != 40)    
     print("Error\n");
Midterm weightage = 20-30 %
Code:
scanf("%lf", midterm_weightage);
if(midterm_weightage <=19 || midterm_weightage >=31)
    print("Error\n");
Lab test or quiz or lab test and quiz or none <= 5%
Code:
if (option==1)
    printf("Lab test\n");
    printf("Enter weightage");
    scanf("%lf", &lab_test);


//...


else if (option==3)
    printf("Lab test and quiz\n");
    printf("Enter weightage for lab test\n");
    scanf("%lf", &lab_test);
    printf("Enter weightage for quiz\n");
    scanf("%lf", &quiz);


else if (option==4)    
    printf("None\n");
Same way goes to assignment 1 and project.

Final (40%) + Midterm(range of between 20% to 30%) + (the rest of assessment weightage) = 100% Weightage
Code:
Weightage = final_weightage + midterm_weightage + lab_test + quiz + assignment 1 + project;
if(Weightage != 100)
    goto home;
else
    /*save course marking scheme in txt file