Question: create vba code in excel for the following 2. Create a Sub called daisyDecisions that runs when you click a button. In this sub, you

create vba code in excel for the following create vba code in excel for the following 2. Create a Sub

2. Create a Sub called "daisyDecisions" that runs when you click a button. In this sub, you will create a program that determines whether he/she loves you, or loves you not. The program should receive, as an input, the number of petals on the flower (i.e., have a variable for petals) and then use that number to determine the output of the program: if the number of petals is even, then the program should output that he/she loves you not, if odd, then he/she loves you. HINT: Use the Mod operator to determine if a number is odd or even: Dim remainder as Integer remainder - 13 Mod 2 * This code would assign a value of 1 to the remainder variable because 13/2 has a remainder of 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!