#include <stdio.h>
struct date
{
int month;
int day;
int year;
};
{
int hour;
int minute;
};
struct performanceTotals
{
int starts;
int wins;
int places;
int shows;
};
struct owner
{
char name[100];
char address[200];
struct performanceTotals records;
};
struct trainer
{
char name[100];
struct performanceTotals records;
};
struct jockey
{
char name[100];
float weight; //assuming this would be an important thing
struct performanceTotals records;
};
struct trackRecord
{
char holderName[50];
struct date recordDate;
};
struct raceConditions
{
char raceType[50];
char trackSurface[20];
char trackCondition[20];
float raceDistance;
};
// Main structures
struct raceDetails
{
struct date raceDate; // date of the race
struct time raceTime
; // time of the race int raceNumber; // race number
char trackName[50]; // track name
char trackCode[10]; // track code
struct raceConditions conditions; // race conditions
float purse; // purse amount
struct trackRecord record; // track record details
char raceType[50]; // type of race
char wagersAvailable[100]; // available wagers
char qrCode[100]; // QR code for race (zero clue how you would store this, maybe the data contained in the code? i dont know, but its here)
char notes[200]; // space for notes
};
struct horse
{
int programNumber; // program number
char horseName[50]; // horse name
char horseGender; // horse gender
int age; // horse age
char color[20]; // horse color
char sire[50]; // horse sire
char dam[50]; // horse dam
struct owner ownerDetails; // owner details
struct trainer trainerDetails; // trainer details
struct jockey jockeyDetails; // jockey details
float weightCarried; // weight carried
char medicationAndEquipment[100]; // medication and equipment details
float morningLineOdds; // morning line odds
float claimingPrice; // claiming price
char silks[100]; // silk description
char saddleClothColor[20]; // saddle cloth color
int speedFigure;
struct performanceTotals lifetime; // lifetime performance
struct performanceTotals currentYear; // current year performance
struct performanceTotals previousYear; // previous year performance
struct performanceTotals trackSpecific; // performance at this track
struct performanceTotals distanceSpecific; // performance at this distance
float earnings; // how much the horse earned (do they get paid?)
char recentWorkoutLines[200]; // recent workout lines
int daysUnraced; // days since last race
};
int main() {
// Arrays to hold race and horse details
struct raceDetails myRaces[10];
struct horse myHorses[20];
// Nothing else needs to be added to main
return 0;
}