Sammy Programming
Sammy Programming
FOR Candidates = 1 to 10 Do
PRINT (input (“Enter Candidate Name”))
READ candidatename
PRINT (input (“Enter Votes Received”))
READ votesreceived
PRINT (input (“Enter Votes Cast”))
READ votescast
IF Votes Received > 20/100 * votescast THEN
PRINT (candidatename, “Has A Refund Due”)
Refund = Refund + 1
ELSE
PRINT (candidatename “Has No Refund Due”)
Refund = Refund
END For
PRINT (Refund, “Candidate Has Received Refund”)
END
Trace Table
Refund = 0
for Candidates in range(10):
Candidate_Name: str = input("Enter Candidate Name: ")
Votes_Rececived = int(input("Enter Votes Received: "))
Votes_Cast = int(input("Enter Votes Cast: "))