“So Christ himself gave the apostles, the prophets, the evangelists, the pastors, and teachers, to equip his people for works of service, so that the body of Christ may be built up until we all reach unity in the faith and in the knowledge of the Son of G

technical writing

Description

  • Programming Assignment 5 Instructions

     

    Ephesians 4:11

    “So Christ himself gave the apostles, the prophets, the evangelists, the pastors, and teachers, to equip his people for works of service, so that the body of Christ may be built up until we all reach unity in the faith and in the knowledge of the Son of God and become mature, attaining to the whole measure of the fullness of Christ.”

     

    It is important to not only worship together but to serve Christ together in unity.  You have been asked to provide a program to your church which allow them to keep track of the members who belong to different groups.  To do this they need to have the ability to display files, add members, and delete members.    The information they have is stored in individual text files.  The application should open the Youth_Members.txt file on the load.  The menu item File contains the second-level menu item Exit, which exits the application.  The menu item Sort contains the two second-level menu items Ascending and Descending.  The menu item Edit contains the two second-level menu items Create File, Add Member, Delete Member. 

     

    1.      Form Setup

    a.       You must save your project using your initials in the name**  This is required and the project will not be accepted otherwise.

    b.      Design your screen to look like the one below.

    c.       Update the backcolor to the color of your choice.

    d.      Use appropriate naming conventions for controls and variables.

    e.       Lock the controls on the form.

    f.       The count text box must be set to read only and the user should not be able to tab to the text box.

    g.      Include shortcuts and access keys for each menu item (such as Ctrl-X for Exit, Ctrl-A for Ascending, etc.)

     

    2.      Code

    a.       Create a comment section at the beginning of the code with the name of the assignment, purpose of the assignment, and your name.  Comments must be throughout each sub of the application.

    b.      Remove any subs that are not utilized by the program

    c.       The text file, Youth_Members.txt is included in your Instructions folder and should be stored in your project’s bin\debug folder.

    d.      ****This step must be included for your assignment to be accepted.  You must include three other rows in the file that include your name, your instructor’s name, and another name with the appropriate data

    e.       The application opens with the Youth_Members.txt file loaded in the listbox.

    3.      File Menu

    a.       When the file menu is pressed the Exit submenu is displayed

    b.      When the user clicks on the Exit menu, the application closes

    4.      Edit Menu

    a.       When the user clicks on the Edit menu, the following menus are presented: Create File, Add Member, Delete Member

    b.      When the user clicks on Create file, the user will be presented with an input box to enter a name of a file.  An if statement is utilized to make sure a name is entered.  If successful the program creates a blank file and displays the blank file in the textbox. The count is updated.

    c.       When the user clicks on the Add Member, the user will be presented with an input box to enter a new member name.  Use an if statement to make sure the name is not null.  If successful, the application appends the name to the current file that is loaded.  The listbox is refreshed with the new file along with the count being updated.

    d.      When the user clicks on the Delete Member, the application will verify with an if statement if a name is selected in the listbox.  If a name is not selected the user is presented with an error message and the program quits.  If a name is selected, the name is removed from the file and the listbox is refreshed with the new file along with the count being updated.

    5.      Sort Menu

    a.       When the user clicks on the Sort menu, the Ascending and Descending menu are displayed. 

    b.      When the user clicks the Ascending menu or Descending menu, the user sorts the array in ascending or descending order based on what the user selects.  The user is not to sort using the listbox property sort.

    6.      Refresh Sub

    a.       This sub is called with every update including the add and delete of a person, and creation of file. 

    b.      The sub will refresh the listbox

    c.       The sub will determine the count of the items in the listbox and refresh the count text box.

Instruction Files

Related Questions in technical writing category