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 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 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started