Computers and Technology
Computers and Technology, 19.02.2020 16:55, bailee37

A driving school uses this rule to estimate how many lessons a learner will require.
- Every learner requires at least 20 lessons
- learners over the age of 18 require more lessons (two additional lessons for each year over 18)
Create an algorithm expressed in pseudo-code that inputs a learner's age and calculates the number of driving lessons they will need.

So far, this is what I've come up with:
RECEIVE age FROM KEYBOARD
SET lessons TO 20 + (2 * (age – 18))
IF age >= 18 THEN
SEND lessons TO DISPLAY
ELSE
SEND ‘You’re not old enough. Come back later.’ TO DISPLAY
END IF

but I'm not sure if I've done it correctly or used the operators correctly.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:30, eiza666
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
image
Computers and Technology, 22.06.2019 16:30, buky0910p6db44
Corey set up his presentation for delivery to his team. the information he had to convey was critical to their job performance. he knew he would need a lot of time to explain each point
Answers: 3
image
Computers and Technology, 23.06.2019 22:20, tagerryawilson6
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
image
Computers and Technology, 24.06.2019 03:30, ilovewaffles70
Auniform resource locator (url) is a formatted string of text that web browsers, email applications, and other software programs use to identify a particular resource on the internet. true false
Answers: 2
Do you know the correct answer?
A driving school uses this rule to estimate how many lessons a learner will require.
- Every...

Questions in other subjects:

Konu
Social Studies, 01.07.2019 14:00