Write a Pseudo Code to find the angle between two hands of a
clock for a given time.
Answer Posted / mamun
#include<stdio.h>
int main()
{
int angle,hour,minute;
printf("Enter the hour: ");
scanf("%d", &hour);
printf("Enter the minute: ");
scanf("%d", &minute);
if(hour > 12) // In case of 24 hour clock
{
(int)angle = hour * 30 - minute * 6;
if(angle > 180)
angle = 360 - angle;
printf("%d\n", angle);
}
else
printf("bye\n");
return 0;
}
| Is This Answer Correct ? | 2 Yes | 16 No |
Post New Answer View All Answers
You are given a dictionary of all valid words. You have the following 3 operations permitted on a word: delete a character, insert a character, replace a character. Now given two words - word1 and word2 - find the minimum number of steps required to convert word1 to word2. (one operation counts as 1 step.)
Can any one give an example (Source Code) on virtual function implemetation in Java?
what is difference between object oriented programming structure and object oriented programming system?
Find out the list of roles which gives access to GUI activities? thanks in advance
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
why not instantiating servet using new operator?
I am looking for NIC Sample papers or any patern of questions/ syllabus plz, send me on hamid.khan135@yahoo.in Regard
what is the use MDM(Master Data Management)and meaning
1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?
1.what is the vesition managment.
What is autocall macro and how to create autocall macro? what is the use of it?
diffrence between oracle apps , .NET , SAP
Why did you ever become involved in QA/testing?
As per interoperatbility programs written in one language can be used by other language. How can we restrict the features of one language (say C#) in the programmer written in another language (say VB)..for example we have some features like operator overloading which is possible C#.NET (not in VB.NET), how can we restrict that when we are using this code in VB.NET.
hoe to data grid use in sql server 2000?