Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

objective: The objective of this lab is to create a program to output multiple shapes on the screen based on the user's choice. Task List

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

objective: The objective of this lab is to create a program to output multiple shapes on the screen based on the user's choice. Task List (2): Task 1: Create a shapes.cpp file and create the following program. Create a program to print various shapes below on the terminal screen using characters or others, spaces, and new-line characters. First ask the user which shape to draw (cout the different options) and respond with an integer. Once the shape is drawn exit the program. 1. A horizontal line. Request the width of the line. 2. Repeated SOS. Print a repeating sequence of notice the space at the end). Request the number of times to repeat the SOS. 3. A filled-in square. Request the size (same height and width). 4. A filled-in rectangle. Request the width and height, in that order. 5. A framed rectangle. The outside should have characters and the inside should be empty (spaces) Request the width and height, in that order. 6. A framed rectangle with corners. The top and bottom should be made with characters, the right and left should be 'l', the corners should be and the middle should be empty (spaces). 7. A half filled-in rectangle. Request the width and height, in that order. This rectangle should have a solid border of with half the interior locations filled, and the others not. It is OK to not alternate rows. 8. A right-isosceles-triangle with the lower left filled in. Request the height. The width will be the same value. 9. A right isosceles-triangle with the upper left filled in. Request the height. The width will be the same value. 10. 10x10 Multiplication table. Print out a multiplication table where each column is 4 characters wide. Each shape should be created via a separate function, or if you can use functions, you may do so. For example a square is a special case of a rectangle

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

=+2 Why are international employment standards important to IHRM?

Answered: 1 week ago

Question

=+1 Why are local employment laws important to IHRM?

Answered: 1 week ago

Question

=+ Are some laws more important than others? If so, which ones?

Answered: 1 week ago