View more random threads:
- Here is a chunk of code prototype of Library Managment...
- What is the difference b/w Inorder Traversal and Inorder...
- what means of cardinalities relationship plz explain me sir...
- But "cin" lines are not producing the results 2011
- how the information hidden within an object can be assessed...
- how stack operation proves costly during traversing a tree
- Threaded Binary Tree? in C++ 2012
- What is polymorphism in c++ 2011
- Picking an IDE in c++ 2011
- what is difference between friend class and friend alternate
Code:#include <iostream> using namespace std ; int main() ; { score and grade // declare variables ; float total_score // total weigted points ; char grade // letter grade ; int A , B , C , D , F ; // read in total score ; cout << endl ; cout << "Enter total score (float, must be <= 100) : " ; cin >> score ; if (score >= 85) ; grade = 'A' ; else if (score >= 75); grade = 'B' ; else if (score >=65) ; grade = 'C' ; else if (score >= 55) ; grade = 'D' ; else grade = 'F' ; // end if score // display the result ; cout << endl ; cout << "Your grade for CMIS 102 is: " << endl ; return (0); // terminate with success }
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)