Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a complete C++ to meet the following requirements. Note: You can use the c

ID: 3667037 • Letter: W

Question

Write a complete C++ to meet the following requirements. Note: You can use the computer this problem College has hired you as programmer to display the student schedule. Your code should display the following: (The user should input Name of the student, Student ID, Name and hours of the course. Hint please use the string command) Spring 2016 Schedule Name of the student: Student ID: Name and hours of the course Please note that your program should perform calculations to obtain the total semester hours.

Explanation / Answer

    #include<stdio.h>


    int main()


    {


            int stud[10],stud_id,total,avg;


            int mark,num_of_studs,nu_of_course,i,j;


            printf("Enter number of students


    ");


            scanf("%d",&num_of_studs);


            for(i=0;i<num_of_studs;i++)


            {


                    total=0;


                    avg=0;


                    printf("ENter Student Id num:");


                    scanf("%d",&stud_id);


                    printf("


    Enter courses no:");


                    scanf("%d",&nu_of_course);


                    for(j=0;j<nu_of_course;j++)


                    {


                            printf("


    name of course%d :",j+1);


                            scanf("%d",&mark);


                            total=total+mark;


                    }


                    avg=total/nu_of_course;


                    printf("==================================================


    ");


                    printf("


    Student id:%d",stud_id);


                    printf("


    Total marks: %d",total);


                    printf("


    Average:%d


    ",avg);


                    printf("==================================================


    ");


                  


            }


   


    }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote