Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the problem below state the purpose in your own words, specify input that is needed, expected output, and the step by step process that

For the problem below state the purpose in your own words, specify input that is needed, expected output, and the step by step process that will obtain the output from the input (the algorithm).Remember you are not to create actual C++ code, but describe what should be done. For example, a nested loop could be described as the following:

-Create an outer loop that runs from 1 to 5

-Inside this outer loop output the variable name and the equal sign followed by the value in the variable

-Have an inner loop that runs from 1 to the value of the variable for the outer loop.

-The inner loop should output the value in the variable of the variable for the inner loop followed by a space.

-Once the inner loop has completed, out a new line and go to the next iteration of the outer loop

PROBLEM:

Create a process that will create a pattern in which is a pyramid. The user should enter the maximum number of rows to be output, then 1 should be output in the first row, 1 2 3 output in the second row, 1 2 3 4 5 should be output in the 3 row, etc. For example if the user entered 5 the following would be output.

1

123

12345

1234567

123456789

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions

Question

=+What forms of industrial action are common?

Answered: 1 week ago