Generate gaussian random numbers and adapt the sample


Question: A student data, or a student record, which consists of the following set of fields:

o ssid (social security id) is ddd-dd-dddd where d is a digit (0-9).

o name has two fields, fname and lname, each of which is a character string. Both must start with an uppercase letter (A-Z) followed by [1, 12] length of lowercase letter(s), e.g., (fname, lname) = (John Doe).

o major, one of the strings CS, EE, ME, CE, where roughly 50% of students must major in CS.

o scores of

o midterm1, picked from N (60, 12).

o midterm2, picked from N (55, 13). and

o final, picked from N (46, 14).
The data must have the following probabilistic properties:

o values of ssid, fname, lname must be generated at random using specified uniform distributions, i.e., [X, Y] means that some random value between X and Yis chosen for each record by your implementation.

o N (X, Y) means normal distribution, in which X is a mean and Y is a standard deviation, and to generate a random number from normal distribution, visit this site showing the way to generate Gaussian Random Numbers and adapt the sample program found there (obey copyright).

Your program needs to read the number of student records to generate.

All the generated data needs to be shown to a screen.

Output format is free -- wisely compose output layout for easy browsing of the contents.

Answer this question and show each and every step with example. 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Generate gaussian random numbers and adapt the sample
Reference No:- TGS0948215

Expected delivery within 24 Hours