Hire a Programmer
Este proyecto recibió 8 ofertas de freelancers talentosos con una oferta promedio de $241 USD.Obtén cotizaciones gratis para un proyecto como este
Presupuesto de Proyecto$10 - $30 USD
Descripción del Proyecto
The CenturyLink Center can seat 17,560 people for an event. If the arena was full and you were to poll everyone for which day of
the year (1-365) they were born, you should be able to determine which days had the most birthdays and which days had the fewest
Write a program that will generate 17,560 random birthdays (numbers) between 1 and 365 and count how many people have that
same birthday. Output a display of each day of the year (1 – 365) followed by the number of people with that birthday, and then 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).
Use your knowledge of arrays and random number generation to solve a problem.
Use looping structures to determine the largest and smallest values in an array and then find each occurrence of that
Class and File Naming
Name your class lastname_Birthdays and source file [url removed, login to view], using your last name. For
example a student named Don Trump would create a class trump_Birthdays.
Points to Think About
A solution with just a main() method would likely contain five looping structures. The first would fill an array of counters
based on random numbers between 1 and 365. The next two would first identify the largest value (count) stored in the
array and then go back through the array and identify the positions (days) that contained that value, outputting the
positions. The last two would first identify the smallest value (count) stored in the array and then go back through the
array and identify the positions (days) that contained that value, outputting the positions.
Your program will not be graded without complete header and Honor Pledge documentation.
You may not use any material from beyond chapter 6 of the Deitel book.
Name your class according to the “Class and File Name” section above.
You don’t need to use methods for this program, though if you’d like to practice you certainly can. It’s just as easy to write
the code for this particular assignment in a slightly larger main method as it is to pass an array around to various
Buscando hacer algo de dinero?
- Establece tu presupuesto y período de tiempo
- Describe tu propuesta
- Consigue pago por tu trabajo
Contrata Freelancers que también oferten en este proyecto
Trabaja en proyectos como este y haz dinero desde casa!Inscríbete Ahora
- The New York Times
- Wall Street Journal
- Times Online