Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab Objectives: You will practice in this lab with polymorphism Math questions Bank There are many type of math questions: Addition question: Question # 1:

image text in transcribed
image text in transcribed
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: CORRECT! (1)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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions