Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NOTE: PLEASE READ THE PROJECT VERY CAREFULLY. NOTHING ADVANCED, IT'S A PROJECT FOR INTRODUCTORY C++ CLASS. DO WHILE / WHILE, SWITCH STATEMENT, AND RAND() MUST

NOTE: PLEASE READ THE PROJECT VERY CAREFULLY. NOTHING ADVANCED, IT'S A PROJECT FOR INTRODUCTORY C++ CLASS. DO WHILE / WHILE, SWITCH STATEMENT, AND RAND() MUST BE USED.

In C++;

1) Computer Quiz program

The Computer Quiz will give users practice with different arithmetic subjects. They'll choose

from a menu of 5 items, one of which allows them to exit the quiz.

1. Addition

2. Subtraction

3. Multiplication

4. Division

5. Exit Quiz

Once they choose an option other than Exit, they'll be given a series of 5 arithmetic problems of

the subject they chose to solve, one at a time. The problems will use two random integers greater

than 0. For example, if they pick Multiplication, theyll be given a problem like 6 * 5 to solve.

The program will check the answer and let the user know if their answer was correct.

The range of random integers used will depend on the user's level.

At level 1: integers from 1 to 9. 1+ rand() % 9

At level 2: integers from 1 to 20. 1+ rand() % 20

At level 3: integers from 1 to 100. 1+ rand() % 100

A user starts at level 1 in all the subjects.

A user gains a level in a subject when they answer correctly all 5 problems. It's possible that a

user could be at different levels in different subjects, for example, they might be level 3 in

arithmetic and level 2 in multiplication.

After completing the 5 questions in a subject, the program will show them how many questions

they got correct and how many incorrect. It will also show them if they gained a level in that

subject.

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions