## C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28695
Number of posts: 94715

This Forum Only

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";
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
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
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

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.