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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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