Write a program that randomly (using the random number generator) picks gift card winners from a list of customers (every customer has a numeric ID) who completed a survey. After the winning numbers are picked, customers can check if they are one of the gift card winners. In your main function, declare an integer array of size 10 to hold the winning customer IDs (10 winners are picked). Pass the array or other variables as needed to the functions you write. For each step below, decide what arguments need to be passed to the function. Then add a function prototype before the main function, a function call in the main function and the function definition after the main function.

Answers

Answer 1

Answer:

Explanation:

Since no customer ID information was provided, after a quick online search I found a similar problem which indicates that the ID's are three digit numbers between 100 and 999. Therefore, the Java code I created randomly selects 10 three digit numbers IDs and places them in an array of winners which is later printed to the screen. I have created an interface, main method call, and method definition as requested. The picture attached below shows the output.

import java.util.Random;

interface generateWinner {

   public int[] winners();

}

class Brainly implements generateWinner{

   public static void main(String[] args) {

       Brainly brainly = new Brainly();

       int[] winners = brainly.winners();

       System.out.print("Winners: ");

       for (int x:winners) {

           System.out.print(x + ", ");

       }

   }

   public int[] winners() {

       Random ran = new Random();

       int[] arr = new int[10];

       for (int x = 0; x < arr.length; x++) {

           arr[x] = ran.nextInt(899) + 100;

       }

       return arr;

   }

}

Write A Program That Randomly (using The Random Number Generator) Picks Gift Card Winners From A List

Related Questions

How are status reports useful

Answers

Answer:

Project managers use status reports to keep stakeholders informed of progress and monitor costs, risks, time and work. Project status reports allow project managers and stakeholders to visualize project data through charts and graphs.

Use the drop-down menus to explain how to set up a lookup field to use a combo box control with a list of options. 1. Open a table in Design view, and right-click a field. 2. Select Change To in the drop-down menu, then select . 3. On the Data tab of the , make a number of choices. 4. For the Row Source Type, choose . 5. For Limit to List, select . 6. For Row Source, click the ellipsis and enter the values in the dialog box that opens. 7. Close the Property Sheet, and save the form.

Answers

Answer:

Combo Box, Property Sheet, Value List, Yes

Explanation:

Use the drop-down menus to explain how to set up a lookup field to use a combo box control with a list of options are the combo box, vause lkist.

What is the distinction between a mixture container and a drop-down listing?

A drop-down listing is a listing wherein the chosen object is constantly seen, and the others are seen on call for via way of means of clicking a drop-down button. A combo container is a mixture of a listing container or a drop-down listing and an editable textual content container, as a consequence permitting customers to go into a fee that isn't always withinside the listing.

A drop-down listing in Access 2013 gives a listing of values to useful resources in statistics access in tables or forms. Although you could permit customers to manually input values that do not exist withinside the drop-down listing, you will want to disable this selection to limition alternatives to tiered values.

Read more about the combo box control:

https://brainly.com/question/17238933

#SPJ2

LAB: Contact list A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes as input an integer N that represents the number of word pairs in the list to follow. Word pairs consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Assume that the list will always contain less than 20 word pairs. Ex: If the input is: 3 Joe 123-5432 Linda 983-4123 Frank 867-5309 Frank the output is: 867-5309

Answers

Answer:

The program in Python is as follows:

n = int(input(""))

numList = []

for i in range(n):

   word_pair = input("")

   numList.append(word_pair)

name = input("")

for i in range(n):

   if name.lower() in numList[i].lower():

       phone = numList[i].split(" ")

       print(phone[1])

   

Explanation:

This gets the number of the list, n

n = int(input(""))

This initializes list

numList = []

This iterates through n

for i in range(n):

This gets each word pair

   word_pair = input("")

This appends each word pair to the list

   numList.append(word_pair)

This gets a name to search from the user

name = input("")

This iterates through n

for i in range(n):

If the name exists in the list

   if name.lower() in numList[i].lower():

This gets the phone number associated to that name

       phone = numList[i].split(" ")

This prints the phone number

       print(phone[1])

recent trends on operating system

Answers

Answer:

