Marketplace

Related Articles

More

Related Categories

Recently Added

More

Join StudyUp.com Today

It's always free and anyone can join!

Watch StudyUp Demo Video Now

You Recently Visited

Writing Prompts For 4th Grade

Calvin Said:

I need help writing a GPA calculator program in C++. ?

We Answered:

well, im doing java right now, so code wise, i wont be of much help.

Normally, i would have a GetLetterGrade() to get the grade, and AskLetterGrade() to give back the grade, cause it would look nicer.

Now for the "Function receives the course's count as a prompt", im not too sure what it means. You mean counts the classes total grades and returns average? Well, convert those letters into numbers (thanks to the ConvertToNumericGrade() function), add them up, and divide by the # of times you looped, round the number (or if you can't, just add 0.5 to it, then change it to int), and choke out the letter using if statements.

Discuss It!