Posted by Janeille on Saturday, February 13, 2010 at 1:48pm.
I'm sorry I can't help you with the pseudocode, but in many states convicted felons can vote if they've already served their prison sentence.
ok thank you.
if i develop one can you be able to look it over?
I'm computer illiterate. <g>
But after you develop a code, post it along with your instructions as a new question. Someone may be able to help you then.
lol ok then thnks.
Develop an algorithm or write pseudocode to determine if a citizen is eligible to vote. The
criteria for eligibility are that the citizen must be 18 or older and must not be a convicted
felon. The algorithm must continuously accept as input only the names, year of birth and
felony status of a citizen. The algorithm should continue to accept this information until a
year of 0 (zero) is input.
THIS IS THE CODE.
age = 2010 - yob
status = "felon" THEN
WRITE age <= "18" THEN
Felonystatus = "is a felon"
Felonystatus = "not a felon"
PRINT name, yob, felonystatus
You code doesn't loop, so only 12 name can be input.
DO WHILE .T.
IF yob = 0 THEN
age = YEAR() - yob
IF age >= 18 AND status != "FELON"
PRINT name + " is elligible to vote"
PRINT name + " is not elligible to vote."
I dont understan what you saying.
And that code does'nt compile.
If 'psuedocode' = hard
Computers - Problem-Solving 1. Develop an algorithm or write pseudocode to ...
Information Technology - Develop an algorithm, flow chart and pseudocode that ...
pseudocode programming - need help to write a sumsquare function module and then...
programming - Write pseudocode to accept as input names of an unspecified number...
programming - Write pseudocode (using pascal) to accept as input names of an ...
IT/210 - Assignment: Chapter 5 Programming Problems · Complete ...
Programming - Using your knowledge of pseudocode, conditional statements, and ...
computers:algorithm - Write a pseudocode to find the average of any amount of ...
algorithm&pseudocode - write an algorithm for each of these two problems in ...
6th grademath - this is a word problem:the country of hoffnemath is holding its ...
For Further Reading