need help!!

AWSUM SID

Active member
Regular
Joined
Nov 17, 2011
Messages
1,345
Kin
0💸
Kumi
0💴
Trait Points
0⚔️
okay... so i'm new at this C++ programming. Here is the question of a program that I cant write properly

Create a C program which will take five subjects grade point and will output gpa.

Pls help if you peeps can. Thanks!
 

AWSUM SID

Active member
Regular
Joined
Nov 17, 2011
Messages
1,345
Kin
0💸
Kumi
0💴
Trait Points
0⚔️
This smells like homework to me. Don't be lazy. Show me what you have so far and I will help you finish it.
actually... it isnt homework It was a question in my lab class that i couldnt answer.

I know the basics like

#include<stdio.h>

void main (void)
{

printf
scanf

}

i made a program previously that can determine age accurately but got stuck with this one for some reason. I know it sounds foolish :p . Guess my understanding isnt that good enough. Could you be so kind enough as to write the program. It'll help me alot.
 

gamahiro

Active member
Supreme
Joined
Jul 8, 2010
Messages
32,579
Kin
0💸
Kumi
0💴
Trait Points
0⚔️
Awards
Homework...schoolwork...same thing.
Google it. Copy it from somewhere. Run it. Research. Tweak. Run. Repeat until you get it, or until you get stuck. Then post here what you have so far, and where you are stuck.
 

Voltron

Active member
Elite
Joined
Oct 15, 2012
Messages
5,821
Kin
0💸
Kumi
0💴
Trait Points
0⚔️
you need to assign different values to your input. for example:
A ==> 4
B ==> 3
so on and so forth. when the user inputs the values, the program will automatically assign values to a variable, allowing you to increment them....
next, you need to average them and it outputs an value!!

so easiest way is to create a loop.....
What you are doing with the h file is actually rather advanced for a beginning c++ class....
I should be able to help you write the program....
 
Top