1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tpy6a [65]
4 years ago
10

Create a Sub called "daisyDecisions" that runs when you click a button. In this sub, you will create a program that determines w

hether 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.

Computers and Technology
1 answer:
jenyasd209 [6]4 years ago
7 0

Answer:

see explaination

Explanation:

Please find the screenprint and the VBA code. As shown in the screenprint, range B1 is used to enter the number of petals. If you want to use a different cell for petals input, then change the code accordingly.

Also, the VBA code is placed in the Sheet1 module. No new modules are inserted.

Screenprint: see attachment for screenshot

VBA Code:

Private Sub CommandButton1_Click()

Call daisyDecisions

End Sub

Private Sub daisyDecisions()

Dim remainder As Integer

Dim noOfPetals As Integer

noOfPetals = Sheet1.Range("B1").Value

remainder = noOfPetals Mod 2

If remainder <> 0 Then

MsgBox "He/She loves you!!!"

Else

MsgBox "He/She loves you not!!!"

End If

End Sub

You might be interested in
Varied amount of input data Statistics are often calculated with varying amounts of input data. Write a program that takes any n
Gnom [1K]

In Python 3.8:

nums = list(map(int, input("Enter your numbers space separated: ").split()))

print(f"The largest number is {max(nums)} and the average of all the numbers entered is {sum(nums)/len(nums)}")

7 0
3 years ago
Plz plz plz subsribe to my channel, CookieFunTime
Nesterboy [21]

ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok

7 0
3 years ago
Identify the tools on the boxes. write the answer
Gnom [1K]

Answer:

im going off of what i know =( 2 screw driver 3 zip ties 5 needle nose plyers 8 can air

Explanation:

5 0
3 years ago
What is the difference between RELIABLE and UNRELIABLE sources of<br> income?
andrezito [222]
Reliable income is something you can “rely” on, or income you will always receive.

Unreliable income is something you can’t always rely on because you might not be able to access it forever.
4 0
3 years ago
Read 2 more answers
Executive dashboards provide support primarily to analytical quantitative types of descisions. True or False
lana [24]

Answer: False

Explanation:

Executive dashboards is the tool that helps in displaying data, trend, metric KPI and other real-time data.This reporting gives information to organization and managers for working on any required improvement and way to expand their opportunities and work.

  • This tool does not focus on analytically qualitative based decision rather includes exception reporting of data and metrics, giving sight or big view of business performance etc rather than collecting data through surveys analysis or any interviewing process.
  • Therefore, the given statement is false.
4 0
3 years ago
Other questions:
  • After Intel faced strong shifts in technologies, such as cloud services, social networking, mobile devices, etc., Intel realized
    11·1 answer
  • A must decode this code. I guess is not a Cesar. The last line is a email adress.
    15·1 answer
  • Sending an email to customer support before looking through the site and reading the frequently asked questions is an example of
    5·1 answer
  • Which game console was the first to use the blue ray side as a distribution medium ???
    15·2 answers
  • From the standpoint of the governing bodies of .com, why is it important that owners of individual domains maintain authoritativ
    5·1 answer
  • Modify your solution to Problem 8.24 so that one (and only one) child installs a Segmentation-fault handler which prints an erro
    10·1 answer
  • How does color affect your mood?
    11·2 answers
  • Which search engine do you prefer? Why
    15·2 answers
  • How to write a C++ program that lets the user guess if a randomly generated integer is even or odd then the computer lets them k
    6·1 answer
  • What's the difference between an exe file and an msi file? check all that apply.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!