Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
CREATE A PROGRAM THAT WILL INPUT THE FOLLOWING:
* STUDENT NUMBER		* ASSIGNMENT AVERAGE 10%
* STUDENT NAME		           * SEATWORK AVERAGE	> 15% 
* COURSE				* LAB ACTIVITIES AVERAGE – 25%
* YEAR				* QUIZZES AVERAGE 	– 20%
ASSIGNMENT1 GRADE	           * LONG QUIZ 		– 30%
ASSIGNMENT2 GRADE	           * CLASS STANDING	= 100%
ASSIGNMENT3 GRADE	            MIDTERM GRADE:
SEAT WORK 1 SCORE		  CLASS STANDING 		= 60%
SEAT WORK 2 SCORE		* MIDTERM EXAM GRADE 	= 40%
LAB ACT 1	GRADE			*Midterm grade		= 100%
LAB ACT 2 GRADE		   DISPLAY THE FOLLOWING WITH 
LAB ACT 3 GRADE		   ASTERISK SYMBOL (*)
QUIZ 1 SCORE
QUIZ 2 SCORE
LONG QUIZ SCORE
MIDTERMS EXAMS SCORE


What I have tried:

I'm new in C language and I dont know where to start coding this program

C
#include <stdio.h>

int main()
{
    float eng, phy, chem, math, comp; 
    float total, average, percentage;

    /* Input marks of all five subjects */
    printf("Enter marks of five subjects: \n");
    scanf("%f%f%f%f%f", &eng, &phy, &chem, &math, &comp);

    /* Calculate total, average and percentage */
    total = eng + phy + chem + math + comp;
    average = total / 5.0;
    percentage = (total / 500.0) * 100;

    /* Print all results */
    printf("Total marks = %.2f\n", total);
    printf("Average marks = %.2f\n", average);
    printf("Percentage = %.2f", percentage);

    return 0;
}
Posted
Updated 27-Mar-22 23:27pm
v4
Comments
Richard MacCutchan 28-Mar-22 4:00am    
If you really do not understand the question then you should talk to your teacher about some extra tuition.
Greg Utas 28-Mar-22 7:41am    
I don't think you've posted the entire assignment. All the program has to do is input a bunch of data? Then what?!

I suggest you start here : Basic Input and Output in C[^]

You might also want to ask your tutor to make the question a bit clearer and to STOP SHOUTING (i.e. don't use all capitals)
 
Share this answer
 
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900