Windows 10 if this is what I think u mean

answer any one: write a computer program:​

Answers

Answer:

hope this helps you look it once.

what connect webpages?​

Answers

Anchor tags or hyperlinks are used to connect webpages.

Answer:

"Hypertext links are those words that take you from one web page to another when you click them with your mouse. Although the same HTML tag you study in this hour is also used to make graphical images into clickable links, graphical links aren't explicitly discussed here" I got this from https://www.informit.com/articles/article.aspx?p=440289 sorry I couldnt take the time myself here to help :(

Explanation:

Which tab should you click if you want to access the Show All Comments option in a worksheet?

Home
Page Layout
Review
View

Answers

Answer: Review

Because you want to review the comments

Answer:

C.) Reivew

Explanation:

Doing it on EDG now!

Best luck to yall :3

Have a good day and byee

Apart from the OOPs concepts learned in this lesson, identify additional concepts and write an essay on their functions. Explain how they are used in a program.
PLSSSS HELLP MEEE ASAP!!!!​

Answers

Explanation:

Object Oriented Programming (OOPS or OOPS for Object Oriented Programming System) is the most widely used programming paradigm today. While most of the popular programming languages are multi-paradigm, the support to object-oriented programming is fundamental for large projects. Of course OOP has its share of critics. Nowadays functional programming seems the new trendy approach. Still, criticism is due mostly to misuse of OOP.

Code.org lesson 8 level 5

Answers

Answer:

and?

Explanation:

Can someone plz answer these questions

Answers

Answer:

11001100 = 204

11111111 = 255

Explanation:

For 11001100:

1*2⁷ + 1*2⁶ + 0*2⁵ + 0*2⁴ + 1*2³ + 1*2² + 0*2¹ + 0*2⁰ = 204

Just replace 1's by 0's in the following calculation to do it for every 8 bit number:

1*2⁷ + 1*2⁶ + 1*2⁵ + 1*2⁴ + 1*2³ + 1*2² + 1*2¹ + 1*2⁰ = 255

If you don't want to do the calculation yourself, you can set the windows calculator in programmer mode, then select binary and key in the number.

What symbol next to the records indicates that a table includes a subdatasheet? an asterisk a plus sign a question mark an exclamation point

Answers

Answer:

A plus sign

Explanation:

EDGE 2021

Answer: or in other words B

Explanation: on edg hop this helps

One way to add a table to a presentation is to click on Clip Art under the Insert tab. click on WordArt under the Insert tab. right-click on an existing page with content and choose Add Table. add a new slide and left-click on the Table symbol in an empty area.

Answers

Huh? What is this? …..

draw a flowchart and write the algorithm to find even number between 1 to 50​

Answers

Answer:We Explain the flowchart in following images given below..

Please hit a like and thanks

answer any one: write a computer program:​

Answers

Answer:

hope this helps you look it once

Sorting Records in a Form
Use the drop-down menus to complete the steps for sorting records in a form.
1. Open the form in the standard form view.
2. Put the cursor in the
to use for sorting.
3. Open the
4. In the Sort & Filter group, click
v tab.

Answers

Answer:

1. Open the form in the standard form view.

2. Put the cursor in the field to use for sorting.

3. Open the Home tab

4. In the Sort & Filter group, click ascending or descending

Explanation:

Took the test :)

The complete forum to complete the steps for sorting records in a form is discussed below:

What do you mean by speed records?

You can specify the order of the records that are returned for each navigation query by sorting. It can be adjusted either globally or for each query. You can specify the number of characteristics and the ascending or descending order of pairs of values when submitting a simple navigation request.

Launch the default form view by opening the form.

2. Position the cursor within the field you want to sort.

3. Click on the Home tab.

4. Select either ascending or descending in the Sort & Filter group.

Learn more about sorting records here:

https://brainly.com/question/13130958

#SPJ1

A decimal number is called a float.
True
False

Answers

Answer: True

Explanation:

The term floating point is derived from the fact that there is no fixed number of digits before and after the decimal point; that is, the decimal point can float. There are also representations in which the number of digits before and after the decimal point is set, called fixed-pointrepresentations.

Answer:

