Question
Write the statement loops in ONE program- The program will contatin a loop statement #20 IPO Chart & Algorithm given to students to assist with
Write the statement loops in ONE program- The program will contatin a loop statement
#20 IPO Chart & Algorithm given to students to assist with coding
Example:
X * 9 = Y
(X is the multiplicand, 9 is the multiplier, and Y is the product)
--------------------------------------------------
Input: multiplicand
Processing: multiplier (Counter: 1 to 9), product
Output: Multiplication table ( multiplicand * multiplier = product)
-----------------
Algorithm:
1. Enter the first multiplicand
2. Repeat While (the multiplicand is greater than or equal to 0)
repeat for (multiplier from 1 to 9 in increments of 1)
calculate the product by multiplying the multiplicand by the multiplier
display the multiplicand, multiplier, and product then move the cursor to the next line
end repeat
Display a blank line between tables
Enter next multiplicand
End Repeat
Create a program that displays a multiplication table similar to the one shown in Figure 7-51. If necessary, create a new project named Introductory20 Project, and save it in the Cpp8|Chap07 folder. Enter your C++ instructions into a source file named Introductory20.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Save, run, and test the program 20. PY Enter the multiplicand:5 Multiplication table for the number 5 5 1 5 5 3 15 5 525 5 630 5 7 35 5 8- 40 5 9 45 5 1050 Press any key to continue . .. _ Figure 7-51Step 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