| | |
Grade Program
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2007
Posts: 1
Reputation:
Solved Threads: 0
hello
sorry to trouble you, i was wondering if you could see this program on this c++ program. i want to have a program were i can enter two intergers to make a cetain grade i.e.
56 +4
>60="c" for example, any please look at my program.
sorry to trouble you, i was wondering if you could see this program on this c++ program. i want to have a program were i can enter two intergers to make a cetain grade i.e.
56 +4
>60="c" for example, any please look at my program.
cpp Syntax (Toggle Plain Text)
#include <iostream> #include <iomanip> using namespace std; int main() { // Declarations: int iNumGrade; // Numeric grade to be obtained from user // Get value from user: cout << "Enter the numeric grade: " << endl; cin >> iNumGrade; // Determine the letter grade: if (iNumGrade >= 90) cout << "A"; else if (iNumGrade >= 80) cout << "B"; else if (iNumGrade >= 70) cout << "C"; else if (iNumGrade >= 60) cout << "D"; else cout << "F"; // Add a blank line: cout << endl; // End application: return 0;
Last edited by WaltP; Jan 20th, 2007 at 2:53 am. Reason: wrong symbol -- and adding code tags, which you can use yourself
You're also missing a closing curly brace
} at the end of your program, but that's probably just a typo. dwk
Seek and ye shall find.
"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.
"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison
"The only real mistake is the one from which we learn nothing."
-- John Powell
Seek and ye shall find.
"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.
"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison
"The only real mistake is the one from which we learn nothing."
-- John Powell
![]() |
Similar Threads
- grade prediction program (C)
- C++ Program Contest (C++)
- c++ Grade program (C++)
Other Threads in the C++ Forum
- Previous Thread: New Programmer (aspiring)
- Next Thread: C++ HTML Encode Function
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






