This file contains programs and Sql tables for class 12 practicals......
Description
Computer Science
Practic al File
NameClass-XII-C
Simpl e
Progr ams
Q1. Write a function that takes time as three integer arguments(hours,minutes,seconds),and returns the number of seconds since the clock last struck "12". Use thisfunction to write a program to calculate the amount of time in seconds betweentwo times, both of which are ithin one 12 hour cycle of clock. #include #include #include int seconds(int hh,int mm,int ss) { int z,s; z=abs(hh-12); s=(z*60*60)+(mm*60)+ss; return s; } int main() { clrscr(); int h1,h2,m1,m2,s1,s2,t1,t2; cout
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.