Question: Develop a program, Assignment2.cpp, to ask five math history questions and evaluate the results of user's inputs by showing the grade at the end. Display

 Develop a program, Assignment2.cpp, to ask five math history questions andevaluate the results of user's inputs by showing the grade at theend. Display the questions and read the user inputs correctly (5 pts):

Develop a program, Assignment2.cpp, to ask five math history questions and evaluate the results of user's inputs by showing the grade at the end. Display the questions and read the user inputs correctly (5 pts): The following are the header and questions. The user can use both 'upper case' and lower case' letters to answer such as 'T' or 't' for true, and 'F' or 'f for false. ***** ********** ********* ************ CSE100 Math Quiz **************** *************** ***** *************** Answer the questions by typing T (true) or F (false). 1) Leonhard Euler published more than 800 papers on math. T/F? 2) A Fast Fourier Transform was discovered by Joseph Fourier. T/F? 3) Euclid's Elements is one of the most printed textbooks. T/F? 4) Isaac Newton published the Principles of Mathematics. T/F? 5) Fermat's Last Theorem has not been proved for 350 years. T/F? . Calculate the correct answers and display the grade based on the number of correct answers (5 pts): Make an integer variable to count the correct answers. After answering five questions, display the grade and percentage of correct answers. The grade A is for 100%, B is for 80%, C is for 60%, and F is for the other cases. The following is the example of case in which 4 out of 5 questions are correct answers. The correct answers are 1) T, 2)F, 3)T, 4)F, 5)F > ******** ** *** *** ** ******* ***** **** Your Grade is B (80%) *** ** *** * ** *** *** Display Form (5 pts): Look at the sample output carefully. Alignment of each word and number should be similar to the sample. -- The percentage must be integer value such as 80%. If it is 80.00% or 80.0%, then you lose 1 pt. -- The number of '*' or space should be changed among 100% (4 letters), 80% (3 letters), and 0% (2 letters) cases in order to align each line end. If not, you lose 1 pt. ********** *** ********** Your Grade is A (100%) ****

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!