Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 1 Day Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 10 Aug 2017 My Price 12.00

multiplication tables

VISUAL STUDIO C++

Write a program that generates multiplication tables for the user. The program will ask the user for a number and generate a multiplication table for that number. Do NOT use functions or arrays on this. (You need nested for loops for this!)

The program should start by displaying a menu similar to this:

MENU

a) Generate Multiplication Table

q) Quit Program

Please make a selection:

-If the user selects Ac€?oaAc€?c: the program should then ask the user to enter a number and generate a multiplication table for the number the user entered. The program should then display that multiplication table. See the example outputs below for how the multiplication table should look (follow the formatting).

Input Validation: Do not allow the user to enter a number less than 1 or greater than 10 as the number to generate a multiplication table for.

-If the user selects Ac€?oqAc€?c: quit the program

-If the user enters any letter other than Ac€?oqAc€?c or Ac€?oaAc€?c: print the message Ac€A?Invalid SelectionAc€?? to the screen and redisplay the menu.

-The user should be able to generate as many multiplication tables as they would like.

HINTS:

1. Use a while loop or do-while loop to allow the user to be able to keep generating multiplication tables until they choose to quit the program

2. First, try to get the multiplication table working without any formatting. This is most easily done using nested for loops (a for loop to go down the rows, which contains a for loop to go across the columns Ac€?o look at the end of Chapter 5 lecture).

3. Add each of the formatting items one at a time and test the program until each item of formatting is working correctly before adding the next formatting item. There are different ways to add different parts of the formatting.   Additional loops may work for certain parts of the formatting. You also may want to use the setw manipulator.

Example Output: (This would be the output if the user entered the number 4), note, you don't need to print the dashes and vertical bar

MULTIPLICATION TABLE: 4's

     1    2    3    4

----|----|----|----|

1|   1|   2|   3|   4|

-|----|----|----|----|

2|   2|   4|   6|   8|

-|----|----|----|----|

3|   3|   6|   9| 12|

-|----|----|----|----|

4|   4|   8| 12| 16|

-|----|----|----|----|

Example Output: (This would be the output if the user entered the number 10), again, note, you don't need to print the dashes and vertical bars but you do need to format and print the header (top line) and row number (first column)

MULTIPLICATION TABLE: 10's

      1    2    3    4    5    6    7    8    9   10

   ----|----|----|----|----|----|----|----|----|----|

1|   1|   2|   3|   4|   5|   6|   7|   8|   9| 10|

-|----|----|----|----|----|----|----|----|----|----|

2|   2|   4|   6|   8| 10| 12| 14| 16| 18| 20|

-|----|----|----|----|----|----|----|----|----|----|

3|   3|   6|   9| 12| 15| 18| 21| 24| 27| 30|

-|----|----|----|----|----|----|----|----|----|----|

4|   4|   8| 12| 16| 20| 24| 28| 32| 36| 40|

-|----|----|----|----|----|----|----|----|----|----|

5|   5| 10| 15| 20| 25| 30| 35| 40| 45| 50|

-|----|----|----|----|----|----|----|----|----|----|

6|   6| 12| 18| 24| 30| 36| 42| 48| 54| 60|

-|----|----|----|----|----|----|----|----|----|----|

7|   7| 14| 21| 28| 35| 42| 49| 56| 63| 70|

-|----|----|----|----|----|----|----|----|----|----|

8|   8| 16| 24| 32| 40| 48| 56| 64| 72| 80|

-|----|----|----|----|----|----|----|----|----|----|

9|   9| 18| 27| 36| 45| 54| 63| 72| 81| 90|

-|----|----|----|----|----|----|----|----|----|----|

10| 10| 20| 30| 40| 50| 60| 70| 80| 90| 100|

-|----|----|----|----|----|----|----|----|----|----|

Answers

(5)
Status NEW Posted 10 Aug 2017 07:08 PM My Price 12.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)