Presentation is loading. Please wait.

Presentation is loading. Please wait.

ASSIGNMENT OBJECTIVES

Similar presentations


Presentation on theme: "ASSIGNMENT OBJECTIVES"— Presentation transcript:

1 ASSIGNMENT OBJECTIVES
Program 4 Spring 2015 ASSIGNMENT OBJECTIVES LEARN TO USE: 1. Textboxes, labels, butttons, picture boxes, properties, radio buttons, checkbox, and methods, group boxes 2. Arithmetic computations 3. Variables and constants 4. IF THEN ELSE statements and CASE logic 5. Me.Close() 6. txtTextBox.Clear() and lblLabel.Text = “” 7. Procedures, Arguments and Parameters, ByVal and ByRef 8. Use FormatCurrency and FormatNumber. 9. A Class for calculating Gross Pay (OOP) DIFFICULTY LEVEL: MEDIUM TUTORING CENTER IS NOW OPEN START ON THE PROGRAM NOW. Know Chapters 1, 2, 3, 4, 6,12 for this program.

2 Program 4 is exactly like program 3
except: 1. Use a class for calculating gross pay. 2. Use regions for all modules and declaration section. 3. Use documentation for the entire program. [See examples]

3 GETTING HELP: You may ask another student for help, but you must not copy their code. Failure of the course will result for the person giving the code and the person receiving the code. REMEMBER: THE GRADES IN THIS COURSE ARE CURVED. I can get limited help from other students. For additional help, I need to see Dr. Scanlan, or the tutoring center.

4 Late penalty: 50% per class day
Due Date: April 28, 2015 Points: 70 Late penalty: 50% per class day Programs are ONLY accepted during the first 15 minutes of the class period on the date due. General Requirement: Use Program 3 code but use a class for computing Gross Pay. Specific Requirements: Program a class for computing Gross Pay. 1. The GUI MUST look like program 3. 2. Use FormatCurrency() and FormatNumber() functions to display the amounts. Use dollar signs for Gross and Net pay and Totals only. 3. Use Me.Close to close the program. 5. Use any picture of a coffee shop you can find by searching Google Images. 6. If Hours worked are over 40 then the employee receives time and one-half for the hours over 40. 7. Note: Follow Program 3 requirements but add a class for calculating Gross Pay 8. The Clear Button clears all amounts, Radio Buttons, and CheckBoxes. 9. Be sure to use dollar signs for Totals, Gross Pay and Net Pay. Use a background color of yellow for these amounts like in Program 3.

5 This code is JUST an EXAMPLE for illustrating DOCUMENTATION
Use the same code you used in program 3 for validate data BUT USE REGIONS IN PROGRAM SEE BELOW Code for Validate Data Class (Part 1 of 3) This code is JUST an EXAMPLE for illustrating DOCUMENTATION and REGIONS.

6 Use the same code you used in program 3 for validate data
Code for Validate Data Class (Part 2 of 3) This code is JUST an EXAMPLE for illustrating DOCUMENTATION and REGIONS.

7 This code is JUST an EXAMPLE for illustrating DOCUMENTATION
Code for Validate Data Class (Part 3 of 3) This code is JUST an EXAMPLE for illustrating DOCUMENTATION and REGIONS.

8 18. Directions for the clsComputeGrossPay:
1. Add a class that will Calculate Gross Pay. 2. Use two Sets for a. PayRate b. HoursWorked 3. Use one Get for a. GrossPay 4. Use one method for a. CalculateGrossPay 5. The Main Module receives ByRef GrossPay from the Calculate Gross Pay Module. . Get from the Class gets GrossPay within the the CalculateGrossPay Module. . The MainModule sends HoursWorked and PayRate to the CalculateGrossPay Module. The Class does all the calculations. 6. You must use the same names as shown in the UML (Universal Modeling Language) diagram to the right. 7. This program has 10 modules and one Class. UML diagram clsComputeGrossPay PayRate HoursWorked CalculateGrossPay Class Name Property (SET) Method Property (GET) GrossPay PayRate HoursWorked Gross Pay This module uses the Class

