Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago