Question
IN C++ ONLY - First, you must prompt the user to enter two numbers greater than 1 and less than 11. Continue to prompt them
IN C++ ONLY - First, you must prompt the user to enter two numbers greater than 1 and less than 11. Continue to prompt them until they enter two valid numbers.
To meet the specifications of Part II below, do not give any prompt such as "Enter a number". The user will know to enter a number. But you must ensure the values are within the proper range and continue to receive input until the number is valid.
Then output a multiplication table. You'll need to print out the column and row headers so we know what two values are being multiplied. Then each cell will be the result of that product. Be sure to have the numbers right aligned with enough space to have all our columns aligned. Fill the empty space with a period to ensure the columns are properly aligned.
Note that the program uses the first two valid values entered as the multipier and multiplicand (5 & 7). When developing your program, you should continually prompt the user until they enter a valid number. Then continually prompt them again until they enter a second valid number.
Hint: You'll need a couple of loops to accomplish this task. And recall, the iomanip library will help you with aligning the columns.
Recall that the user can enter values within the range 2 to 10 inclusive, so be sure to allocate enough space to handle a 10x10 multiplication table.
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