Post a New Question

pseudocode programming

posted by on .

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.
Print the name of the citizen and a statement saying whether or not the citizen is eligible to
vote.

  • pseudocode programming - ,

    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.

  • pseudocode programming - ,

    ok thank you.

  • pseudocode programming - ,

    if i develop one can you be able to look it over?

  • pseudocode programming - ,

    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.

  • pseudocode programming - ,

    lol ok then thnks.

  • pseudocode programming - ,

    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.

    GET name
    GET yob
    GET status
    age = 2010 - yob
    status = "felon" THEN
    WRITE age <= "18" THEN
    Felonystatus = "is a felon"
    ELSE
    Felonystatus = "not a felon"

    PRINT name, yob, felonystatus

  • pseudocode programming - ,

    You code doesn't loop, so only 12 name can be input.


    DO WHILE .T.
    GET name
    GET yob
    IF yob = 0 THEN
    EXIT DO
    ENDIF
    GET status
    age = YEAR() - yob
    IF age >= 18 AND status != "FELON"
    PRINT name + " is elligible to vote"
    ELSE
    PRINT name + " is not elligible to vote."
    ENDIF
    ENDDO

  • pseudocode programming - ,

    I don't understan what you saying.

  • pseudocode programming - ,

    And that code does'nt compile.

  • Computer - ,

    START
    If 'psuedocode' = hard
    Stop
    ENDIF

  • pseudocode programming - ,

    Start
    Input age;
    if age >= 18
    Print Eligible;
    Else
    Print Not Eligible;
    Stop

Answer This Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Post a New Question