Question
Please help troubleshoot this project. The application needs to take a name and hour input from a user and record the results in a list
Please help troubleshoot this project. The application needs to take a name and hour input from a user and record the results in a list array that displays a running total for each selected mission. This application is designed in Visual Studio using .NET framework. Please provide the form design code changes in text, the program code changes in text, and useful code comments for each subclass. Thank you.
Current Form Design
'Form overrides dispose to clean up the component list.
'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor.
End Sub Friend WithEvents txtAmount As TextBox Friend WithEvents lstMissions As ListView Friend WithEvents btnAddDonation As Button Friend WithEvents btnClose As Button Friend WithEvents lstTotals As ListView Friend WithEvents txtName As TextBox Friend WithEvents lblMission1Display As Label Friend WithEvents lblMission2Display As Label Friend WithEvents lblMission3Display As Label Friend WithEvents lblMission4 As Label Friend WithEvents lbl1 As Label Friend WithEvents lbl2 As Label End Class
Instructions
This module we are going to take the programs we created in three and utilize arrays. You are going to create a program to store the hours for each mission. The application is going to create an array to store 4 different areas of missions. The user is going to enter a name, the number of hours, select a mission, and the information will be displayed and the the totals for the number of hours will be displayed. The totals for the number of hours will be a running total.
1. Form Setup a. Design your screen to look like the one below. b. Update the backcolor to the color of your choice. c. Use appropriate naming conventions for controls and variables.
i. Txt for textbox ii. Lbl for label iii. Frm for form iv. Lst for listbox
d. Tab Control must flow in order from number of hours, lstmissions, Hours, Close. e. All buttons have access keys f. Lock the controls on your form. g. The list box to display the donations must be cleared before written to. h. The amounts will be stored in labels with borders.
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. A string array will be created to hold the 5 types of mission entry points.
3. Form Load a. Clear the donation listbox b. Load the mission list array into the listbox c. Display the current Date for the donations d. Display your name
4. Add Donation Button a. The information that was entered should be checked to make sure there are values entered. If the user entry contains null values, the user should be so advised, and the user should be directed to the text box that contains the error. Make sure your error messages are meaningful. b. A static one-dimensional array to hold 4 values is created to hold the number of hours. c. Add the number of hours value into the array in the appropriate place holder based on the selected index d. Display all hour totals in the corresponding labels e. Utilize an input box to get the name from the user. f. Call a function to return back just the last name g. Display the name and the amount donated in the listbox which displays a running total of the amounts entered. h. After the display, clear the selected index of the donation listbox, and amount text box. i. Make sure all spacing is accurate
5. Proper Order Function a. Receives the name b. Uses the substring method to parse out the last name c. Returns the last name
6. Close Button a. The application quits when the button is pressed
End Application Design
Mission Hours Assignment 4 Mission Hours Mission 3 6 Masion 4 Close
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started