Purchase Solution

Writing a program to calculate GPA

Not what you're looking for?

Ask Custom Question

Write a program to read a student's number, his or her old grade point average, and the old number of course credits (e.g., 31479, 3.25, 66) and to then print these with appropriate labels. Next, read the course credit and grade of four courses - for example, course1Credits = 5.0, course1Grade = 3.7, course2Credits = 3.0, course2Grade = 4.0, and so on.

Calculate
Old # of honor points = (old # of course credits) * (old GPA)
New # of honor points = course1Credits * course1Grade + course2Credits * course2Grade + ...
Total # of new course credits = course1Credits + course2Grades + ...
Current GPA = # of new honor points/# of new course credits

Print the current GPA with an appropriate label. Finally, calculate cumulative GPA = (#of old honor points) + (#of new honor points)/(#of old course credits) + (#of new course credits) and display this label.

Write the program in C++ language.

Purchase this Solution

Solution provided by:
Education
  • BSc (Hons), University of Colombo - Sri Lanka
  • MEngSc, University of Melbourne
  • Certificate IV in Training & Assessment , Australian Business Council
Recent Feedback
  • "Thank you!"
  • "Thank you."
  • "Thanks a lot for you help and support"
  • "Sorry about the late payment but the assignment was sufficient and appreciated. Good work"
  • "Great description! Thank you for your quick response."
Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Javscript Basics

Quiz on basics of javascript programming language.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.