Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1. Customers leave without paying for the fuel.

In order to stop this, the service station puts a


camera and a motion sensor on each of the four pumps.
The service station will have a date- and time-stamped photograph of all vehicles using the
service station.
Draw a flow chart to describe this process.
2. When a buyer purchases a product, they must log on to their account. The store uses two-
factor authentication.
One factor is the buyer’s password, stored in the database.
The second factor is a one-time code generated during the logon process and sent to the
user’s phone. The code is time limited to five minutes. If the user does not use the code
within that time, they must restart the logon process.
There is no limit on how many times a user may enter a username, password or code.
Complete the flowchart to show how the logon process works.

3. When a player wants to play the online game they must log in to their account.
If a player has forgotten their password, they must start a ‘change password’ process.
Clicking on the ‘forgot my password’ button starts the process.
The player must then:
• enter their email address
• enter their date of birth
• click the ‘change password’ button.
The system then checks the email address and date of birth against stored records.
If a match is found a random password is generated and emailed to the player.
If a match is not found an error message is generated and the player must try again.
Here is a partially completed flowchart.
Complete the flowchart to show how the ‘change password’ process works.
4. A student has created a written algorithm for preparing a bath. Working with a partner,
display the following as a flowchart. You may need to change the order or add actions.
◼ Put in the plug.
◼ Fill the bath to the correct level.
◼ Check the temperature is OK.

5. For making a cup of instant coffee. We considering form the steps of boil water to a good
cup of coffee.

6. Draw the complete flowchart for getting to school. It should start with leaving home and
end with arriving at school. For example, the algorithm could start with ‘Walk to bus stop’.

7. Produce a flowchart describing an algorithm for making a cheese sandwich.

8. Prepare the flowchart for the entering password.


 Ask the user to enter their username.
 Repeat until an existing username is entered.
 Next ask the user to enter their password.
 Repeat until the correct password is entered.

9. A student is creating a guessing game. A player has to enter a number no greater than 10. If
it is too high, they are informed that they have made an error. But if it is within the range 1 to
10, they are told whether or not they have guessed the correct number. (Assume that the
correct number is 3.)

Start

Input Number

No
Is number
Print ”Odd
%2==0?
Number”

Yes

Print ”Even
Number” End

You might also like