Question: Problem Solving 1. Develop an algorithm to print the names of the candidates who should receive a refund. A refund is due if the candidate's

 Problem Solving 1. Develop an algorithm to print the names of

the candidates who should receive a refund. A refund is due if

the candidate's votes received equals or exceeds 40% of the votes cast

Problem Solving 1. Develop an algorithm to print the names of the candidates who should receive a refund. A refund is due if the candidate's votes received equals or exceeds 40% of the votes cast in the parish. The algorithm should also determine and print the number of candidates who receive a refund. Test the algorithm with data from ten candidates. The algorithm must accept as input the names of the candidates, votes received, and the votes cast in the constituency. The algorithm should print the name of the candidate and the words "Refund due" or "No Refynod" and the number of candidates who received a refund. Internet can contain viruses. Unless you need to edit it's safer to stay in Protected View. Enable Editing ishes D 1 Number of Votes Votes Cast JO1 95,812 83.511 71,859 70.984 H Votes Received 48.864 39.751 68,663 66 211 153,664 David Jones 136,236 136,236 286,687 286.687 41.790 122.612 122 612 229.350 229,350 31,343 100,91+ Refundability Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due 21.626 31,343 +1.790 105,535 45.45+ 45,454 30.095 80.095 E F G Candidate': ID Candidates' Name Candidates' Rating Patricia Smith 68 PO2 Elizabeth Brown 56 J03 56 PO3 Susan Garcia 5+ JO4 Barbara Miller 67 PO4 William Davis ++ JOS Sarah Rodriguez 69 PO5 Linda Martinez 5+ JOG Thomas Hernandez 54 Charles Gonzalez 59 PO7 John Wilson 86 JOS Christopher Taylor 56 POS Daniel Anderson 62 J09 Matthew Thomas 56 P09 Nancy Moore 4 Vio Lisa Jackson 86 P10 Margaret Martin + 111 Anthony Lee 63 P12 Dorothy Harris 62 113 Steven Clarke 4 PIB Kenneth Lewis 56 Kimberly Robinson 62 92.871 37.272 374272 60.071 60,071 4+.38+ 107 Party JSP PRP JSP PRP JSP PRP JSP PRP JSP JSP PRP JSP PRP JSP PRP JSP PRP JSP PRP JSP PRP JSP Refund Due 52.216 44,38+ 16.925 50.150 21.991 32,054 33.640 37.2++ 24855 19.529 +8.899 25.018 51.475 17.970 122.105 155 +06 24 902 52,216 63.177 63.177 102.133 56,959 56,859 Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due Refund Due 81 706 28.985 35.646 315.353 315,353 +8.981 272511 2770511 +0.16+ D m F U H 1 POS 54 16925 PRP Refund Due Refund Due JO6 5+ 50150 P06 34 31576 59 21991 JO7 PO7 JSP PRP JSP PRP JSP PRP No Refund Refund Due Refund Due 86 32054 33640 56 Refund Due JOS POS 62 3724 Refund Due J09 56 24855 19529 Refund Due Refind Due PO9 44 31,343 92,871 92.871 37,272 37,272 60.071 60.071 44,384 4,38+ 56.859 56.859 81,706 81.706 28.985 28.985 277,511 277.511 40. 16+ 40.164 J10 Linda Martinez Thomas Hernandez James Lopez Charles Gonzalez John Wilson Christopher Taylor Daniel Anderson Matthew Thomas Nancy Moore Lisa Jackson Margaret Martin Anthony Lee Betty Perez Donald White Dorothy Harris Steven Clarke Kenneth Lewis Kimberly Robinson carol jarrett 86 Refund Due +8899 25018 P10 # 63 51+75 27780 34 111 P11 J12 P12 JSP PRP JSP PRP JSP PRP JSP PRP JSP PRP JSP PRP 34 9855 62 17970 Refund Due Refund Due No Refund No Refund Refund Due Refund Due Refund Due Refund Due No Refund 4+ 122105 J13 P13 J1+ 56 155+06 62 24902 P1+ 38 15262 Dodate Name Candidates' Rating Yotes Received Party Refundability

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!