Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

State Clinton (D) Trump (R) 2 Arizona 3 Colorado* 4 Florida* 5 lowa* 6 Maine 7 Michigan 8 Minnesota* 9 Nevada* 10 New Hampshire 11

image text in transcribed

State Clinton (D) Trump (R) 2 Arizona 3 Colorado* 4 Florida* 5 lowa* 6 Maine 7 Michigan 8 Minnesota* 9 Nevada* 10 New Hampshire 11 North Carolina" 12 1,161,167 1,338,870 4,504,975 653,669 357,735 2,268,839 1,367,716 539,260 348,526 2,189,316 1,252,401 1,202,484 4,617,886 800,983 335,593 2,279,543 1,322,951 512,058 345,790 2,362,631 Create a macro to show the winner of the presidential election based on voting results from 10 states The data shown contains voting results for 10 states for Clinton and Trump. Each cell corresponds to the total votes of the presidential candidate (row) in a particular state (column) Create a single sub procedure for the purpose. Compare the total votes from all 10 states for each candidate. Then use message box (MsgBox in VBA) to display the following information "Clinton won the election!" or "Trump won the election!" depending on who received more total votes from all 10 states

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions