ok, so i have to write a program that takes in the current date and the date of the expiration of a food product in the form of mm/dd/yyyy
then i have to make 3 bool functions that do no input from the keyboard nor output to the screen. they do only logic.
those three bool functions are 'isvalid' which is true if the date is a valid date and false if otherwise. the other bool function is 'thesame' which is true if the two dates are the same and false otherwise. and the last bool function is called 'earlier' which is true if the 1st date (the expiration date) is earlier than the 2nd date (the current date)
i already made the functions, but then at the end of the program, i have to have the program either say 'the dates are the same', 'expiration date/current date is not valid', 'the expiration date is earlier than today', or 'the expiration date is later than today'
but i have no idea how to make my program put those outputs out. i have to use 'if' statements, please help!
2007-03-20
12:54:25
·
2 answers
·
asked by
63godtoh
3