C++ I/O and Basic Calculation

Hello all you wonderful genius programmers. I have to take a computer programming class as a prerequisite to get into nursing school...unfortunately I have absolutely no idea how to do any programming whatsoever and I am in DESPERATE need of help. I have an assignment due that I need help at least maybe just getting it started...

Here's the assignment:
This project involves read students' input data from a file and processing it
to calculate each student's average grade and determine a proper letter grade.
The specific tasks are:

1. Read student's record from the file "students.txt".
2. Calculate each student's average grade.
3. Assign letter grade to each student based on average grade.
4. Calcualte total average grade for all students.
5. Print the result to a display monitor including names, grade, average
grades, letter grades, and total average

and then the "students.txt" file contains this information:
Name Exam-1 Exam-2 Exam-3
J 78 90 88
L 80 87 82
S 60 58 78
T 75 78 56
C 95 90 92
R 89 79 67

Any and all help will be seriously appreciated! I can return the favor with cupcakes and cookies or anything else delicious. PLEASE help!

PS: I have a mac so I've been using Xcode version 6.2 to do other programming..
Last edited on
First of all.

I have to take a computer programming class as a prerequisite to get into nursing school


All I can think of is what the actual fuckety fuckate fuck? Why?...

Imma send you a couple of videos and 1-2 links that you can look at. They'll explain in the most basic way how file-handling works. Get started on atleast something. Show us the code (please use code tags <> under the format section) And then we'll help you out :)

Video 64-68

https://www.youtube.com/watch?v=tvC1WCdV1XU&list=PLAE85DE8440AA6B83&ab_channel=thenewboston

Link:

http://www.cplusplus.com/doc/tutorial/files/
Topic archived. No new replies allowed.