Question: I am only given one hour to code this. [NOTE : NO arrays, pointers, recursion and strings should be used in this code.] 1) How

![NO arrays, pointers, recursion and strings should be used in this code.]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f500c41ec40_54766f500c37a298.jpg)

I am only given one hour to code this. [NOTE : NO arrays, pointers, recursion and strings should be used in this code.] 1) How do I go about doing this is under an hour? Please include some thought processes. 2) What's the best way to savage the maximum amount of marks if I don't complete this in under an hour?
Exercise 1: Sample Count 50 marks Problem Statement A sample count is performed at the start of the counting pracess for each electoral division to get an early indication of the possible electoral outcome. This will be released once for each electoral division. Releasing the sample count helps to prevent speculation and misintormation from unofficial sources while the counting is underway and before the formal election results are announced. In this exercise, assume two teams A and B are competing in an electoral division with N polling stations, 1sN S. After the end of the polling hours, the election officer will select 100 tickets trom each station. Write a program to compute the sample counts for teams A and B. Your program should read in the following inputs (all of type int] from the user: numStation: The total number of polling stations in the electoral division. numVoterDivision: The total number of voters in the electoral division. " . For each polling station, you will read in the folloing data: - numVoteA: The number of votes for team A - numVoteB: The number of votes for team B numVoterStation: The total number of voters in the polling station. Your program should compute the sample count (of type float for each team weighted by the number of voters in each polling station. To compute the sample count of team A, we have: sumpleCoutA where numInvalidVote = 100-numVoteA-numVoteB. For example, in the first sample run, the numbers of invalid votes in the two stations are 100-80-15 = 5 and 100-65-25 = 10, respectively Therefore, the sample count for team A is (-ao- The sample count for team B can be similarly computed by replacing numVoteA with X 100) + (1 651-X10 a)-79.42% numVoteB in the equation. Your program should output the computed sample counts. In addition, it should also print a summary message based an which team wins and how big is the win margin lf there is no difference between the sample counts, output "There is no winner in this election." the difference is less than 5%, say 52% for team A and 48% for team B. output Team A narrowly wins this election." lf the difference is between 5% and 30% (both inclusive, say 42.50% for team A and 57.50% for team B, output "Team B wins by a significant margin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
