Write down program to arbitarily choose numbers

Assignment Help Programming Languages
Reference no: EM1371988

You have 3 identical prizes to giva away and a pool of 30 finalist. The finalists are assigned numbers of 1 to 30. 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()*30)+1; by using textpad.

Reference no: EM1371988

Questions Cloud

Meaning of race and ethnicity : What does he mean by this? If the meaning of race is not stable and fixed, what implications does this have for things like public policy?
Compute the profit maximizing level of output : Monopoly with two production plants and cost functions of C1 = 50 + 0.1 Q1^2 and C2 = 30 + 0.05 Q2^2. Compute the profit maximizing level of output
Research methods in sociology : Explain and explain the four different types of research methods in sociology when conducting research for the hypothesis or theories.
Find fixed inputs and variable inputs : Marty's Frozen Yogurt is a small shop that sells cups of frozen yogurt in university town. Marty have three frozen-yogurt machines.
Write down program to arbitarily choose numbers : Write down a program to arbitarily select the numbers of 3 finalist to recieve a prize. Ensure not to choose same number twice. For instance picking finalist 3, 15, 29 woul valid but picking 3,3,31 would be invalid.
Concept of primary and secondary social group : Define and explain the concept of primary and secondary social group. Additionally, review the correlation it has on the values, norms, and ethics.
Question about resource allocation : Enpar manufactures a one type of engine part for an automotive manufacturer. It operates 2-plants, Plant A and Plant B, which have the following production functions:
Determine the smallest number of schedules from set : Let problem of generating a set of (linearized) schedules for a set of partially ordered atomic actions. If there are n actions that all have to be performed, determine the smallest number of schedules which might be generated. What about the large..
Research a significant person and organization : Using the internet, research a significant person and a organization in history that assisted people or was an advocate against inequality. This person and this organization will have had a positive impact on society, especially children and comm..

Reviews

Write a Review

Programming Languages Questions & Answers

  Complete a request for system services

Objectives Complete a Request for System Services form, which triggers the preliminary investigation phase. Analyze a user interview and extract pertinent facts, which can be used to assess project feasibility. Complete a Problem Stateme..

  Write lisp function to reverse order of the elements in list

Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

  Write program which permits the user to enter students name

Write the program which permits the user to enter students' names followed by their test scores and outputs following information (suppose that maximum number of students in class is 50)

  Reducing the average memory access time

Suppose that increasing the line size to 128 bytes increases the H to 0.97. Does this reduce the average memory access time?

  Write program which reads in weight in pounds and ounces

Write the program which reads in the weight in pounds and ounces and putputs equivalent weight in kilograms and grams. Utilize at least three functions.

  Program to calculate volume flow rate in cubic feet

Write a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter d in inches and a velocity of v feet per second.

  Write program using ias instruction set

Form the array C such that C(I)=A(I)+B(I) for I=1,2,...,1000. using IAS instruction set, write down program for this problem with assembly.

  Program to compute net pay of employee

A program to compute net pay of employee. It must permit one to read deposit number, account name, amount deposited, and yesr.check.

  Write a trigger for total percentage of all appointments

Write a trigger on Works department to ensure the following requirement; the total percentage of all appointments for an employee must be fewer than 100%.

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Write a class for two instance variables

Write a class named ParkingMeter containing: Two instance variables named timeLeft and maxTime of type int. The value of timeLeft should be initialized to 0.

  Program to create professor rating class

Write down program to create Professor Rating class comprising of professor ID and three ratings. Three ratings are utilized to estimate easiness.

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