C++ Multidimensional Arrays and Nested Loops Exercises
3.9 (58 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
5,732 students enrolled
Wishlisted Wishlist

Please confirm that you want to add C++ Multidimensional Arrays and Nested Loops Exercises to your Wishlist.

Add to Wishlist

C++ Multidimensional Arrays and Nested Loops Exercises

Using multidimensional arrays and loops in C++ to to create various patterns.
3.9 (58 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
5,732 students enrolled
Created by Pavol Almasi
Last updated 11/2016
English [Auto-generated]
Current price: $12 Original price: $20 Discount: 40% off
3 days left at this price!
30-Day Money-Back Guarantee
  • 1 hour on-demand video
  • 1 Article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion

Training 5 or more people?

Get your team access to Udemy's top 2,000 courses anytime, anywhere.

Try Udemy for Business
What Will I Learn?
  • Understand how Multi-Dimensional arrays work in C++
  • Practice and understand loops and arrays
  • How the indexes within arrays work and how to manipulate them
  • Uderstand project requirements and choose the right approach to each solution
View Curriculum
  • This course goes over a college exercise on C++ multidimensional arrays. The IDE of choice is Visual Studio, however you can use any C++ IDE and compiler of your choice.
  • Students be familiar with basics of C++, and concepts of loops, variables, and functions.
  • Students should be actively learning C++

Dive into C++ and its multidimensional arrays and loops, and learn how to create various interesting patterns in this classic college exercise.

Multidimension arrays can be difficult to understand for many students. But once the concept is understood, knowing how to use them is a breeze.

This course helps you on your quest of understanding multidimensional arrays in C++. You'll learn how to use them within loops effectively and how to manipulate array indexes to create variety of shapes:

  1. Box Shape
  2. Letter "X" Shape
  3. Plus "+" Sign Shape
  4. Boxed Letter "X" Shape
  5. Boxed Plus "+" Sign Shape
  6. CheckerBoard Shape

All these shapes will be create using an text input file, and printed into a text output file, giving you the additional practice of C++ language: C++ Input and output (C++ I/O), Input Validation and Decision structuring.

 So if you are stuck with C++ arrays, need a little refresher or hint, or just want to compare your solution with other programmer's approach, this short course is perfect for you. 

Who is the target audience?
  • Beginners who are currently learning how to program in C++ and need a guided practice exercises.
  • Students who need to put the concepts and theory they learned into practice.
  • Beginner C++ programmers seeking to cement the knowledge by doing short programming projects that are challenging, yet not out of his/her skill set exercises.
  • Students who struggle with concepts of loops and arrays, particularly multidimensional arrays.
Compare to Other C++ Courses
Curriculum For This Course
10 Lectures
Overview of the project
1 Lecture 08:40

We go over project requirements and use prototype C++ functions to make the basic structure of our program.

Preview 08:40
Before we can draw the patterns...
2 Lectures 19:21

C++ Input and Output (C++ I\O) is important to master, so we go over reading from the text file, splitting the input elements and assigining the read values to variables.

Preview 11:10

We use C++ Switch statement to validate the input from our text file and to call appropriate C++ function from the Case statement. 

Preview 08:11
Drawing the patterns
6 Lectures 43:38

Finally, let's draw! Our first shape to draw is a Box.

Preview 09:23

Drawing the letter X shape. I'll explain how to view this pattern in our code in terms of C++ array indexes.

Drawing the "X" pattern

The easiest shape, but it still requires some planning and array index manipulation to pull this off.

Drawing the Plus Sign pattern

Two shapes in one! The letter "X" inside of a Box. We'll be manipulating our C++ multidimensional array extensively in this short video.

Drawing the Boxed "X" pattern

Another "boxed" shape. Plus Sign symbol inside of a box. Should be interesting...

Drawing the Boxed Plus Sign pattern

The classic shape, perfect for practicing our newly acquired skills with C++ mutidimensional arrays and loops

Drawing the CheckerBoard pattern
Final Source Files
1 Lecture 00:02

All shapes neatly in one file.

Final Source Files
About the Instructor
Pavol Almasi
4.4 Average rating
252 Reviews
13,591 Students
4 Courses
Computer programmer, Coding buddy, teaching enthusiast

I am a professional computer programmer for a national insurance company. I am versed in variety of programming languages, technologies, and frameworks. Currently using mostly SQL and .Net.

I have a Bachelor's Degree from City University of Seattle, majoring in Business Administration.

I first came in contact with programming back in the good 'ol days of Visual Basic 6 and Visual Basic for Applications. Manipulating Access databasea was so much fun! 

I moved onto Web development in early 2000's, using HTML and CSS, later added PHP. It was then when I realized I really enjoyed the coding of the back end much more than the design part...and that joy of coding stayed with me ever since.

I LOVE coding, and I LOVE doing exercises and projects in my free time. I am hoping my course(s) help you to better understand the programming principles and give you a good starting point for your further adventure in computer programming,