It's true

Explanation:

What is the role of science and technology in achieving human’s ultimate goal or the good life?

Answers

Answer:

The role that science and technology has played in improving the life conditions across the globe is vivid, but the benefit has to been harvested maximum by all countries. Hope This Helps!

Explanation:

The essence of how science and technology contributes to society is the creation of new knowledge, and then utilization of that knowledge to boost the prosperity of human lives, and to solve the various issues facing society.

Viruses and Malware Complete the case project on page 82 of the textbook by researching two types of viruses, two types of malware, and two types of denial of service attacks using the internet or any other type of resource available to you. Next, write at least a two page paper in current APA format that lists each of the researched items, how they are used to attack a system or network, and what types of defenses can be put in place to protect against those attacks. Find an article which describes the compromise of a company organization through a virus or malware. Write a one page paper in APA format summarizing the security incident and how it was resolved or what actions could have been taken to prevent it.

Answers

Hi, I provided you a general guide on how to go about your writing your research paper.

Explanation:

Note, the current APA (American Psychological Association) format is the APA 7th Edition. This format details how a researcher should state the findings, sources, conclusion, etc.

Hence, you can begin writing the assigned paper only after gathering the needed data.

I have some true or false questions I need help with. 9th grade.**

Handware can be tracked back to ancient times. Over six centuries ago.
True or false.

Hardware is only found in computers.
True or false. I know

Instruments and weaving looms where some of the first pieces of hardware.
True or false.

Computers and hardware is the same thing
True or false.

Answers

Answer:

Hardware can be traced back to ancient times. False

Hardware is only found in computers. False

Instruments and weaving looms were some of the first pieces of hardware. False

Computers and hardware is the same thing. This question is a bit broad but there's many different types of hardware. From keyboards to printers to speakers.

I tried my best not exactly sure though.

-1
Draw a flowchart to input two
numbers in variables M and N and
print the multiplication table from 1*1
to M*N​

Answers

Answer:A flowchart is a diagram that depicts the steps involved in solving a problem. The following flowchart shows how to output the multiplication table ( n * 1 to m * 1) of a number, n and m:

how do engineers communicate their design ideas?

Answers

Answer:

Explanation:

Mechanical engineers give Presentations when they work on projects and Proposals. Often, professional Presentations require you to verbally and graphically present preliminary designs to colleagues.

Hope this helped!!!

You work at the headquarters of an international restaurant chain. The launch of your mobile ordering app has been well received in your home country, increasing sales and customer satisfaction while decreasing order wait time and operating expenses. Your team is now ready to expand the mobile app into a handful of international markets. However, you first need to strategize what kinds of adjustments and adaptations will be needed to help ensure the app's success in these various cultural environments. Marketing director: Frankly, I'm a little surprised at the success we've seen with this app here at home. But it makes sense to keep buiding on that momentum You Yes, I think today's customers are indigenously comfortable with internet based technologies, an________ is a natural extension of that phenomenon. The challenge is to figure out how easily the app can be adapted to markets
a. e-business
b. global purchasing
c. language diversity
d. model networking

Answers

Answer: E-business

Explanation:

Based on the information given, a natural extension of that phenomenon is the E-business. E-business which means electronic business is when business is done through the internet.

It should be noted that e-business processes consist of the purchase and sale of goods and services, the processing of payments, servicing customers, sharing information regarding products, managing production control, etc.

A line beginning with a # will be transmitted to the programmer’s social media feed.

A.
True

B.
False

Answers

Answer:

True?

Explanation:

Answer:

The answer is false.

Explanation:

A “#” doesn’t do that in Python.

A collection of computers and other hardware devices that are connected together to share hardware, software, and data, as well as to communicate electronically with one another? Explain.

Answers

Here you go.....................

Careers emerge solely to make profit for the industry.


False

True

Answers

Explanation:

Careers emerge solely to make profit for the industry: False

Brainliest and follow and thanks

morning dude

Create a PetStore class, a Dog class, and Cat class. Once instantiated, a PetStore should be able to take in and give out pets. The store's method for receiving pets should be called receive. This method should take a single pet object (either a Dog or Cat instance) and should add it to the store's inventory of pets. The store's method for giving out a pet should be called sell and can take no arguments. The method returns a pet when called.

