Test a program that generates 1000 random numbers

Assignment Help Computer Engineering
Reference no: EM1328354

1.Write and test a program that can read in the surname and firstname of 10 students together with a percentage test mark, storing this information in a file and then printing it out in a table.

2. Using the procedures RANDOMIZE TIMER (which initialise the random number generator) and RND (which returns a random number between 0 and 1) write and test a program that generates 1000 random numbers between 1 and 6 and stores them in a data file.Write a second program the takes the data produced by the first program and analyses it to produce a table showing the number of times the values 1 to 6 appeared. Display the results in a table.

Note: To generate random integers in a given range the following calculation must be made

INT((upperbound - lowerbound + 1) * RND + lowerbound)

Where INT returns the integer part of a real number

So to generate integers in the range 1 to 6 this becomes

INT((6 * RND) + 1)

Reference no: EM1328354

Questions Cloud

Critical success factors for the it manager : Building a business case for an IT strategy is essential to demonstrate that there is an alignment between the IT that is implemented in the organization and the overall goals and objectives of the organization. Being able to build a business case me..
Produce a coherent srategic plan for a fictitious : Producing a Coherent Srategic Plan for a fictitious IS business - Drawing from several resources (the work you did in previous modules, material covered in the reading in this course, and additional research),
Explain legal and ethical issues for target : Explain Legal and ethical issues for target and issues and security, confidentiality and International issues for the website
Explaining about age discrimination : Carter was hired as a disc jockey, by Warren, when he was aged 54. Two years later, during economic hard times, Carter is laid off by Warren. Explain?
Test a program that generates 1000 random numbers : write and test a program that generates 1000 random numbers between 1 and 6 and stores them in a data file.Write down a second program the takes the data produced by the first program and analyses it to produce a table showing the number of times ..
Discuss the it based risks : Discuss the IT-based risks that your organization faces, or an organization for which you worked previously.
Determine the break even point : Give the following cost data Costs /per unit labor . $ 4 Materials .5 Fixed cost . $ 12000 Determine the break even point in units if the selling price is $ 19.00 Determine the break-even point in sales at a selling price of $ 19.00 What would profit..
Describe current economic crisis growing unemployment : Describe current economic crisis growing unemployment which have impact on price elasticity of health care demand.
Explaining emotional intelligence related to leadership : What is emotional intelligence? How is it related to leadership? How is emotional intelligence related to different leadership traits?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Arrays and control structures important tools in programming

Arrays and control structures important tools in programming.

  Program that has a function named presentvalue

Program that has a function named presentValue

  The shortest path distances between the pair

The shortest path distances between the pair

  Application showing files name-size and last modifiaction

Make a file by utilizing any word-processing program or the text editor. Write down an application which shows the file's name, size, and time of the last modification.

  Calculating the average of 50 numbers

Write down a program which calculates the average of up to 50 numbers input by the user and stored in an array. The program must use a class named Statistics and have an AddNumber method which stores numbers into an array.

  Display the miles per gallon obtained for each tankful

Display the miles per gallon obtained for each tankful

  Execute a recursive directory traversal

Execute a recursive directory traversal.

  What is the des

What are the substitution ciphers? How do they differ from one-time pads (OTP)? Which is better for the IS manager to employ and why.

  Express the advantages of joining two tables

express the advantages of joining two tables.What is the inner join and what is outer join? Please give me some real applications of joins.

  What is the worst-case delay for acknowledging an interrupt

What is the worst-case delay for acknowledging an interrupt

  What security suggestions does laptop follows

explain to Andersen & Sons how they might create a security template and some useful settings. What security suggestions do you have to secure communications from Human Resources server to the Payroll server.

  Explain the large variety of different connectors

Discuss the large variety of different connectors. In what ways has classification scheme affected your thinking on this subject? Do you feel it is useful to limit communications to the given patterns, or are there ways you like the scheme expanded..

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