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

  Examine about direct cash-payment method

Examine about Direct Cash-Payment method

  Explaining network attacker steal secure google cookies

Explain how a network attacker (an active attacker that can intercept or forge network packets, etc.) could steal secure google.com cookies.

  Cores on computer systems

Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency,

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

  The authentication process in a synchronous token system

Describe how the Kerberos authentication process work and outline the main components within the Kerberos environment, their respective functions and the level of security provided by Kerberos. Draw a diagram supporting your explanation Explain..

  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.

  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)

  Rbocs in mfj to retain control of yellow pages

One way to provide additional revenues for the RBOCs in the MFJ was to retain control of the Yellow Pages.

  Show with diagrams how the median filters work

Explain why in some image processing scenarios, filters are used instead of point operations on pixel values Show with diagrams how the Median Filters work

  Stage of ec purchase decision-making process

Banner advertising on Websites helps trigger a realization taht there is a gap between reality and a desired state, which occurs in the ______ stage of the EC purchase decision-making process.

  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

  Question in unix os

What if we need the portion from a text based on some keyword. Now i want the middle portion where i found EO427849242. I tried with sed but it does not give me the desired result.

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