Program to randomly select three numbers

Assignment Help Basic Computer Science
Reference no: EM1343909

Q1) You have 3 identical prizes to give away and a pool of 10 finalist. Finalists are assigned numbers of 1 to 10. write a program to randomly select the numbers of 3 finalist to recieve a prize. Make sure not to pick the same number twice. For example picking finalist 3, 15, 29 woul valid but picking 3,3,31 would be invalid because finalist number 3 is listed twice and 31 is not a valid finalist number. the following line of code can be used to generate a random number between 1 and 30
int num = ( int) ( mat.random()*10)+1; by using textpad.

Reference no: EM1343909

Questions Cloud

Corporate acquisitions and losses : Why do firms purchase other corporations? Do firms pay too much for the acquired corporation? Why do so many acquisitions result in shareholder losses?
Business operations in foreign countries : As part of its international expansion program, Acme, a United State multinational enterprise, is currently in the planning stages of establishing a Greenfield production facility overseas.
Prepare companys consolidated balance sheet : Evaluate the three largest assets. Be sure to look at all the assets, not just the current assets and describe whether you believe the company has invested in the appropriate types of assets for this company.
Southwest airlines acquisition strategy for airtran : Describe what the management rationale (motive) behind the acquisition of AirTran, whether you agree with the management or you differ with the management strategy.
Program to randomly select three numbers : Write a program to randomly select the numbers of 3 finalist to recieve a prize. Make sure not to pick the same number twice.
Which inconsistents of model are statistically significant : Trades are seasonal, with higher trades during the spring also summer quarters also lower trades during fall also winter quarters. Which inconsistents of the model are statistically significant.
Calculate total rate of return on the bond : Consider a bond paying a coupon rate of 10 percent per year semiannually when the market interest rate is only 4 percent per half year. The bond has three year until maturity.
Nci-parent bonds from unaffiliated parties : At the beginning of the year, an 80 percent owned subsidiary acquired a parent's bonds from unaffiliated parties at a gain of $20,000.
Reasons for acquisitions in technology-telecommunications : Why do you think there have been so many acquisitions in the technology sector, the telecommunications sector and the regional banking sector?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  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)

  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..

  What your research aims to do

You need to describe what your research aims to do, the objectives that need to be meet to get to the final aim, the context and technical background of the work and also why it is important that this work is carried out.

  Adding two unsigned and signed binary numbers

Add the two binary numbers and interpret the sum assuming that the numbers are (1) unsigned, and (2) signed.

  Explaining power over ethernet and transfer power over fiber

A recent article in industry magazine discussed the ability to transfer Power over Ethernet (PoE) and emerging technology that is able to transfer Power over Fiber (PoF).

  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, Flash RAM, and solid-state drives (SSD)

  Compare and contrast the in terms of cores/microprocessors

Compare and contrast the following, in terms of cores (or microprocessors), random access memory (RAM), disk storage, and networking capabilities.

  Factoring is the problem of computing

Consider the one time pad encryption scheme to encrypt a 1-bit message. Replace the XOR operation with another operation X. For which X does the resulting scheme satisfy perfect secrecy?

  Describing fields and options with user account set-up

Describe the fields and options associated with user account set-up.

  Application development and programming languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of: Programmability, Maintainability, Performance, Development tools

  Cloud computing to the rescue

Cloud Computing to the Rescue,  Describe the hardware, software, and network architectural design of the infrastructure used to build cloud computing infrastructures. Use Microsoft Visio to generate the architectural diagrams.

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

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