Write a program that contains the following functions all in a single cpp file.
ID: 3625375 • Letter: W
Question
Write a program that contains the following functions all in a single cpp file.A function called seconds that accepts the time as three integers representing hours, minutes, seconds and returns the number of second since the clock struck 12
A function called celsius that accepts a number representing the temperature in celsius and returns the farenheit equivalent
A function called farenheit that is the reverse of the function in number 2
Write a function called perfect that accepts a number and returns true if it is a perfect number and false if it is not a perfect number. A number is considered perfect if the sum of its factors (not including the number itself) is equal to the number.
Write a function called reverse that accepts a number and returns it with its digits reversed. For example, if you pass it 12345, it should return 54321. Remember, these are single numbers that must be reversed.
Your main function should contain a loop that presents the user with a menu of options. The user will select which function to execute and this process should be allowed to continue until the user indicates that he/she wants to stop.
Thank you so much for your help.
Explanation / Answer
please rate - thanks #include using namespace std; int seconds(int,int,int); double celsius(int); double fahrenheit(int); bool perfect(int); int reverse(int); int main() {int i,n,n1,n2; do {coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.