I need this code to also display the highest and lowest numbers inputted, but I'm not sure how to go about it.
Code:#include <iostream> using namespace std; double score; int sum = 0; int average = 0; int main() { cout << "We are going to display the grades for 10 test scores\n"; for (int z = 0; z < 10; z++) { cout << "Please enter a test score\n"; cin >> score; sum += score; if (score >= 90) { cout << "Your score is A\n"; } else if (score >= 80) { cout << "Your score is B\n"; } else if (score >= 70) { cout << "Your score is C\n"; } else if (score >= 60) { cout << "Your score is D\n"; } else { cout << "Your score is F\n"; } } average = sum / 10; cout << "\nThe average score was" << average << endl; }