https://github.com/milan-sony/mensturalmate
MensturalMate is a simple menu driven period calculator build in C language as part of my mini-project in MCA Semester 1
https://github.com/milan-sony/mensturalmate
c c-language c-programming menstrual-cycle menstrual-tracking mingw
Last synced: 3 months ago
JSON representation
MensturalMate is a simple menu driven period calculator build in C language as part of my mini-project in MCA Semester 1
- Host: GitHub
- URL: https://github.com/milan-sony/mensturalmate
- Owner: milan-sony
- Created: 2023-05-28T17:19:50.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-02T11:32:47.000Z (about 2 years ago)
- Last Synced: 2025-01-10T11:46:25.563Z (5 months ago)
- Topics: c, c-language, c-programming, menstrual-cycle, menstrual-tracking, mingw
- Language: C
- Homepage:
- Size: 263 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
# MensturalMate
A simple menu driven period calculator build in C language as part of my mini-project in MCA Semester 1
## Run locally
To run this project, you need to install an IDE/Code Editor (Visual Studio Code is preferable) and also a C/C++ compiler on your system. Some popular compilers are:
1. GCC on Linux
2. GCC via Mingw-w64 on Windows
3. Microsoft C++ compiler on windows
4. Clang for XCode on MacOSCheck out this link to know how to run a C program in Visual Studio Code.
## To compile the code
```bash
gcc periods_tracker.c -o periods_tracker
```## Run the code
```bash
.\periods_tracker
```## Sample code
```bash
// stucture to hold the period details
struct period_details
{
int day;
int month;
int year;
int cycle_length;
int period_length;
}periods;
``````bash
int day = periods.day;
int month = periods.month;
int year = periods.year;
int days_in_month;
``````bash
for (int i = 0; i < 3; i++){
day += periods.cycle_length;
if (day > days_in_month){
day -= days_in_month;
month++;
if (month > 12){
month = 1;
year++;
}
}
printf("\t=> \t%d/%d/%d\n\n", day, month, year);
}
```## Screenshot
![]()