Programming Assignment 4 Instructions
Give, and it will be given to you. Good measure, pressed down, shaken together, running over, will be put inot your lap. For with the measure you use it will be measured back to you.”
This week you are going to create a program to store the amounts received for donations. The application is going to create an array to store 5 different areas of donations. The user is going to enter a name, the amount, select a donation area, and the information will be displayed and the the totals for each donation area will be displayed. The totals for each donation area will be a running total.
- Form Setup
- You must save your project using your initials in the name** This is required and the project will not be accepted otherwise.
- Design your screen to look like the one below.
- Update the backcolor to the color of your choice.
- Use appropriate naming conventions for controls and variables.
- Txt for textbox
- Lbl for label
- Frm for form
- Lst for listbox
- Tab Control must flow in order from name, amount donated, lstDonations, Add Donation, Close.
- All buttons have access keys
- Lock the controls on your form.
- The list box to display the donations must be cleared before written to.
- The amounts will be stored in labels with borders.
- 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.
- Remove any subs that are not utilized by the program
- A string array will be created to hold the 5 types of donation entry points.
- Form Load
- Clear the donation listbox
- Load the donation list array into the listbox
- Display the current Date for the donations
- Display your name
- Add Donation Button
- 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.
- A static one-dimensional array to hold 5 values is created to hold the donation amount which will be decimal values.
- Add the donation value into the array in the appropriate place holder based on the selected index
- Display all donation totals in the corresponding labels
- Call a function to put the name in the proper order
- Display the name and the amount donated in the listbox which displays a running total of the amounts entered.
- After the display, clear the value in the name, the selected index of the donation listbox, and amount text box.
- Make sure all costs are shown as currency
- Make sure all spacing is accurate
- Proper Order Function
- Receives the name to put in proper order of first space last
- Uses the substring method to remove the comma and put in order
- Returns the name in proper order
- Ascending Radio Button
- Clears the donations listbox
- Displays the donation category array in ascending order
- Descending Radio Button
- Clears the donations listbox
- Displays the donation category array in descending order
- Close Button
- The application quits when the button is pressed
This assignment is due by 11:59 p.m. (ET) on Monday of Module/Week 4.
Last Updated on