Computer Science, asked by jazzyjet0921, 9 months ago

Can someone write this program or at least write a starter for me?

Edhesive intro to computer science assignment 9
In this program, you will create a personal organizer. Using parallel arrays, you will store the following information on each event in your organizer:

Month (1-12)
Day (1-31)
Year
Event name
If the user enters an invalid month (not 1-12), then the month should be set to January. If the user enters an invalid day (such as June 56th), then the day should be set to 1.

Declare the following arrays:

eventName: to store the event name
eventMonth: to store the event month
eventDay: to store the event day
eventYear: to store the event year
Write the following methods:

Add an event
Name it addEvent
Takes four parameters in the following order:
array of names
array of months
array of days
array of years
This function will ask the user for the event name, month, day, and year (in that order).
Next, it will append the name, month, day, and year to the appropriate array.
Invalid parameters should be stored as default.
Print all events
Name it printEvents
Takes four parameters in following order:
array of names
array of months
array of days
array of years
This function prints all events in the arrays in the specified format.
Print events in a specific month
Name it printMonth
Takes five parameters in following order:
selected month as integer
array of names
array of months
array of days
array of years
This function will print all events in the arrays in the specified format for the given month.
Your program should follow how the sample run shown below, including asks for input as well as how it outputs events.

It should first keep asking for new events to add until the user says NO. Then, it should print all the events entered. Finally, it should ask the user for a specific month that they would like to see events from.

Answers

Answered by 123utkarsh5678
0

Answer:Acknowledgements

Contributing Writers

George Benainous, Hollywood High School, Los Angeles, California

Robb Cutler, Tutor Crossing, Inc., Santa Clara, California

Judy Hromcik, Arlington High School, Arlington, Texas

Michelle Hutton, The Girl’s School, Mountain View, California

John Landa, South East High School, South Gate, California

Curriculum Design Team Members

Joanna Goode, University of Oregon

Gail Chapman, Computer Science Equity Alliance

Jane Margolis, UCLA

David Bernier, UCLA

Todd Ullah, Los Angeles Unified School District

Diane Watkins, Los Angeles Unified School District

Chris Stephenson, Computer Science Teachers Association

Sponsors & Supporters

This curriculum was created under the auspices of the Broadening the Participation in Computing  

National Science Foundation grant, "Into the Loop: An University K‐12 Alliance to Increase and Enhance  

the Computer Science Learning Opportunities for African‐American, Latino/a, and Female Students in  

the Second Largest School District in the Country".  Principal Investigator: Jane Margolis (UCLA); Co‐

Principal Investigators Joanna Goode (University of Oregon), Todd Ullah (LAUSD), Deborah Estrin  

Version 3.0  as they created authentic products or performances for interested and critical audiences.  

This kind of apprenticeship allowed learners to acquire complex interdisciplinary knowledge, practical  

abilities, and appropriate forms of social behavior, Much of the power of apprenticeship learning can be  

brought Into schooling by organizing learning environments so that complex thinking is modeled and  

analyzed, and by providing mentoring and coaching as students undertake extended projects and develop  

presentations of finished work, both in and beyond the classroom.

The units in Exploring Computer Science contain individual lessons that taken together as a unit fit the  

construct for inquiry‐based learning outlined in the following chart adapted from the “5 E Model”.

Explanation:

Similar questions