Question: Write a program that includes a function called displayTime() to output the current time. You will call the predefined function ctime() in your function. Do
Write a program that includes a function called displayTime() to output the current time. You will call the predefined function ctime() in your function. Do some research to determine how to use this function to retrieve the current time and display it to the standard output device. Test your functions by writing the appropriate function calls in the main function. Write a program that simulates a questionnaire to find a roommate. You will ask the user various questions that might determine a suitable match, such as their age, gender, smoking preference, sleeping habits, pets, etc. Use an overloaded function, called match, to determine if their preferences match your own
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
