Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please note I can ONLY use #include PLEASE READ I'm in a beginning class and we're just starting to learn how to make simple C++

image text in transcribedimage text in transcribed

Please note I can ONLY use

#include

PLEASE READ I'm in a beginning class and we're just starting to learn how to make simple C++ programs using Putty. I need help doing problems and fully understanding how to do them so that I can do others like them on my own. Here Is the problem glven: 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 (). PLEASE BE SURE THAT THE PROGRAM IS ABLE TO OUTPUT THE ANSWERS EXPECTED IN THE FOLLOWING TEST CASES: Enter hours: 3 Enter minutes: 45 The angle of the hour hand is 112.5 The angle of the minute hand is 270 Enter hours: 12 Enter minutes: 0 The angle of the hour hand is 0 The angle of the minute hand is:0 Enter hours: 12 Enter minutes: 30 The angle of the hour hand is 15 The angle of the minute hand is 180 Enter hours: 15 Enter minutes: 10 The ang le of the hour hand is 95 The angle of the minute hand is 60 Enter hours: 24 Enter minutes: 23 The angle of the hour hand is 11.5 The angle of the minute hand is 138

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions