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: 408 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 > Management Posted 02 Feb 2018 My Price 9.00

NESTING LOOPS

NESTING LOOPS In this lab, you add nested loops to a C++ program provided with the data files for this book. The program should print the outline of a rectangle, as shown in Figure 5-2. The rectangle is printed using asterisks, six across and eight down. Note that this program uses cout

 

1. Open the source code file named Rectangle.cpp using Notepad or the text editor of your choice.

2. Write the nested loops to control the number of rows and the number of columns that make up the rectangle.

3. In the loop body, use a nested if statement to decide when to print an asterisk and when to print a space. The output statements have been written, but you must decide when and where to use them.

4. Save this source code file in a directory of your choice and then make that directory your working directory.

5. Compile the source code file Rectangle.cpp.

6. Execute the program. Your rectangle outline should look like the rectangle outline in Figure 5-2.

7. Modify the program to change the number of rows from six to eight and the number of columns from eight to 10. What does the rectangle look like now?

 

Answers

(5)
Status NEW Posted 02 Feb 2018 11:02 PM My Price 9.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------

Not Rated(0)