Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Personal Organizer In this program. you will create a personal organizer. Using parallel arrays you will store the following information on each event in your

Personal Organizer

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 incorrect month the month should be set to January. If the user enters an incorrect day then the day should be set to 1.

Write the following methods:

• Add an event

• Print all events

• Print events in a specific month

Your program should follow how the sample run (below) asks for input and 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 he or she would like to see events from.

Sample Run:

What is the event: Hour of Code

What is the month (number): 12

What is the date: 5

What is the year: 2016

Do you want to enter another date? NO to stop. Yes

What is the event: Winter Break Starts

What is the month (number): 12

What is the date: 15

What is the year: 2016

Do you want to enter another date? NO to stop, yes

What is the event: Taxes Due What is the month (number): 4

What is the date: 15

What is the year: 2017

Do you want to enter another date? NO to stop. NO

List of Events

Hour of Code

Date: December 5. 2016

Winter Break Starts

Date: December 15. 2016

Taxes Due Date: April 15, 2017

What month would you like to see? (Enter the month number)4

Events in April

Taxes Due

Date: April 15, 2017

Step by Step Solution

3.51 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Management For Decision Makers

Authors: Peter Atrill, Paul Hurley

2nd Canadian Edition

138011605, 978-0138011604

More Books

Students also viewed these Programming questions