Calculate the score needed on a final exam to achieve a desired grade Calculate the score needed on a final exam to achieve a desired grade
What will be an ideal response?
```
int main()
{
char grade; // grade desired
double minpercent, // minimum average required for that grade
currentave, // current grade average
finalpercent; // % of the total score the final is worth
cout << endl << "Enter desired grade=> ";
cin << grade;
cout << "Enter minimum average required for a " << grade << "=> ";
cin << minpercent;
cout << "Enter your current average in the course=> ";
cin << currentave;
cout << "Enter how much the final counts as a percentage" << endl
<< "of the course grade=> ";
cin << finalpercent;
double finalfract = finalpercent / 100.0;
double needed = (minpercent - currentave * (1.0 - finalfract))
/ finalfract;
cout << endl << "You need a score of " << needed
<< " on the final to get a " << grade << "." << endl << endl;
return 0;
}
```
You might also like to view...
Do you observe delayed acknowledgements? Why is the outcome expected?
What will be an ideal response?
Microsoft Office applications use a(n) ________ that consists of windows, dialog boxes, toolbars, icons, and menus?
A) operating systems B) work area C) graphical layout D) graphical user Interface
(Duplicate Elimination)Use a one-dimensional array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, validate it and store it in the array only if it is not a duplicate of a number already read. After reading all the values, display only the unique values that the user entered. Provide for the “worst case” in which all
20 numbers are different. Use the smallest possible array to solve this problem. What will be an ideal response?
Which of the following is not part of AAA?
a. Authentication b. Authorization c. Access d. Accounting