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

  Compare and contrast private with public clouds

Write clearly and concisely about cloud & virtual computing topics using proper writing mechanics and technical style conventions.

  Write a function mode that takes a single argument numlist

Write a function mode(numlist) that takes a single argument numlist (a non-empty list of numbers), and returns the sorted list of numbers which appear

  Design and implement a class quadratic for a function

Design and implement a class quadratic to represent a quadratic function, a function of the form f(x) = ax^2 +bx +c .

  Write an application with gui using tkinter

Write an application with GUI, using Tkinter. The application will have three components: a slider (Scale) for the tourist to choose how many days.

  Communication among various constituents in terms of time

communication among various constituents in terms of time and place is key to project management consideration.

  Write a function gcd that return the greatest common divisor

Write a function gcd(a, b) that returns the greatest common divisor of the parameters a and b.

  Diploma of information technology design

ICT50115 Diploma of Information Technology Design and implement programs that connect to a database and design and implement programs that use the language facilities to extract, update, and delete data stored in a database

  What is difference between AMPS and D-AMPS cellular systems

What is primary difference between AMPS and D-AMPS cellular systems? What is primary difference between AMPS cellular systems and newer PCS mobile telephones?

  Create the method contract for getcoursebycourseid method

Create the method contract for the GetCourseByCourseID() method of the CourseList class. Explain your work and the decisions you made to arrive at your proposed solution.

  Create an app inventor app that converts temperatures

Create an App Inventor app that converts temperatures from degrees Fahrenheit to degrees Celsius. Ask users for the temperature in degrees Fahrenheit, and use the following formula for the conversion: C = 5/9(F - 32).

  Implement mergesort for linked lists on your computer

Implement mergesort for linked lists on your computer. Use the same conventions and the same test data used for implementing and testing the linked version.

  Explain attributes of daemon processes using three examples

Explain the attributes of daemon processes using three examples. How do you display and identify them?

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