Question: solve it with c++ language Name: ID: Section: Lab Objectives: You will practice in this lab with polymorphism Math questions Bank There are many type

Name: ID: Section: Lab Objectives: You will practice in this lab with polymorphism Math questions Bank There are many type of math questions: Addition question: Question #1: 9-10? 19 CORRECT! Complete the sequence question: Question # 2: Complete the sequence: 1, 7, 13, 19, 25 CORRECT! Comparison question: Question # 3: Which of the following is true? 1. 84 9607 3. 84 = 9607 Enter 1, 2 or 3: 1 CORRECT! Q1)Design a c++ program to model these types of questions. Q2) write a c++ program for addition and comparison questions only. Q3) In the main : a. Create an array of 10 questions. b. Ask the user to enter the number of points on each question. c. Ask the user to specify the type of question. d. Then generate the 10 questions. e. Display the questions to the user and ask him to answer the questions f. Calculate the total grade. g. Define a function name compareQuestions which take two questions of any type and compare their grades to each other and print "question 1 has more credit than question 2" if the grades of the first object is greater than the number of grades in the second object, print "question 2 has more credit than question 1", otherwise print "same grade
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
