Question: Create a C++ program: If your program doesn't compile, copy the error messages and print them instead of the test runs. If the error messages

 Create a C++ program: If your program doesn't compile, copy the

Create a C++ program: If your program doesn't compile, copy the error messages and print them instead of the test runs. If the error messages are more than one page long, print the last page only. clock (clock.cpp) The program will ask for a time in 2 integers: hours and minutes. It will tell the angles of the hour and minute hands on the clock. Requirement: You may NOT use if else, switch or loops. You can solve this problem only using some arithmetic operators such as +, *, /, % and 0. 2:00 minure Hand o Hour Hand0 2 30 180 112.5 H) 15" Test your program using the following 5 test cases. Your interface has to look exactly like the sample runs below [kslott@empress cs1/a.out Enter hours: 3 Enter minutes: 45 The angle of the hour hand is 112.5 The angle of the minute hand is: 270 If you can only get this, you will receive 15 points out of 20. blank line [kslott@empress cs1]/a.out Enter hours: 12 Enter minutes: 0 The angle of the hour hand is 0 The angle of the minute hand is: 0 [kslott@empress cs] ./a.out Enter hours: 12 Enter minutes: 30 The angle of the hour hand is : 15 The angle of the minute hand is180 [kslott@empress cs1/a.out Enter hours: 15 Enter minutes: 10 The angle of the hour hand is : 95 The angle of the minute hand is 60 [kslott@empress ] /a.out Enter hours: 24 Enter minutes: 23 The angle of the hour hand is : 11.5 The angle of the minute hand is138

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!