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

  Illustrate precedence graph

Illustrate precedence graph

  Computing the effective address

An instruction is stored at the location 300 along with its address field at the location 301. The address field has value 400. A processor register R1 consists of the number 200.

  Establish separation of duties via role assignment

Setting security for each employee based on the specific role provides the tightest and most personalized security. The trade-off is increased amount of administration effort when setting up the specific roles to use and the access permitted for ea..

  Carrying out the investigation

You work for the mid-size corporation that is known for its inventions that does the lot of work of copyright and patent. You are investigating an employee suspected of selling and distributing animations generated for your corporation.

  Express the top five categories of problems

Compare the two different systems and present the findings in tabular format.

  Implementing stringed musical instrument class

Generate a Java test class which simulates utilizing your instrument class. a) Construct 10 examples of your instrument, b) tune your instruments, c) Start playing your instrument, d) Call your unique method, and e) Stop playing your instruments.

  Describe the function and purpose of each component

describe how the components are related to each other. For example, does the component you are describing depend on another to operate? Is it connected to the network physically or wirelessly.

  Protecting the operating systems

Explain the relative benefit and de-merits of at least three different measures that are used in order to protect the operating systems.

  Developing the project

In your new position at the XYZ Corporation, you have been asked to lead the risk assessment team.

  Why it professionals to consider project cost management

Why is it important for the IT professionals to consider project cost management? What might be the result if IT professionals were to overlook this aspect of their projects.

  Explain the effect of data rates on a network

discuss the effect of data rates on a network?

  Designing the dfd

Construct a context diagram for the new system. Construct a diagram 0 DFD for the new system.

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