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 1:

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 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 righ sos celes-triangl with the lower left filled in. Request the height. e 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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

= 6L 0.5L2 + 0.2L3 Determine the marginal product function

Answered: 1 week ago

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

Which personal relationships influenced you the most?

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago