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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!