Generate a random number from normal distribution

Assignment Help Basic Computer Science
Reference no: EM13694921

1. 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 requires reading 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: EM13694921

Questions Cloud

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
Water at an initial temperature what is final temperature : If all the energy obtained from burning 1.26 pounds of ethane (fuel value is 11.36 kcal/g) is used to heat 123.0 kg of water at an initial temperature of 22.0 °C, what is the final temperature
Two solutions used in atomic absorption measurements : Problem- Two solutions used in atomic absorption measurements with an acetylene/air flame contain equal concentrations of calcium. For each of the conditions given below, indicate which of the two solutions will yield the higher absorbance value a..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What specific data about the entities will need to be stored

Create the following diagrams: a context diagram a workflow diagram an activity diagram a sequence diagram.

  Impact of activities called ping sweeps and port scans

Your boss has just heard about some nefarious computer activities called ping sweeps and port scans. He wants to know more about them and what the impact of these activities might be on your company.

  Explain computer software required to make computers work

Develop 5- to 7-slide PowerPoint presentation, providing the overview of how computers are used. Distinguish various kinds of computer software required to make computers work.

  How pms allot preservation treatment to candidate project

1. Does PMS allot preservation treatment to candidate project? 2. If answer to question 1 is Yes or Under Development, which groups of treatments does PMS cover?

  Roman numerals to a positive integer

Write a program that converts a number entered in Roman numerals to a positive integer

  User interface design guidelines used for new system

Design a suitable source document for ads that are telephoned or mailed in. Suggest at least four user interface design guidelines that could be used for the new system.

  Explain file containing sporting goods which are sold online

You have file containing sporting goods which are sold online. Each item record contains item id, item name, item description, item category, item price, and units in stock.

  The sum of the first even integers true or false

The sum of the first 17 even integers is 306. True or False Answer

  Add an overloaded assignment operator

Add an overloaded assignment operator, a copy constructor to the Cube class, and a printCube member function in the attached lab6_ex2_copy_operator_starter.cpp. This starter is incomplete, you have to fill the right stuff in the blank in order to ..

  Determine pz and also estimate any constants

Determine P(z) and also estimate any constants in this expression so that P(z) is given in terms only of  and μ. If possible eliminate any common factors in numerator and denominator of this expression

  Can a quantum computing bit-s multiple states contribute

Can a quantum computing bit's (qbit's) multiple states contribute any more computing power or hold any more extraordinary mathematical control/significance.

  Difference between a permanent address and a care-of address

How big is the MAC address space? The IPv4 address space and what is the difference between a permanent address and a care-of address? Who assigns a care-of address?

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