11 months ago

BIS 311 DeVry All Week iLab

1 9,000 1 $200.00 2

1 9,000 1 $200.00 2 25,000 2 $2,050.00 3 70,000 3 $10,750.00 4 150,000 4 $34,500.00 For example, the screenshot for test case #1 should look as follows: (c) If you receive an error message or your application did not work correctly, debug the application and try again. Post in the Q & A Forum or contact your professor for assistance if needed. (d) When your application works correctly for all the test cases, select and copy the code for the button-click event and paste it into your Word document below the four test case screenshots. Save the Word document containing the four test case screenshots and your button-click event code asLab3YourFirstLastName.docx (where YourFirstLastName = your first an BIS 311 DeVry Week 4 iLab iLAB OVERVIEW Scenario/Summary In this lab, you will implement a grade calculator application that meets the following business requirements: Grade Calculator Business Requirements The user types the number of grades he or she wishes to enter in a text box. When the user clicks a button, the application enters a loop that accepts the specified number of grades and totals them up. The application then displays the entered grades and their average, formatted to two decimal places. Grade Calculator TOE Chart Task Object Event Get the following inputs from the user: Number of grades to enter Each grade txtNumGrades Input box Perform the following processing: btnCalcAvgGrade Click Add up the total of all grades Divide the total by the number of grades to calculate the average Display the following outputs: Each grade Average grade formatted with two decimal places txtGrades lblAverage Pseudocode for Grade Calculator Application Start Declare numeric constant for Maximum number of grades =100 Declare numeric variables for: Number of grades

Grade Total of grades (initialize to 0) Average grade Declare numeric array GradeArray able to hold the Maximum number of grades Get the Number of grades Repeat for each grade up to Number of grades Get the Grade Store the Grade in the GradeArray array Add the Grade to the Total of grades End Repeat Calculate Average grade =Total of grades/Number of grades Repeat for each GradeArray element up to Number of grades Display the GradeArray element End Repeat Display the Average grade formatted with two decimal places Stop Deliverables Submit a Word document named Lab4YourFirstLastName.docx (where YourFirstLastName = your first and last name; e.g., Lab4JohnSmith.docx) containing the following: Screenshot of form showing the application running, with 10 grades entered and displayed along with the correct average. Copy of button-click event code Category Step 2: Rename Form and Add Controls">Back to Top (a) In the Solution Explorer pane on the right side of the screen, right-click on Form1.vb, select Rename, and change the name to GradeCalculator.vb. Press Enter after entering the new form name. (b) Change the Text property of the form to Lab 4 Your Name (where Your Name = your full name), as you have done in previous labs. (c) Drag the following controls from the ToolBox onto the form, arrange them in logical fashion, and set their properties as indicated in the table below: Control Name Property Text Property Multiline Property ScrollBars Property ReadOnly Label Label1 Enter number of grades: TextBox Button txtNumGrades btnCalcAvgGrade Get Grades and Calculate Average Label Label2 Grades entered: