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 01:30
Consider the following statements: #include #include class temporary { private: string description; double first; double second; public: temporary(string = "", double = 0.0, double = 0.0); void set(string, double, double); double manipulate(); void get(string& , double& , double& ); void setdescription(string); void setfirst(double); void setsecond(double); }; write the definition of the member function set() so that the instance variables are set according to the parameters. write the definition of the constructor so that it initializes the instance variables using the function set() write the definition of the member function manipulate() that returns a decimal number (double) as follows: if the value of description is "rectangle", it returns first * second if the value of description is "circle" it returns the area of a circle with radius first if the value of description is "cylinder" it returns the volume of a cylinder with radius first and height second. hint: the volume of a cylinder is simply the area of the circle at the base times the height. if the value of description is "sphere" it returns the volume of the sphere with radius first. otherwise it returns -1.0;
Answers: 1
question
Computers and Technology, 22.06.2019 02:00
What is the largest decimal number that can be represented by a binary number with 4 place values? (remember, each place in a binary number has a value of a power of 2, starting in the ones place with 20.)
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
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
Questions on the website: 13722367