Following is a demo of the prolog_challenge1_extracredit.pl program.
phurd@phurd-X510UAR:~/Desktop/COG366WorkSite/prolog$ swipl Welcome to SWI-Prolog (threaded, 64 bits, version 8.4.0) SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software. Please run ?- license. for legal details. For online help and background, visit https://www.swi-prolog.org For built-in help, use ?- help(Topic). or ?- apropos(Word). ?- [prolog_challenge1_extracredit]. true. ?- solve. abigail was born in february on monday. brenda was born in december on wensday. mary was born in june on sunday. paula was born in march on friday. tera was born in july on saturday. true