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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to write a C++ Program

Reply to Message Icon

Name: Alex
Date: September 17, 2002 at 20:15:01 Pacific
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.



Sponsored Link
Ads by Google

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

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


0
Reply to Message Icon

Related Posts

See More







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


Sponsored links

Ads by Google


Results for: How to write a C++ Program

Writing a c++ program www.computing.net/answers/programming/writing-a-c-program-/11985.html

converting a C program to dll file www.computing.net/answers/programming/converting-a-c-program-to-dll-file/12310.html

how to run my C++ program in bakgrn www.computing.net/answers/programming/how-to-run-my-c-program-in-bakgrn/12618.html