Creates a new empty activities calendar initialized

Assignment Help Basic Computer Science
Reference no: EM131312956

Anyone who is involved in many activities typically uses a calendar to keep track of the various activities. Colleges commonly maintain several calendars such as an academic calendar, a school events calendar, and a sporting events calendar. We have defined an Activities Calendar ADT below that can keep track of one activity per day over a given range of dates. Select a data structure and implement the ADT.

* ActivitiesCalendar( dateFrom, dateTo ): Creates a new empty activities calendar initialized to the given range of dates. The date range can be specified for any non-overlapping period. The only requirements are that dateFrom must precede dateTo and dateTo cannot overlap the day and month of dateFrom for the next year.

* length (): Returns the number of activities on the calendar.

* getActivity( date ): Returns the string that describes the activity for the given date if an activity exists for the given date; otherwise, None is returned.

* addActivity( date, activity ): Adds the given activity description to the calendar for the given date. The date must be within the valid date range for the calendar.

* displayMonth( month ): Displays to standard output all activities for the given month. The display includes the year and name of the month and the list of activities for the month. The display of each activity includes the day of the month on which the activity occurs and the description of the activity.

Reference no: EM131312956

Questions Cloud

Define a fraction adt to represent and store rational number : The ADT should include all of the common mathematical and logical operations. In addition, your ADT should provide for the conversion between floatingpoint values and fractions and the ability to produce a string version of the fraction.
Develop healthy-city initiative suitable for implementation : Develop a 4 page healthy-city initiative suitable for implementation by your city. What kinds of disasters, both natural and man-made, are most likely to occur in your area?
Graph the yield to maturity against the time to maturity : Graph the yield to maturity against the time to maturity.-  Is this yield curve consistent with any of the yield curve theories? Explain.
Skills that public personnel managers : Predict two (2) trends that are likely to impact public service in the future. Next, choose two (2) skills that public personnel managers may seek in response to these trends. Provide a rationale and support your position with appropriate academic..
Creates a new empty activities calendar initialized : addActivity( date, activity ): Adds the given activity description to the calendar for the given date. The date must be within the valid date range for the calendar.
International strategy differ from a purely domestic one : As an international marketer how might you use a middleman in your distribution strategy for the international transaction? How would the middlemen functions of your international strategy differ from a purely domestic one?
Complete porter five forces model : Complete a PEST analysis for the selected firm. Be sure that this is based on research of the organization, not conjecture or opinion. Complete Porter's Five Forces Model for the selected firm. Pay particular attention to the relationships of eleme..
Analyze impact that the choice of model has on fiscal health : From the first e-Activity, specify whether your state follows the private insurance model or the Medicaid model for its CHIP. Analyze the impact that the choice of model has on the fiscal health of your state. Provide two (2) examples of this impa..
What alternative do you see for reducing plastic consumption : What alternatives do you see for reducing plastic consumption? Do you think bisphenol A (BPA) should be banned in baby bottles, formula cans, and infant and toddler toys?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Collaborate about this discussion

collaborate about this discussion? I agree that either an external style sheet or embedded style sheet are the best options.

  Assignment-boolean expressions

1. Assignment 3:  Boolean Expressions

  Information technology for operational

Provide and discuss an example of how a business function with which you are familiar with (e.g. sales, marketing, finance, operations/production, accounting, human resources) utilizes information Technology for operational and/or strategic purpos..

  What is the q complexity of the sum

What is the Q complexity of the sum? Please give a detailed answer so that I may learn from it. Thank you!

  Determine the heat transfer through the turbine casing

The steam is discharged in a dry saturated condition at 20 kPa at a velocity of 60 m/s. Determine the heat transfer through the turbine casing.

  Explore the convergence behavior of the generalized

hence, in light of what has been said here, explore the convergence behavior of the generalized Hebbian-learning algorithm.

  What value is stored at that location

Write two separate statements that assign the starting address of arrayvalues to pointer variablevPtr.

  Flywheel is not on the verge of rotating clockwise

The coefficient of static friction between the brake band and the rim of the wheel is µs = 0.3.

  Protocols used for the routers at each location

Recommendations for network equipment that must be placed at each location; also, consider equipment based on teleconferencing needs

  Compute and display the average age

Create a Class StudentType Create a StudentType array of 50 students Set the age of the first student to 10, second student to 11, and so on until the last student to 59. Compute and display the average age of all 50 students with the help of a fu..

  Assignment on university database

A prestigious university has recently implemented a consolidation strategy that will require it to centralize their student records. In order to move forward, the local university will need to develop a data model that will retain student records ..

  What are two main functions of user accounts in a network

1. What are the two main functions of user accounts in a network? As a network administrator, how would you establish user rights and permissions to minimize maintenance efforts? How would you assign work groups? what are some issues with user..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd