Question: IN VIRTUAL BASIC (VBA) The Rnd function in VBA generates random numbers between 0 and 1. We can get random numbers in the range of

IN VIRTUAL BASIC (VBA)

The Rnd function in VBA generates random numbers between 0 and 1. We can get random numbers in the range of a to b with this code: x = a + (b a) * Rnd

IN VIRTUAL BASIC (VBA) The Rnd function in VBA generates random numbers

1. Using a for loop and the Rnd function, write to column A (rows 1 to 900) single type values in the range of 45.1 to 98.7. For this problem, we'1l assume these are student final numerical grades in a huge lecture session class. 2. In a separate loop, read the values in column A, and if they are greater than or equal to 60, copy them into column B. If they are below 60, do not copy them. Eliminate blanks from column B - in other words, if Al is 59.2 and A2 is 73.9, the 73.9 value should be placed in B1, not B2. a. b. Count the number of values removed, and report the number of failing grades in a well-formatted message box. 3. In a separate loop, implement the grading scheme in the A BE 160 syllabus to assign letter grades to each score in column B, placing them in column C. To keep things simple, just do whole letter grades and skip the +. That is, categorize into five groups -A, B, C D, F 4. In a separate loop, use appropriate logic to find the average numerical final grade associated with the students receiving an A grade. Display this in a well formatted message box

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!