# Programming

1. Create a pseudocode algorithm that will accept the name of the motorists and the type of offence for the ticket. Determine if the tickets will be awarded a demerit point and check the current point(s) each motorist has on his or her licence. Display the updated points for the motorist. If the motorist has over 19 points, his or her licence will be suspended for 2 years. Other suspensions are based on 10 – 13 points for 6 months suspension and 14 – 19 points for 1 year suspension. Store the list of all suspended motorists. Display the names of the suspended motorists and the penalties.

1. 👍 1
2. 👎 0
3. 👁 59
1. Loop {
points = getPoints(name)
demerit = getDemerit(offence)
points++ if (demerit)
if (not demerit) then display("Your lucky day -- no demerit point this time.")
else
if (points > 19) then {display("Get a bike, loser! You now have",points," points."); penalty = "2-year")
else if (points >= 14) then {display("1-year suspension! You now have ",points," points."); penalty = "1-year"}
else if (points >= 10) then {display("6-month suspension! You now have ",points," points."); penalty = "six months"}
else display("Your point total is now ",points)
if points >= 10 then storeSuspended(name,penalty)
}
for each suspendedDriver display(name,penalty)

1. 👍 0
2. 👎 0
posted by oobleck

## Similar Questions

1. ### information technology

1. Create a pseudocode algorithm that will accept the name of the motorists and the type of offence for the ticket. Determine if the tickets will be awarded a demerit point and check the current point(s) each motorist has on his

asked by tajay johnson on January 30, 2016
2. ### 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

asked by Janeille on February 13, 2010
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

asked by Sophia on October 23, 2012
4. ### 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

asked by Janeille on February 13, 2010
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

asked by John on January 30, 2012
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

asked by John on January 30, 2012
7. ### statistics

According to a survey, 21% of motorists in a large city are uninsured. Suppose that currently 21% of all motorists in this city are uninsured. Two motorists are selected at random from this city. Let x denote the number of

asked by Anonymous on October 10, 2016
8. ### math test review

2. If 4% of motorists on the New Jersey Turnpike leave at a certain exit and 5% of these go to one particular motel for lodging, out of every 10,000 motorists how many motorists may be expected to go to this motel? A.2 B.10 C.20

asked by vincent on August 13, 2014
9. ### math

If 4% of motorists on the Turnpike leave at a certain exit and 5% of these go to one particular motel for lodging,out of every 10,000 motorists how many motorists may be expected to go to this motel?

asked by vincent on September 14, 2014
10. ### 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

asked by Brett on June 1, 2013

More Similar Questions