9 DOCUMENTATION EXAMPLE
The next three slides are examples of how to add internal documentation to a Program: 1. AT THE BEGINNING OF EACH PROGRAM AND/OR CLASS, PLACE THE FOLLOWING: ‘********************************************************************************************************************************* ‘PROGRAM NAME: The name should give the reader a feel for the purpose of the program. ‘VERSION: Use a number to give the version. ‘PROGRAMMER/S: Gives the names of the programmer or programmer. ‘DATE: Date the program was written ‘PURPOSE: In a few words, tell what the program does. ‘ADD ANYTHING ELSE YOU THINK IS NECESSARY 2. BEFORE EACH MODULE PLACE THE FOLLOWING. HEADLINE: 1. The headline must be in CAPS and it must be limited to 1 to 4 words. It may be longer if absolutely necessary. 2. It must accurately describe the purpose of the module. 3. All modules must have this documentation. This includes all classes too. Details: 1. In this section, you must further explain what the purpose of the module ‘HEADLINE [All CAPS and no more than four words] ‘********************************************************************************************************************************* ‘ -- Detail of what the module does

10 In this program, you must also add Regions around each module
and declaration section: #Region “Use the headline” (Module’s code is placed here.) #End Region

11 DOCUMENTATION EXAMPLE ONLY
YOU MUST FOLLOW THE DOCUMENTATION CHARACTERISTICS OF THE PROGRAMS ON THE THESE SLIDES. DOCUMENTATION EXAMPLE ONLY DOCUMENTATION EXAMPLE ONLY

12 DOCUMENTATION EXAMPLE ONLY

13 DOCUMENTATION EXAMPLE ONLY

14 Program 4 Spring 2015 ATTENTION Additional comments below: Form-A
GRADER FILLS IN THIS PAGE: PRINT LAST NAME:_______________________________ PRINT FIRST NAME:________________________ PROGRAM (Circle) DATE DUE:_____________________ DATE SUBMITTED:___________________ GRADER FILLS IN THESE BLANKS DESCRIPTION POINTS POINTS EARNED Appropriate GUI: OR 5 _____________ Used Variable names and constants correctly OR 5 _____________ Used correct internal documentation including Regions _____________ Failure to organized program according to Hierarchy chart _____________ Failure to use ByVal and ByRef appropriately _____________ Inputted Pay Rate or Hourly Rate values outside of Validate Data module _____________ Failure to use Option Strict On _____________ Failure to write a working clsComputeGrossPay class using the UML description _____________ -- You must correctly use two Sets and one Get and one Method. Program produces correct values: _____________ Late penalty: pts/class day _____________ Zero points if the program fails to compile _____________. TOTAL POINTS OUT OF A POSSIBLE 70: _____________ FAILURE TO HAND IN THE PROGRAM ACCORDING TO THE REQUIRED PROCEDURE: see next slide: -5 points ATTENTION Additional comments below:

15 Program 4 Spring 2015 Form-B CUT OUT THIS FORM ALONG THE DOTTED EDGES AND TAPE IT TO AN ENVELOPE ABOUT THE SIZE OF A CD. STUDENT FILLS IN THESE BLANKS: LAST NAME:_______________________________ FIRST NAME:________________________ PROGRAM (Circle) DATE DUE:_________________ DATE SUBMITTED:__________________ PLACE A CHECK NEXT TO THE FOLLOWING: ____ Saved the Program on a CD-R using the following directory and sub-directory: Drive Letter:\Your Name\Program4 ____ Printed your full name and program number on the CD using a permanent black marker. 3. ____ Submitted the CD in an envelope not to much larger than the CD. ____ Placed the CD in the envelope.. 5. ____ Cut out this form along dotted edges and securely tape it to the envelope. You may use a CD-R or DVD-R


Download ppt "ASSIGNMENT OBJECTIVES"

Similar presentations


Ads by Google