Write the multiplication tables practice program

Assignment Help Computer Engineering
Reference no: EM132104970

PROBLEM: Multiplication Tables Practice. (C++ program)

Write the Multiplication Tables Practice Program. You will write a program that will allow a user to choose which Multiplication Tables (1- 12) they would like to practice and then display the following menu:

1. Review My Table

2. Test Me

3. Enter a new multiplication table (1-12)

4. Quit

Enter a Menu Item >

You will be using a 10 row by 3 column, 2D array to store your multiplication tables. You will be displaying the multiplication table of a number chosen by the user multiplied by the numbers 1 to 10.

If option 1 is chosen you will display the times table of the user's choice by loading a 2D array with the users chosen times table. If option 2 is chosen you will Test the user by creating a times table in a 2D array which will allow you to store values being multiplied and blank answers, i.e.

Use only whole numbers for this game.

If the user chooses to take the "test", then allow the user to take the test then grade the test when he/she has completed the test. If the user passes the test, 70% or better, print out their score, print out a message saying that they passed the test. If the user gets 100%, print out a message saying that they got a perfect score. If the user did not pass the test, 70% or less, print out their score, tell the user that they did not pass the exam.

The questions for the "Test" MUST be randomly generated until all the questions for the multiplication table are answered and then the function testMe will return the Boolean value True to indicate that the test has been completed.

If menu item 3 is chosen, then the user should be asked to enter a number from 1 to 12 which will represent which multiplication table they wish to practice. You must also re-create both the test table and the practice table by calling your createTables function.

Your program MUST use input validation.

Input Validation: The program must check to see if the user enters a valid number for both the menu items and when taking the exam. A number greater than zero must be entered when taking the exam. If the user does not enter a valid value, display an error message and continue to ask the user to enter the value again until a valid value is entered.

SAMPLE OUTPUT:

What is 7 x 2 = 14

What is 4 x 2 = 8

I'm sorry you did not pass the exam...Your score was 60.00%

What is 1 x 2 = 2

You did a good job! You have a passing score of 90.00%

Reference no: EM132104970

Questions Cloud

What is the importance of reserves : What is the importance of reserves in consideration of the international/global financial system?
Finds all duplicates in a given array and then outputs them : Create an algorithm (English or pseudo code) that finds all duplicates in a given array and then outputs them.
Compute the direct labor rate variance : Standard variable overhead rate $24.50 per standard labor rate. Actual variable overhead costs are $4,520,000. How do I compute the direct labor rate variance?
Develop a program which allows the user to enter numbers : Develop a program which allows the user to enter numbers into an array. Determine the highest value.
Write the multiplication tables practice program : Write a program that will allow a user to choose which Multiplication Tables (1- 12) they would like to practice and then display.
Implement a program in which a client sends the server : A valid variable name is defined for this assignment to be 6 characters or less, consisting only of lower-case letters from a to 'z', inclusive.
Variable expense with given information : Is there a way to calculate unit variable expense with this given information: Jupiter Game Company manufactures pocket electronic games. Last year Jupiter
How many units of the factor can a firm acquire : How do I compute or approach this given the factor is constant at a value $48, how many units of the factor can a firm acquire?
Describe a subtle covert channel involving the tcp : Describe a subtle covert channel involving the TCP network pro- tocol.

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