Question: Must be written in C a Draw ) butterfly pattern with user-defined size and randomly generated size. Elements of the butterfly pattern should indicate the

Must be written in C
Must be written in C a Draw ) butterfly pattern with user-defined
size and randomly generated size. Elements of the butterfly pattern should indicate

a Draw ) butterfly pattern with user-defined size and randomly generated size. Elements of the butterfly pattern should indicate the mathematical quadrants and the function should also return its execution time. own 1- Write a function that plots a butterfly pattern. that meets the specifications given below and call it main. 2. The function should return its own execution time. 3- Also elements the butterfly should indicate mathomatical quadrants. An example of a 10x10 butterfly. On 2 22 222 1 2222 4.417 2222211 474 33333 Guana a una 4 un 133 44 3 function time t.ms 3333 333 the user 2 options, - Program should give First option should provide the butterfly size to be selected by the user. (should be a byn) The second option is to determine the butterfly size randomly (again n by a). If the slected number is not the program should return error message. 1 2 an user even as If the user selecto y the progean should force the to enter only numbers between 5 and S1 the ure of the butterfly. If the written number does not meet the requirement, error messages like the following figure should be returned. Write t for user defined size example. Write 2" for random size Write the size. It should be senast an even number 60. If the user selects 2" the randomly generated she of the butterfly pattern again should be numbers between S and 51. The program should also print the execution time the screen -use the computer's internal clock to control the choice of the seed. random size on the on

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!