README for habit_tracker Github repository

Introduction

This repository contains a simple console application that allows the user to track their beer consumption. The application is written in C# and uses Microsoft.Data.Sqlite library for data storage.

Usage

The application will display a menu with the following options:

  • View all records
  • Insert a record
  • Delete a record
  • Update a record
  • Total beers drank

To select an option, type the corresponding number and press Enter.

View all records

This option displays all the records of beer consumption in the database. The records include the date and the quantity of beer consumed.

Insert a record

This option allows the user to add a new record to the database. The user is prompted to enter the date and the quantity of beer consumed.

Delete a record

This option allows the user to delete a record from the database. The user is prompted to enter the ID of the record to be deleted.

Update a record

This option allows the user to update a record in the database. The user is prompted to enter the ID of the record to be updated, as well as the new date and quantity of beer consumed.

Total beers drank

This option displays the total quantity of beer consumed by the user.