// Assignment Final Question 8
//
// Name: <Maribel Fuentes>
//
// Class: C Programming, <Fall 2024>
//
// Date: <December 2, 2024>
#include <stdio.h>
// Define the date structure
struct date {
int month;
int day;
int year;
};
// Define additional supporting structures
struct time {
int hour;
int minute;
int second;
};
struct jockey {
char name[50];
int experience; // in years
};
struct trainer {
char name[50];
int experience; // in years
};
// Define the race details structure
struct race_details {
struct date raceDate; // the date of the race
struct time raceTime; // the time of the race
int raceNumber; // the specific race number identifier
char trackName[50]; // the name of the track where the race was held
int distance; // distance of the race in meters
char raceType[30]; // type of race (e.g., flat, steeplechase)
struct jockey raceJockey; // jockey details
};
// Define the horse details and past performance structure
struct horse_details_and_past_performance {
int programNumber; // the program number
char horseName[50]; // horse name
char horseGender; // gender of the horse
int age; // age of the horse
char breed[30]; // breed of the horse
struct trainer horseTrainer; // trainer details
int wins; // number of wins
int losses; // number of losses
int earnings; // total earnings in dollars
};
int main() {
// NOTE: You don't have to populate any of these!!!
struct race_details myRaces[10];
struct horse_details_and_past_performance myHorses[20];
// nothing else needs to be added to main
return 0;
}