Answers

Answer:

thanks to the great place

Explanation:

hottest year in hindi history and happiness and the world is not a big deal to me because I think it's a good thing for a woman who has been a good friend of yours and happiness and be happy with examples

What is the main fuction of command interpreter​

Answers

The command interpreter or the command-line interface is one of the ways a user can interface with the operating system. The command interpreter's main task is to understands and executes commands which it turns into system calls. The kernel is the central module of an OS.

_________________

Brainliest would be greatly appreciated!

I found this!

_________________

#SpreadTheLove

#SaveTheTrees

- Mitsu JK

Which of the following is not the disadvantage of closed
network model?
Select one:
O Flexibility
O Public network connection
O Support
O External access​

Answers

Answer:

public network connection

Answer:

public network connection

HOW TO DOWNLOAD BEAMNG DRIVE

Answers

Explanation:

Answer:

Explanation:

on what device

Write a C program that right shifts an integer variable 4 bits. The program should print the integer in bits before and after the shift operation. Does your system place 0s or 1s in the vacated bits?

Answers

Solution :

#include<[tex]$\text{stdio.h}$[/tex]>

#include<conio.h>

void dec_bin(int number) {

[tex]$\text{int x, y}$[/tex];

x = y = 0;

for(y = 15; y >= 0; y--) {

x = number / (1 << y);

number = number - x * (1 << y);

printf("%d", x);

}

printf("\n");

}

int main()

{

int k;

printf("Enter No u wanted to right shift by 4 : ");

scanf("%d",&k);

dec_bin(k);

k = k>>4; // right shift here.

dec_bin(k);

getch();

return 0;

}

Other Questions
What is the image point of (5,-4)(5,4) after a translation left 4 units and down 3 units? I HELP NEED ASAP PLZ HELP ME question 5. find the total number of unit cubes that fill the entire prism An area is currently a forest. What evidence would best indicate that this area was covered by water millions of years ago? *1 pointAn increase in rainfall in the forest over timeFossils of fish discovered in rock below the forestThe presence of plants in the forest that need water to liveInsects in the forest that lay their eggs in the waterHELP ME PLZZZZ REALLY BE THE BEST 17. Which of the following best represents an example of irony?A. Stella sells her hair for money then receives a gift of hair combs.B. Paul wants a baseball glove and works hard to buy it.C. Harry cannot find the book that he lost so buys another one.D. Jim is afraid to lose his watch so he does not wear it. Ready mathematics lesson 15 quiz BRAINLIEST if correct write the decimal 0.015 as a fraction (line over the 15, the 15 is repeating) what is the equation of the line that passes through the points (4,3) and (6, 2)? what is 1 half times 2 Define the following terms using your own words. (2-3 sentences only)1. Frequency2 Class size3. Ogive4. Variance5. Range A company surveyed its employees regarding the number of milescommuted each day. The data set below shows the results9, 15, 26, 32, 65, 5, 10, 19, 26, 32, 8, 15, 2530, 40, 7, 12, 21, 27, 35, 60, 29, 23, 14,8Using a box plot, determine the outlier value of the data set above.A. 65OB. 23C. 60D. The data set does not contain an outlier.E. 5 What is the equation of this line? Y=3x Y=3Y=-3X=3 Why is it important that the perodic table is structured as a table rathe than a list of elements. please answer me Suppose that an individual has a body fat percentage of 19.3% and weighs 187 pounds. How many pounds of her weight is made up of fat? Round your answerto the nearest tenth. help plz i need help 3x-4=2x+20 The failure of Chiang Kai-shek's forces in the Chinese civil war canlargely be blamed on...?A) his weak and corrupt leadership.B) aid given by the United States to the opposition.C) the U.S. fear and distrust of communism.D) the U.S. lack of interest in the outcome of the war. 15804^22 as a expression using the order of operations. What is the area of the kite 10 12 12 18 What is the range of pH values in a basic solution?a.pH=7b.pH is greater than 7c.pH is between 0 and 14d.pH is less than 7