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

  Explain the number of nodes and workstation types

The office has four separate rooms, each one with its own set up of dental equipment and 1 X-ray room.

  Object oriented design of a class

Object oriented design to develop a parent class known as Book which will receive the ISBN, author, title and price of book and select and print the details of all books with the price of more than $50.00.

  How important is it to keep the site current

How important is it to keep the site current.According to "Putting Business Online Isn't Always Easy" (2005), "the biggest mistake people make is failing to know the commitment a Web site demands."

  Write program to calculate pay of different types of employe

Write program to calculate pay of different types of employe

  Distributed scheduling algorithms

The receiver initiated the distributed scheduling algorithms assumed task pre-emption at sender site. Devise an approach, that is receiver-initiated however non pre-emptive.

  Creating a static method

Write down a static method, getBigWords, which takes a String parameter and returns an array whose elements are words in the parameter that consists of more than 5 letters.

  Complete the design wlan based on ieee 802.11

Explain why 802.11b, is the first widely popular standard and still by far most used by the IT industry today.

  How to generate 2 instances of time and date

generate an application that uses both Time and Date classes How to generate 2 instances of Time and Date

  Establish a formal evaluation criterion

Why would it be wise to build a formal evaluation criterion for a company to use when purchasing new hardware or software.

  Benefits of the two computer programmers

A multinational corporation transfers the foreign employee to the United States on a L-1 visa. The foreign employee is a computer programmer, working alongside an American computer programmer doing the equal  work.

  What is required to maintain the data current

This question in not concerned with the effort to initially build/develop and populate a database, but at the place of the ongoing/long term effort to keep the data and DBMS current (up to date and accurate).

  Program to persons ability to vote

Write down a program which asks for the user's age. On the basis of their response print "You may vote" (18 years old or older) or "You can't vote"

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