Computers

posted by .

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 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.
2. Design and execute a trace table that accepts citizen data and show the expected output.
The table should have at least ten citizens showing person meeting all possible outputs and
variations.
Program Implementation
3. Using the programming language Pascal, write program code to implement the algorithm
in (1) above.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Law

    What's the criteria for being a Canadian citizen?
  2. computers:algorithm

    Write a pseudocode to find the average of any amount of positive numbers.
  3. 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 …
  4. 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 …
  5. 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 …
  6. 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 …
  7. Quantum Physics

    In this problem, we will carry out some steps of the quantum factoring algorithm for N = 15 (a) What is the period k of the periodic superposition set up by the quantum factoring algorithm if it chooses x = 2 ?
  8. physics

    n this problem, we will carry out some steps of the quantum factoring algorithm for N=15. (a) What is the period k of the periodic superposition set up by the quantum factoring algorithm if it chooses x=2?
  9. Information technology

    . Develop an algorithm pseudo-code or flowchart that will accept the names of each sales staff members and their total sales for the month. The algorithm must calculate the commission at 5 % of their total sales amount. It should display …
  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