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 7-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 -10.
PROBLEM: Techi Gadgets Account Program. (20 pts)
Write the Techi Gadgets Account Program. The program will read a text file containing the following account data:
AccountData.txt (placed in a 2D array format):
\table[[,[0],[1],[2],[3],[4],[5],[6]],[[0],bham@gnet.com,Blake,Ham,squid62,1987,U,Teacher],[[1],jdark@att.net,5 Jjm,Dark,gymrat32,1985,A,Master],[[2],hgreen@lakes.net,Hannah,Green,flower22,2007,U,Apprentice],[[3],tsmith@dna.com,Tom,Smith,tuna20,2000,U,Teacher],[[4],jarrow@pnet.com,James,Arrow,ahoy10,2005,U,Apprentice]]
Column [0] will represent the user id, column [1] the user's first name, column [2] the user's last name, column [3] the user's password, column [4] the user's initial membership vear, column [5] the user's account access, U-General User and A - Administrator, and column [6] 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.
COP2000 HOMEWORK ASSIGNMENT 7-A
Homework Assignment 7 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 (-10 if not named correctly):
void showAll (string theAccounts[S][7])-(1 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[5][7])-(2 pts) is passed the array which stores all the account data and sorts the account data by last name. This function returns nothing.
COP2000 HOMEWORK ASSIGNMENT 7-A
Homework Assignment 7 Pool
bool validateUser (string theAccounts[5][7], string username, string password, int &saveRow); (2 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 readFile(string theAccounts[5][7])-(2 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.
Homework Assignment 7 - A For this Assignment you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!