Question: how to solve the problem with c++? 3. [20 pts a) 4 pts b) 8 pts c) 8pts] Graphics For this question you may assume

 how to solve the problem with c++? 3. [20 pts a)

how to solve the problem with c++?

3. [20 pts a) 4 pts b) 8 pts c) 8pts] Graphics For this question you may assume that a graphics project has been set up for you. a) Write a function prototype for a function called draw_balloon that takes as an argument a Point P and a double scale. This function does not return anything. b) Write the function draw_balloon. Your function should draw a "balloon", that is, a circle centered at the given Point P and with a radius scale. At the bottom of the circle draw a line pointing straight down with length scale. See picture below. c) Write a snippet for the ccc_win_main. Ask the user how many times he wants to click and store his answer in an int variable n. Then ask the user n times to click somewhere. Each time the user clicks his mouse, use your function from part a) to draw a balloon at the click point. The scale of the balloon will be defined as the y coordinate of the click point. 3. [20 pts a) 4 pts b) 8 pts c) 8pts] Graphics For this question you may assume that a graphics project has been set up for you. a) Write a function prototype for a function called draw_balloon that takes as an argument a Point P and a double scale. This function does not return anything. b) Write the function draw_balloon. Your function should draw a "balloon", that is, a circle centered at the given Point P and with a radius scale. At the bottom of the circle draw a line pointing straight down with length scale. See picture below. c) Write a snippet for the ccc_win_main. Ask the user how many times he wants to click and store his answer in an int variable n. Then ask the user n times to click somewhere. Each time the user clicks his mouse, use your function from part a) to draw a balloon at the click point. The scale of the balloon will be defined as the y coordinate of the click point

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!