Question: Homework Assignment 7 - A For this Assignment you will attach two files, the Analysis of the Problem ( using Word or a text editor
Homework Assignment A
For this Assignment you will attach two files, the Analysis of the Problem using Word or a text editor and your program cpp file Do not cut and paste your code into the message section of the assignment area or your program will not be graded and you will receive a zero for the assignment.
If program does not compile you will automatically lose
PROBLEM: Techi Gadgets Account Program. pts
Write the Techi Gadgets Account Program. The program will read a text file containing the following account data:
AccountData.txt placed in a D array format:
tablebham@gnet.com,Blake,Ham,squidUTeacherjdark@att.net, JjmDark,gymratAMasterhgreen@lakes.net,Hannah,Green,flowerUApprenticetsmith@dna.com,Tom,Smith,tunaUTeacherjarrow@pnet.com,James,Arrow,ahoyUApprentice
Column will represent the user id column the user's first name, column the user's last name, column the user's password, column the user's initial membership vear, column the user's account access, UGeneral User and A Administrator, and column the user's tech status,. An Administrator will have the right to view all the user accounts; the output must be sorted in alphabetic order by last name see sample output when viewed by the Administrator. General Use's will be able to view their membership year and tech status.
When the Administrator view's the user accounts, the data is automatically backed up to an output text file named sortedBackup.txt
Your program MUST use input validation.
COP HOMEWORK ASSIGNMENT A
Homework Assignment Pool
Input Validation: The program must check to see if the input file exists, if the input file does not exit it must print an error message and exit the program correctly.
NAME YOUR FUNCTIONS AS SHOWN BELOW if not named correctly:
void showAll string theAccountsS pts is passed.the array which stores all the account data and prints all the account data. This function returns nothing.
void sortInput string theAccounts pts is passed the array which stores all the account data and sorts the account data by last name. This function returns nothing.
COP HOMEWORK ASSIGNMENT A
Homework Assignment Pool
bool validateUser string theAccounts string username, string password, int &saveRow; pts is passed the array which stores all the account data, the user name, the user entered password and the reference to an integer to save the row where the user account will be found in the function. The function checks to see if the user name entered and the password matches, then returns true or false. It also saves the row where it found the user information in saveRow.
bool readFilestring theAccounts pts is passed the array which will store all the data which will be read from the file. This function will open the input file and read in the data from the input file. You Must Validate that the input file exists. If the file was not read in the function should return false and error message should be output in main that the program will exit due to an error in reading the file.
I need the coding on naming the functions part.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
