advertisement

JORDAN UNIVERSITY OF SCIENCE AND TECHNOLOGY CS 116 (Visual Basic 6) Sections 1 and 2 (Dr. Monther Aldwairi) Assignment # 5 (11/11, 1 grade Bonus) Due Date 16/12/2007 Objective: 1. To understand the use arrays 2. Using Form_Load() to initialize an form level array Concept: The mean and standard deviation are used by statisticians to describe a collection of numbers. The mean is the average value of the numbers and the standard deviation measure the spread or dispersal of the numbers around the mean. If is a collection of numbers Exercise 1 Write a computer program to (a) Place the exam scores of 59, 60, 65, 76, 56, 90, 66, 62, 98, 72, 95, 71, 63, 77, 65, 77, 65, 50, 85, 62 (b) calculate the mean and standard deviation (c) Assign letter grades to each exam score according to the following rules Score >= m + 1.5s A m + 0.5s <= Score < m + 1.5s B m - 0.5s <= Score < m + 0.5s C m - 1.5s <= Score < m - 0.5s D Score < m - 1.5s F For example if m=70 and s= 12 Any score > 88 will receive A Any score between 76 and 87 will receive B (d) Print the output as shown in the figure below