The command must be listed with the other commands in the help command (see examples)

computer science

Description

First Task: add a stats command

 • The command must follow the formatting seen in the examples

 • The command must be listed with the other commands in the help command (see examples)

 • The command should list the current number of users in the system.

 • The command should then ask the user if they would like to list all SystemUsers, and prompt the user to type y or n

 • If the user types a letter other than y or n, the prompt should repeat.

 • If the user types y each username should be printed.


Second Task: Setup for updating load command

 The changes in file format and load are the primary hard-part of this change, therefore we will focus on changes outside of the command first. 


Requirements

 • Your program MUST use a SystemUser pointer, pointing to a dynamically allocated array to solve this problem. You will not get credit if you use a normal, nondynamically allocated array.

 • Your program MUST NOT leak memory – the dynamically allocated array should be deleted when appropriate. NOTE - this is remarkably hard to test you should plan on manually verifying this is correct by reading your code carefully and arguing logically why it is true. Likewise we will be checking for memory leaks by carefully reading your code and considering if all necessary delete commands are called. Your code can pass all tests and still fail this requirement. 


Related Questions in computer science category