🚀 Basics Day 4: In-Class Exercises 🚀

Pre-Class In-Class

Base: Emoji Drawing Number of Characters

Use loops to create an app that draws emojis into the grey box.

The user will enter a number of characters to display on the screen.


Enter the number of characters to display:


Output:

Base: Emoji Drawing Square

The user will enter the dimensions of a square to display on the screen.

Use a loop within a loop and the <br /> HTML tag in your output to create the square.


Enter the dimensions of a square:


Output:

Comfortable: Emoji Drawing Triangle

The user will enter the dimensions of a triangle to display on the screen.‌

Use a loop within a loop and the <br /> HTML tag in your output to create the triangle.


Enter the dimensions of a triangle:


Output:

More Comfortable: Outline Square

The user will enter the dimensions of a square to display on the screen. The square is outlined by a different character.


Enter the dimensions of a square:


Output:

More Comfortable: Center Square

The user will enter the dimensions of a square to display on the screen. The square is outlined by a different character and there is another different character in the center. The app doesn't allow dimensions that will not allow the center character.


Enter the dimensions of a square:


Output: