Display summary statistics for the current level

Assignment Help Computer Engineering
Reference no: EM132208405

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: EM132208405

Questions Cloud

Build a ten element integer array : Build a 10 element integer array and populate it with random numbers between 0 and 100 through a for loop.
Write a program in c to generate m random integers : Write a program in C to generate m random integers from an array of size n, such that the probability of selecting even elements is twice that of odd elements.
Write a program to calculate pi with a precision given : Write a program to calculate pi with a precision given by the user. The user should be able to put in 9, for example, and receive pi accurate to nine decimal
Why allocatively efficient price regulation impractical : First illustrate the difference between an unregulated natural monopoly's price and output decision and the outcome when government price regulation is imposed.
Display summary statistics for the current level : Write a program in C++ that generates a series of random equations and prompts the user to answer each equation generated.
How many fish should robinson catch : Robinson Crusoe has decided that he will spend exactly 10 hours per day searching for food. He can spend this time looking for coconuts (C) or fish (F).
Prompt the user for a voltage and a resistance : Write a program in C that prompts the user for a voltage and a resistance.
What effect would actions have on the value of the dollar : Suppose that foreigners decided that financial investments in the US were not a good idea. What would they do? What effect would these actions have.
What type of burn has matt received explain : On the first day after arriving in Miami for spring break vacation, Matt plays out in the sun for six hours. What type of burn has Matt received Explain

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