subject

Write a program that will generate 12,000 random birthdays (integer numbers) between 1 and 365 and count how many people have that same birthday. Output a listing of the days that have the most birthdays and the days that have
the fewest birthdays. You do not need to convert a number like 32 to an actual date (February 1st).
Your code will have two classes:
the Main class will hold the main() method.
From this class, you will create an object of the Arena class.
This object will call responsible methods in the Arena class to print the MAX and MIN birthday dates.
See the skeleton below.
• the Arena class will have a random number generation method.
This class's constructor will take #of people in the area as an input.
. With this number, you will create an array and a method will put random numbers between 1 and 365 in this
array.
Two other methods in this class will determine the days with MAX and MIN birthdays.
Make sure to print ALL maximum and minimum birthdate days.
• The two classes can be part of the same file. A naive example structure is shown below.
public class Main
public static void main(String args[])
Arena a = new Arena();
a. printArena();
}
1
class Arenal
void printArenal
System. out. println("I am arena");
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:10
Read the code below. what will the computer print if the input for year_variable is 1700? if year_variable == 1776: print("your answer is correct. the declaration of independence was signed in “year_variable”.") elif year_variable < 1776: compute_variable = 1776 - year_variable. print("add “compute_variable“ years to your answer for the correct answer.") elif year_variable > 1776: compute_variable = year_variable - 1776 print("subtract “compute_variable” years from your answer for the correct answer.")
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
You know the right answer?
Write a program that will generate 12,000 random birthdays (integer numbers) between 1 and 365 and c...
Questions
question
Mathematics, 12.08.2020 07:01
question
Mathematics, 12.08.2020 07:01
question
Mathematics, 12.08.2020 07:01
question
Mathematics, 12.08.2020 07:01
Questions on the website: 13722367