Techi Gadgets Account Program, Essays (high school) of Global studies

The techi gadgets account program is a computer program that manages user accounts for a company. The program allows users to log in with a username and password, and it provides different access levels based on the user's role. The program reads account data from a file, validates the user's credentials, and displays the appropriate information or functionality based on the user's access level. The program also includes the ability to save a backup file of all accounts for administrators. A detailed problem statement, sample softcopy, variable/array list, and pseudocode for the program, making it a valuable resource for understanding the program's functionality and implementation.

Typology: Essays (high school)

2023/2024

Uploaded on 02/23/2024

maximus-dill
maximus-dill 🇺🇸

2 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Problem Statement:
The computer will create all of the variables, make the array, take the info from the given file
and put it into the array, ask for the username, ask for the password, find the correct account,
output the correct screen if ,depending on the user, they have general user (U) access or
administrator access (A), it will print out a different screen. For the U access it just shows their
info and that is it. For the A access it shows all accounts, and prints it to a backup file. Then it
will restart until the user types “0” for their username or password.
Sample Softcopy:
Enter the following info or 0 to exit
Please enter your username : [email protected]
Please enter your password : gymrat32
[email protected] James Arrow ahoy10 2005 U Apprentice
[email protected] Jim Dark gymrat32 1985 A Master
[email protected] Hannah Green flower22 2007 U Apprentice
[email protected] Blake Ham squid62 1987 U Teacher
[email protected] Tom Smith tuna20 2000 U Teacher
Enter the following info or 0 to exit
Please enter your username : 0
Thank you for using Techi Gadgets Account Program.
Constant list:
DNE
Variable/array list:
theAccounts[5][7]
username
password
saveRow
swapped
i
j
Pseudocode:
pf3

Partial preview of the text

Download Techi Gadgets Account Program and more Essays (high school) Global studies in PDF only on Docsity!

Problem Statement: The computer will create all of the variables, make the array, take the info from the given file and put it into the array, ask for the username, ask for the password, find the correct account, output the correct screen if ,depending on the user, they have general user (U) access or administrator access (A), it will print out a different screen. For the U access it just shows their info and that is it. For the A access it shows all accounts, and prints it to a backup file. Then it will restart until the user types “0” for their username or password. Sample Softcopy: Enter the following info or 0 to exit Please enter your username : [email protected] Please enter your password : gymrat [email protected] James Arrow ahoy10 2005 U Apprentice [email protected] Jim Dark gymrat32 1985 A Master [email protected] Hannah Green flower22 2007 U Apprentice [email protected] Blake Ham squid62 1987 U Teacher [email protected] Tom Smith tuna20 2000 U Teacher Enter the following info or 0 to exit Please enter your username : 0 Thank you for using Techi Gadgets Account Program. Constant list: DNE Variable/array list: ● theAccounts[5][7] ● username ● password ● saveRow ● swapped ● i ● j Pseudocode:

Declare Necessary Variables and 2D array to store data from input file. Call the readFile function and capture the returned value. Test if file was successfully read if so continue with program else exit with error message. Do while…. Ask user to Enter Username or Zero to Exit Read in Username If the Username read in is “zero” Exit program. Ask the user to Enter Their Password or Zero to Exit Read in User Password f. If User Password read in is “zero” Exit program Call the Validate User function and capture the returned value If returned value from the Validate User function is TRUE continue program to check access code if U or A i. If U – code appropriately ii. If A – code appropriately Else if returned value Not Valid from the Validate User function, FALSE, output message username and password invalid Data tracing chart:


| Variable | Value | |------------------------------| | inFile | AccountData.txt | | username | User input | | password | User input | | theAccounts | Populated from AccountData.txt | | swapped | Boolean value | | i, j | Loop counters | | saveRow | Returned value from validateUser function | | inFile | Opened and checked for failure | | outFile | sortedBackup.txt |


Test Softcopy: See sample softcopy, or : Enter the following info or 0 to exit Please enter your username : [email protected] Please enter your password : gymrat [email protected] James Arrow ahoy10 2005 U Apprentice