Computer science final file with SQL tables

Share Embed Donate


Short Description

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
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF