Generate gaussian random numbers

Assignment Help Basic Computer Science
Reference no: EM13694923

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. 

Reference no: EM13694923

Questions Cloud

Construct a vector containing all of the even numbers : Construct a vector containing all of the even numbers between 6 and 33, inclusive of the end points. Store your answer in the variable evens. (Note: 33 is not an even number)
How much work done on a system to decrease its volume : Problem- How much work must be done on a system to decrease its volume from 12.0 L to 4.0 L by exerting a constant pressure of 5.0 atm
Write a select statement that returns four columns : Write a SELECT statement that returns four columns from the Products table: ProductCode, ProductName, ListPrice, and DiscountPercent. Then, run this statement to make sure it works correctly.
Draw the structure of the major organic product : Problem- Draw the structure of the major organic product you would expect from the reaction of 1-bromopropane with NaI.
Generate gaussian random numbers : Generate Gaussian Random Numbers and adapt the sample program found there (obey copyright).
Picbasic program : Comment the function associated with every line of the following PICBASIC program
Generate a random number from normal distribution : 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.
What is the final volume of the gas : Problem- A sample of gas occupies a volume of 74.8 mL. As it expands, it does 116.3 J of work on its surroundings at a constant pressure of 783 torr. What is the final volume of the gas?
The half-lives of different radioisotopes : Problem- The half-lives of different radioisotopes are given in the table below. How long would it take (in minutes) for the amount of argon-44 to decrease from 88.0 mg to 11.0 mg

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How a non-it senior manager would arrive at the decision

Describe the process of how a non-IT senior manager would arrive at the decision to support one IT diffusion model over another. List the factors that would have to be considered. Determine which model you would choose and explain why.

  Design a suitable source document for ads

Terrier News is a monthly newsletter devoted to various breeds of terriers and topics of interest to terrier owners and breeders. Design a suitable source document for ads that are telephoned or mailed in.

  Who are the stakeholders

Probe into resulting consequence between stakeholders and management as a result of security incidents. Who are the stakeholders?

  Opencv python

OpenCV Python

  Design and implement a graphical user interface (gui)

Design and implement a graphical user interface (GUI) that lets a user draw geometric objects such as rectangles, circles or line segments. The geometric objects are two be "entered" with clicks of the mouse

  Describe the experiments needed to evaluate the design

Describe the experiments needed to evaluate the design alternatives. Give both a full factorial design and simple design. These experiments could be conducted on a simulation model or system prototype.

  Advantages and disadvantages of asymmetric or symmetric key

The Institute has collaborated with XYZ inc. for research on genetics. Information should be kept top secret at any cost. At ABC Institute, researchers are not sure about kind of key.

  User defined company class

Create a user defined Company class the class will include Company Name, Stock Symbol and stock value per share. Include a parameterized constructor and get methods for each of the instance variables. Also include a toString method.

  Convert the decimal fractions to binary

Convert the following decimal fractions to binary with a maximum of six places to the right of the binary point:

  You are working for country club

You are working for country club with thousands of members. You have been tasked with designing a database to keep track of the members and their guests.

  Create method return the number of positive numbers in array

Consider an array of integers as below: int[] a = {5, 2, -4, 3, 0, -5, 7, 11, 6, 13} a. Complete the method named count(int[] a) in the class Count.

  How many rfid tags be produced annually meet that demand

suppose that each of the 300 million people in the united state fully consumes two packages of goods a day bearing RFID tags. how many RFID tags have to be produced annually to meet that demand

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd