C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28629
Number of posts: 94611

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
URGENT!!! i have prob on struct n array.. need handin in few hours.. Posted by ITstudent on 2 Dec 2012 at 1:29 AM
PLEASE..........i've been tried this for 2 days..

Write a program to calculate the grade point average (CGPA) of the student. Students are required to enter the course and the grade of the subjects taken and the next program will calculate CGPA received by students. Make sure students include data for at least two semesters for the purpose of this calculation of CGPA. For each semester, show the calculation of the overall grade obtained.
Your program should use a structure concepts to students and using the concept of arrays for the subjects taken.

semester1
MTS3013 structure programming
MTK3013 structure disckrit
MTN3013 computer organization and architecture

SEMESTER2
MTS3033 OBJECKT ORIENTED PROGRAMMING
MTN3023 NETWORKING
MTD3033 DATABASE SYSTEM

if (gred=='A')
cout<<"4.00";
else if (gred=='A-')
cout<<"3.75";
else if (gred=='B+')
cout<<"3.50";
else if (gred=='B')
cout<<"3.00";
else if (gred=='B-')
cout<<"2.75";
else if (gred=='C+')
cout<<"2.50";
else if (gred=='C')
cout<<"2.00";
else if (gred=='C-')
cout<<"1.75";
else if (gred=='D+')
cout<<"1.50";
else if (gred=='D')
cout<<"1.00";
else (gred=='F')
cout<<"0.00";
Report
Re: URGENT!!! i have prob ... Posted by Pelle-48 on 2 Dec 2012 at 11:20 AM
You can get some help here:
http://www.cplusplus.com/doc/tutorial/structures/
You have some more C++ code on for example rosettacode.org
Report
Re: URGENT!!! i have prob ... Posted by ITstudent on 3 Dec 2012 at 4:29 AM
thanks for your help.. i've all ready done it
Report
Re: URGENT!!! i have prob ... Posted by ITstudent on 3 Dec 2012 at 4:36 AM
thanks for your help.. i've all ready done it



 

Recent Jobs