Question: For this lab, you need to develop a C++ program that draws a party hat of a given size. Given a size entered by the

For this lab, you need to develop a C++ program that drawsFor this lab, you need to develop a C++ program that draws a party hat of a given size.

Given a size entered by the user, your program must draw a hat in the shape of a triangle, and made up of using stars '*', slashes '/', dots '.', and spaces.

To draw that hat, you must implement and use of a function, called copy, which outputs multiple copies of a character. This function should receive two arguments, the first is a character C, and the second is an integer N, which determines how many times the character C will be outputted.

Your program should not accept the user entering a number less than 3.

Enter a number: 1 Enter a number: 4 Enter a number: 3 .1 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!