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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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