Gallery
Update Variables
Share
Explore
Update Variables

icon picker
The Task

Activity: Update Variables ㊙

One purpose of asking for user input is to update a variable with the latest value.
For example personal devices will have some kind of security pass-code or password to prevent unauthorised access.
However, new devices may have a default security code which should be set to a new secure value by the owner.
bug 🪲
The program runs put does not update all the settings.
Find out why this is and complete the code so that the program meets the full requirements.

Start Here

Work individually to complete the Update variables task on .
Run the program first. Read the comment lines. This program is incomplete. However the full design is shown below.
Add code to store and update a new value in the same variable. You should be able to find and read exisiting code that may help you. Remember the snippets in CodeClips may also be useful.
Display the new variable stored, as shown in the example output.

purpose and design

purpose
This program should show the user the default passcode and default password. The program should allow the user to update both values and then show the new values.
design
the design has been implmented in code up to step 08
you have to write code for steps 9 and 10
01. set default passcode to 123456
02. set default password to ZYXW0987
03. display passcode
04. get secure passcode from keyboard
05. display passcode
06. display password
07. get secure password from keyboard
08. display password
expected output (sample)
The temporary passcode is 123456
Please enter a new pass code: 207116
Your new passcode is 207116

Your temporary password is ZYXW0987
Enter a new secure password d*Mzw6Pq
Your new password is d*Mzw6Pq
Good luck! 🍀
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.