Generate a series of random equations

Assignment Help Computer Engineering
Reference no: EM132208371

Question :

Write a program in C++ that generates a series of random equations and prompts the user to answer each equation generated. The program should keep track of each equation and whether or not the equation was answered correctly.

If an equation is generated that has already been presented to the user, the program should check if the equation was previously answered correctly. If it was answered correctly, the equation should be ignored and a new equation generated.

If the equation was not answered correctly, the user should be prompted to answer it.

The program should implement 4 levels of difficulty based on the range of operands that can be generated at each level.

Level 1: 0 - 10

Level 2: 0 - 25

Level 3: 10 - 25

Level 4: -25 - 25

The program should begin at Level 1. After ten (10) equations in a row have been answered correctly, the program should prompt the user with the following list of options:

1. Continue at the current level.

2. Go to the next level.

3. Display summary statistics for the current level.

4. Quit.

If the user chooses to continue at the current level, the program should continue generating equations until the user correctly answers in a row the next ten (10) equations generated and then follow with the menu options.

If the user chooses to increase the level, the minimum and maximum range should be updated accordingly and the program should continue to generate equations. If the user chooses to see summary statistics, the program should display the following information:

% of addition equations correctly answered,

% of subtraction equations correctly answered,

% of multiplication equations correctly answered,

% of division equations correctly answered

at the current level. The user should then be presented with the menu options again and proceed accordingly.

Note that when calculating the summary statistics an equation generated a second time should only be included in the summary if the equation was answered incorrectly previously and the user prompted to answer again.

If the user chooses to quit the program, the program should display summary statistics for each of the levels the game was played on and exit politely.

Reference no: EM132208371

Questions Cloud

Prompt the user for how many scores they want to enter : Prompt the user for how many scores they want to enter. Then read in the specified number of ints and store them in the array.
Create a simple mail client that sends email to recipient : The goal of this programming assignment is to create a simple mail client that sends email to any recipient.
Describe rate error you would be concerned : Describe rate error you would be concerned about and how you would guard against committing the rater error. The response must be typed.
Identify the range of output exhibiting increasing returns : Identify the range of output exhibiting increasing returns (increasing MP), and the range exhibiting diminishing returns (decreasing MP).
Generate a series of random equations : Write a program in C++ that generates a series of random equations and prompts the user to answer each equation generated.
How did northern war goals in relation to slavery change : How did northern war goals in relation to slavery change as the war progressed? What impact did the war have on slavery, and conversely.
Determine what will be winning bid : Suppose there is an item being sold at a second price, sealed bid auction. Use your intuition. If there are four bidders at this auction.
Print all the ways possible in notepad at the end : Write a program with C++ in which Import notepad: 1 word in each line (number of words is not specified).
How does mitosis differ from meiosis : Utilizing knowledge from your learning and assigned readings, respond to the following questions: How does mitosis differ from meiosis

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd