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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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