I have to write a program that calculates a students final grade. The program should allow the user to input a students name, their exam grades, and their lab grades. using fstream

The program should determine averages, calculate the final grade and display the output.

For each student generate the following output and write to a file:
Student Name
Exam Grades 100 100 100
Lab Grades 90 90 90 90 90
Final Grade 97.5(A)

Hi dssn

You posted your problem but no code. You must write your own code because no one here will do that part for you. If you are having problems with a code you already wrote the mods or some of the nice people on this forum will help you fix it. BUT you must write the actual code yourself.

I did this same assignment centuries ago....so we'll help you...just give it a shot/start!

Put all the data in a file read the file and calculate average. That is a simple project assignment.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.