Computing.Net > Forums > Programming > How to write a C++ Program

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

How to write a C++ Program

Reply to Message Icon

Original Message
Name: Alex
Date: September 17, 2002 at 20:15:01 Pacific
Subject: How to write a C++ Program
OS: Windows XP
CPU/Ram: AMDathlon/512
Comment:

I am trying to learn C++, I was given this program to write out. I will type this exactly what was given to me:

"Write a program to read a student's school id number, his old GPA(grade point average), and old number of course credits (for example,34573,3.5,45), and then print these with appropriate labels. Finally, read in the course credit and grade for each of four courses; for example, Course1=3, Grade1=3.2, Course2=4, Grade2=3.5, Course3=2, Grade3=4.0, Course4=4, Grade4=3.5. Calculate:

old # of honor points=(old#of course credits)*(old GPA)

new # of honor points=Course1*Grade1+Course2*Grade2+Course3*Grade3+Course4*Grade4

current GPA = #of new honor points / #of new course credits

Print the current GPA with appropriate lables. Then calculate

cummulate GPA = (#of old honor points)+(#of new honor points) / (#of old courses credits)+(#of new course credits)

and print this with a label. "
I hope you guys can help me out on this one.


Report Offensive Message For Removal


Response Number 1
Name: Anon
Date: September 19, 2002 at 22:27:47 Pacific
Reply: (edit)

It sounds like homework to me. But anyway Maybe a link to a book on C++ would be a helpful

http://ieee.metu.edu.tr/~tural/Tutorials/c++/index.htm


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge
Poll History




Data Recovery Software