Write a program that prompts the user to enter 10 inputs, each containing a number showing the margin of the leading candidate in each of the 10 counties of a given state, as well as a letter which is...


Write a program that prompts the user to enter 10 inputs, each containinga number showing the margin of the leading candidate in each of the 10 counties of a given state, as well asa letter which is the first letter of the last name of the leading candidate (i.e., B for Mr. Brown, T for Mr. Taylor). For example, a input showing a 5000 votes margin for Mr. Brown is like 5000B .
Your program is to aggregate votes across the entire state and project the winner. Based on estimates, a candidate is projected as winner if he can build a total margin of at least 50000 votes more than his opponent. If no candidate has built such margin, just tell the user thatit is too early to call.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here