pseudocode programming

posted by .

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

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. pseudocode programming

    need help to write a sumsquare function module and then rewrite that fuction module into an algorithm from this pseudocode. count integer square integer sumsquare integer count = 0 square = 1 do while count <= 2 count = count + …
  2. computers:algorithm

    Write a pseudocode to find the average of any amount of positive numbers.
  3. Computers

    Problem-Solving 1. 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 …
  4. algorithm&pseudocode

    write an algorithm for each of these two problems in pseudocode.(20 points each) Mrs. Smith is on a cruise to the Bahamas. On a rainy day, she decides to go to the casino bar and play blackjack. She pays a $5.00 cover charge to enter …
  5. programming

    Write pseudocode to accept as input names of an unspecified number of equipment rented, the name of the company, the number of days the equipment was rented for and the sales amount. The algorithm must determine the number of times …
  6. programming

    Write pseudocode (using pascal) to accept as input names of an unspecified number of equipment rented, the name of the company, the number of days the equipment was rented for and the sales amount. The algorithm must determine the …
  7. Information Technology

    Develop an algorithm, flow chart and pseudocode that accept as input three unit test scores and a project score for seven students. The algorithm, flow chart and pseudocode should accept seven examination scores. The students's overall …
  8. programming

    You have the final sales figures for the four quarters in 2010 for Bennets Used Auto Sales, and you are to design a program that asks for the sales figures, computes the total sales for the year, and calculates and displays the average …
  9. pascal program

    Write pseudocode and algorithm, flow chart to enter name city country age and print them.
  10. SS

    Jose was born in Costa Rica. When he was 18, he came to the United States to go to college. after college, he decided he wanted to live permanently in the U.S. Of the following, which are the requirements that Jose needs to meet in …

More Similar Questions