horoscope's People
horoscope's Issues
Function to calculate user's zodiac sign
Create a function to that takes in the user's birthday as a date struct and returns the user's zodiac struct.
Function to calculate user's fortune
Create a function to take in the user's zodiac sign and the current moon phase and return a fortune.
Create a 2D array of Fortunes from CSV
Read in a list of fortunes from a CSV in the format:
<zodiac sign>,<moon phase>,<fortune>.<new line>
Convert this list of fortunes to a 2D array of char pointers. The first dimension is the moon phase, from the corresponding moon phase enum and the second dimension is the zodiac sign, from the corresponding zodiac enum.
Allow the user to upload a CSV of moon phases
Take in a CSV of dates and moon phases rather than hard coding in the moon phases.
Allow the user to save their fortune to a text file
Add the ability to save the user's fortune to a text file.
Create a Fortune struct
The Fortune struct will hold:
- Fortune description
- Corresponding zodiac sign
- Corresponding moon phase
Create a month struct
Needs to hold:
- The name of the month
- Position of the month in the year
- Number of days in the month
This will be used to verify that the user has entered a valid date.
Add that ascii art
Create an enum that stores zodiac signs
Create an enum that stores the moon positions
The indexes of the enum refers to the day of the month and the value refers to the moon position.
Check if date entered is valid
Need a function to check the validity of dates entered. For example, February 30th is not a valid date.
Convert user input to a date struct
Create a function that asks the user for a date. Then, verify that the given date is valid (valid number of days in month, valid month number). Then, create the a date struct from the input.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.