Use the following image and show whole procedure of writing formulas Using IF statements, fill in the number of electoral votes for each candidate based on the number of popular votes received: If Clinton's popular vote in a state is higher, she receives ALL electoral votes for that state. Similarly for Trump. Write formulas to calculate the Difference as the absolute value of the difference in popular votes for each state Write formulas to calculate the Alternate Difference without an absolute value.  Use IF statements to fill in either Clinton or Trump as the Winner of each state. Use proper formulas to find the summary information in cells B4:C8 Using VLOOKUP statements, fill in the number of electoral votes for a given state in G3 (for example, NEW YORK) and the winner of that state.

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

Use the following image and show whole procedure of writing formulas

  1. Using IF statements, fill in the number of electoral votes for each candidate based on the number of popular votes received: If Clinton's popular vote in a state is higher, she receives ALL electoral votes for that state. Similarly for Trump.

    1. Write formulas to calculate the Difference as the absolute value of the difference in popular votes for each state

      1. Write formulas to calculate the Alternate Difference without an absolute value. 

      2. Use IF statements to fill in either Clinton or Trump as the Winner of each state.

      3. Use proper formulas to find the summary information in cells B4:C8

      4. Using VLOOKUP statements, fill in the number of electoral votes for a given state in G3 (for example, NEW YORK) and the winner of that state.

Election 2016
Clinton
Trump
State:
NEW YORK
Total Popular Votes
Total Electoral Votes
Electoral Votes:
Winner:
Percentage of Popular
Percentage of Electoral
Number of States Won
State
Electoral Votes
Clinton
Trump
Popular
Electoral
Popular
Electoral
Difference
Alternate Difference
Winner
ALABAMA
9
729547
1318255
ALASKA
3
116454
163387
ARIZONA
11
1161167
1252401
ARKANSAS
6
380494
684872
CALIFORNIA
55
8753788
4483810
COLORADO
9
1338870
1202484
CONNECTICUT
7
897572
673215
DELAWARE
3
235603
185127
DISTRICT OF COLUMBIA
3
282830
12723
FLORIDA
29
4504975
4617886
GEORGIA
16
1877963
2089104
HAWAII
266891
128847
IDAHO
4
189765
409055
ILLINOIS
20
3090729
2146015
INDIANA
11
1033126
1557286
IOWA
6
653669
800983
KANSAS
427005
671018
KENTUCKY
8
628854
1202971
LOUISIANA
8
780154
1178638
MAINE
4
357735
335593
MARYLAND
10
1677928
943169
MASSACHUSETTS
11
1995196
1090893
MICHIGAN
16
2268839
2279543
MINNESOTA
10
1367716
1322951
MISSISSIPPI
485131
700714
MISSOURI
10
1071068
1594511
MONTANA
3
177709
279240
NEBRASKA
5
284494
495961
NEVADA
6
539260
512058
NEW HAMPSHIRE
4
348526
345790
NEW JERSEY
14
2148278
1601933
NEW MEXICO
5
385234
319666
NEW YORK
29
4556124
2819534
NORTH CAROLINA
15
2189316
2362631
NORTH DAKOTA
3
93758
216794
OHIO
18
2394164
2841005
OKLAHOMA
7
420375
949136
OREGON
7
1002106
782403
PENNSYLVANIA
20
2926441
2970733
RHODE ISLAND
4
252525
180543
SOUTH CAROLINA
9
855373
1155389
SOUTH DAKOTA
117458
227721
TENNESSEE
11
870695
1522925
TEXAS
38
3877868
4685047
UTAH
310676
515231
VERMONT
3
178573
95369
Transcribed Image Text:Election 2016 Clinton Trump State: NEW YORK Total Popular Votes Total Electoral Votes Electoral Votes: Winner: Percentage of Popular Percentage of Electoral Number of States Won State Electoral Votes Clinton Trump Popular Electoral Popular Electoral Difference Alternate Difference Winner ALABAMA 9 729547 1318255 ALASKA 3 116454 163387 ARIZONA 11 1161167 1252401 ARKANSAS 6 380494 684872 CALIFORNIA 55 8753788 4483810 COLORADO 9 1338870 1202484 CONNECTICUT 7 897572 673215 DELAWARE 3 235603 185127 DISTRICT OF COLUMBIA 3 282830 12723 FLORIDA 29 4504975 4617886 GEORGIA 16 1877963 2089104 HAWAII 266891 128847 IDAHO 4 189765 409055 ILLINOIS 20 3090729 2146015 INDIANA 11 1033126 1557286 IOWA 6 653669 800983 KANSAS 427005 671018 KENTUCKY 8 628854 1202971 LOUISIANA 8 780154 1178638 MAINE 4 357735 335593 MARYLAND 10 1677928 943169 MASSACHUSETTS 11 1995196 1090893 MICHIGAN 16 2268839 2279543 MINNESOTA 10 1367716 1322951 MISSISSIPPI 485131 700714 MISSOURI 10 1071068 1594511 MONTANA 3 177709 279240 NEBRASKA 5 284494 495961 NEVADA 6 539260 512058 NEW HAMPSHIRE 4 348526 345790 NEW JERSEY 14 2148278 1601933 NEW MEXICO 5 385234 319666 NEW YORK 29 4556124 2819534 NORTH CAROLINA 15 2189316 2362631 NORTH DAKOTA 3 93758 216794 OHIO 18 2394164 2841005 OKLAHOMA 7 420375 949136 OREGON 7 1002106 782403 PENNSYLVANIA 20 2926441 2970733 RHODE ISLAND 4 252525 180543 SOUTH CAROLINA 9 855373 1155389 SOUTH DAKOTA 117458 227721 TENNESSEE 11 870695 1522925 TEXAS 38 3877868 4685047 UTAH 310676 515231 VERMONT 3 178573 95369
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman