Git Product home page Git Product logo

agenda's Introduction

Agenda

Write a C++ program to manage a single day agenda using the Appointment class. Appointments for the day are stored in a file called "agenda.txt". The appointment data is stored in the file using the following format:

"title|year|month|day|time(standard)|duration"

Example: "Meeting with Bob | 2019 |4 |29 |8:30 aM |15"

The file might contain empty lines or no lines at all (no appointments). See the supplied sample file in the assignment's repository.

Write a C++ program that uses the Appointment class to manage the daily calendar. Your program should start by reading all the appointments from the data file and process command line arguments as follows:

  • ./a.out -ps

Print my daily schedule in order by starting time using standard time format. The appointments must be displayed in a table format with proper labels.

  • ./a.out -p "time"

Print all appointments at specified military time

  • ./a.out -a "Appointment data"

Add an appointment given in the format:

"title|year|month|day|time|duration"

Time is given in standard time and duration is given in minutes. Leading and trailing spaces must be removed.

Example: "Meeting with Bob | 2019 |4 |29 |8:30 aM |15"

  • ./a.out -dt "title"

Delete all appointments that match a title exactly. It should work for both upper and lower-case characters with leading and trailing spaces removed.

  • ./a.out -dm "time"

Delete all appointments that match the starting military time exactly.

If the daily calendar data is updated (add, delete) then all the data must be stored back in the same data file using the same format. You should be able to run the program again and see the changes reflected in the new daily agenda.

Error checking:

  • Your program must handle data files that include empty lines or no lines at all.
  • Report an error if the number of arguments is invalid.
  • Report an error if the option is not valid.

agenda's People

Contributors

hc219417 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.