Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Can someone help me with this C++ code?

I am working on a little personal project and want to create this for my class. I am a math teacher and just learning C++. Please program this for me and describe each step in detail so I understand how to do it.

(1) Record students' grades in a data file. Prompt users for the file name of data file; id, name and grade of each student as well as the total number of students. Following shows an example of outputs in data file and console.

ID NAME GRADE

01 Mary 100.00

02 Tom 98.35

03 John 88.99

......

(2) If grade is <0 or >100, ask users to re-enter correct grade.

(3) After generating data file, read the content of data file and print to console.

2 Answers

Relevance
  • John H
    Lv 5
    8 years ago
    Favorite Answer

    If you really were a math teacher, you'd know enough about teaching to know that you don't learn anything when someone else does all the work.

    You'd also not be so clueless/lazy that you wouldn't already have some of this completed on your own.

  • DrZoo
    Lv 6
    8 years ago

    Here is a basic one. It does not check to see if the name is "valid". So if you enter something other than a character for the name it will break the program. I don't have time to explain how it works now, but if you email me I can explain it later or over Skype.

    http://pastebin.com/KS2zrmYL

Still have questions? Get your answers by asking now.