Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bajajcodes/is-your-birthday-lucky

Is your birthday lucky? This app takes user's complete birthday and user's lucky number and show the result whether user's is born with luck.
https://github.com/bajajcodes/is-your-birthday-lucky

css html javascript

Last synced: 13 days ago
JSON representation

Is your birthday lucky? This app takes user's complete birthday and user's lucky number and show the result whether user's is born with luck.

Awesome Lists containing this project

README

        

# Is Your Birthday Lucky

## List of Contents
- Description
- Input
- Output
- Processing
- Screenshots
- Link

>

Description: is your birthday lucky or your born lucky, checkout with one click (just enter your date of birth and your lucky number). If your lucky we respect you and if not then we laugh at you. If your ready to be part of awesome lucky birthday community, then click on the link below.


>

Input: user has to enter his/her date of birth in format dd/mm/yyyy and lucky number. A user cannot pass either of the inputs empty and partial(dob), if then user will be informed with message. Lucky number input cannot be zero, negative number and floating-point number, only positive numbers are allowed.


>

Output: user will get to know with a message whether his/her birthday is lucky or not, if lucky then informed as Your Birthday is lucky. 🙇 or if not lucky then as Your Birthday is not lucky. 🤣. If any error or input entered is correct then user is informed with desired message, stating what went wrong and where.


>

Processing:


  • Get date of birth(dob) from the user and check for not empty and partial, using function checkDateOfBirth, if correct then move to next to lucky number input function.

  • Get lucky number from user, using function checkLuckyNumber which checks for input constraints.

  • After that function isYourBirthdayLucky computes sum of user date of birth using function calculateDOBSum and then modulo operator is applied on previous function output and lucky number as:
    sum % luckyNumber


  • If remainder(r) is zero then user birthday is lucky or if remainder is not zero then birthday is not lucky. Then user is informed with messaged based on outcome.


>**Screenhosts:**


![Home screen of the app](https://github.com/shmbajaj/is-your-birthday-lucky/blob/main/screenshots/initial.png?raw=true)
![When user clicks on button, with incorrect inputs.](https://github.com/shmbajaj/is-your-birthday-lucky/blob/main/screenshots/wo_dob.png?raw=true)
![When user birthday is lucky](https://github.com/shmbajaj/is-your-birthday-lucky/blob/main/screenshots/input.png?raw=true)
![When user birthdat is not lucky](https://github.com/shmbajaj/is-your-birthday-lucky/blob/main/screenshots/output.png?raw=true)


>

Link: Is Your Birtday lucky