C++ progject

profilejigmey_grg21
Pr15-1.cpp

// This program demonstrates the GradedActivity class. #include <iostream> #include "GradedActivity.h" #include "Finalexam.h" using namespace std; int main() { double testScore; // To hold a test score // Create a GradedActivity object for the test. GradedActivity test; // Get a numeric test score from the user. cout << "Enter your numeric test score: "; cin >> testScore; // Store the numeric score in the test object. test.setScore(testScore); // Display the letter grade for the test. cout << "The grade for that test is " << test.getLetterGrade() << endl; FinalExam final(20, 5); cout << final.getScore() << endl; cout << final.getLetterGrade() << endl; return 0; }