Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions