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

1. 👍
2. 👎
3. 👁
1. 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.

1. 👍
2. 👎
2. ok thank you.

1. 👍
2. 👎
3. if i develop one can you be able to look it over?

1. 👍
2. 👎
4. 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.

1. 👍
2. 👎
5. lol ok then thnks.

1. 👍
2. 👎
6. 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

1. 👍
2. 👎
7. 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

1. 👍
2. 👎
8. I don't understan what you saying.

1. 👍
2. 👎
9. And that code does'nt compile.

1. 👍
2. 👎
10. Start
Input age;
if age >= 18
Print Eligible;
Else
Print Not Eligible;
Stop

1. 👍
2. 👎
11. Program eligibility_to_voters;

var
name:string;
DOB:integer;
Status:string;
cy:integer;
age:integer

Begin

cy=2019

writeln ('Enter name');

Writeln ('ENTER DOB');

Writeln ('Enter status');
age:=cy-DOB;

while year <> '0' do;

If age >18 status=no;

THEN

Print:"can vote"

ELSE

Print:"cannot vote"

Endif;

end.

1. 👍
2. 👎
12. What am I doing wrong?

1. 👍
2. 👎
13. Using pseudocode or a flowchart, develop the logic for a program that accepts a number as input and displays the value that is 10 more than the number.

1. 👍
2. 👎
14. Using pseudocode, develop the logic for a program that accepts three numbers as input and find the average of the numbers

1. 👍
2. 👎

## Similar Questions

1. ### Pseudocode

Write an algorithm and pseudocode that represents a program that allows a user to enter two numbers. Your program should calculate the sum, difference (both directions), product, and quotient (both directions) of the two numbers.

2. ### Civics

Why was the Voting Rights Act of 1965 necessary? Select the two correct answers. A. Each citizen must be ruled by the same laws. B. Each citizen must be able to participate in government. C. Each citizen must have the protections

3. ### Computer Applications

Develop An Algorithm And Draw the Flowcharts To Find the Sum of Odd Numbers Between 100 And 200

4. ### programming

1. Write a structured algorithm that prompts the user to input two numbers. The algorithm should calculate and print the sum & product of the two numbers [21/2]

1. ### computer programming

Write an algorithm then create a flowchart which will read and print the names and individual scores of 100 students for a particular examination. You need also to determine their average score, and display or print it out.

2. ### Program

Write a pseudocode and algorithm that to else the user to input 10 numbers in program we display the largest number

3. ### American Government

6. What is the only official role of the vice president? A. Lead the national committee on the president's party. B. Organize presidential commissions. C. Preside over the Senate. D. Vote in case of a tie in the Supreme Court. 7.

4. ### computer

Write an algorithm for a program that accepts a set of numbers and finds the smallest among them and computes the sum of the numbers accepted. The program stops when the user enters number 999. Convert the algorithm into flowchart

1. ### C

Pseudocode: Write a pseudocode to describe how to calculate the average of 10 numbers. Thank you.

2. ### programming

write algorithm to calculate average from 25 exams score write pseudocode and flowchart

3. ### 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

4. ### History/Government

Please check my answers. What does the phrase jus sanguinis refer to? A. Citizen by birth on US soil B. Citizenship by serving in the armed forces of the US C. Citizenship by marrying a US citizen D. Citizenship because ones