Help with code for simple Y2K problem
I have to write code for this:
A college has an “academic year” and counts four semesters in order of Fall, Spring, First Summer and Second Summer as an academic year. The Fall, 2002 semester was the first semester of Academic Year 2003.
Your program should accept as input an unknown number of 3 digit numbers representing the current semester. For each input record, output the semester in the form given in the first column above.
Inputs:
031
033
980
Output:
Semester Code
Fall, 2002 031
First Summer, 2003 033
Spring, 1998 982
As you can see, it's really a Y2K problem. My code does ok exept it stays in the loop and I can't get the output to resemble the example above, with the "Semester" then "Code" and the output below it. Can someone help me with that?
Help with code for simple Y2K problem
Thank you R.Stiltskin !! I do appreciate your advice.
How would I only show this line
cout << "Semester" <<" "<< " Code" <<right <<endl;
only once, on top of the output?