Question
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
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!) FOR THIS PROGRAM THE WORD FILE HAS BETTER EXAMPLE OUTPUT.
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 'a': 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 'q': quit the program
-If the user enters any letter other than 'a' or 'q': print a message to the screen telling the user they made an invalid selection 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 - 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.
you have to use sRand() function i believe
in C++ language.
**PSEUDOCODE IS NOT REQUIRED FOR THIS PROGRAM
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started