Basic Question On C Language 1
Basic Question On C Language 1
∑
=
∑
Where, k is the number of courses for which the candidate remains registered for
during the semester/ trimester. Write a program in C to calculate SPI.
Q42. Write a program to calculate the frequency (f) of a given wave with wavelength (λ)
and speed (c), where c=λ*f.
Q43. A car travelling at 30 m/s accelerates steadily at 5 m/s2 for a distance of 70 m. What
is the final velocity of the car? [Hint: v2 = u2 + 2as]
Q44. A horse accelerates steadily from rest at 4 m/s2 for 3s.
(a) What is its final velocity?
(b) How far has it travelled?
[Hint: (a) v = u + at (b) s = ut + ½at2 ]
Q45. Write a C program to read an amount (integer value) and break the amount into
smallest possible number of bank notes.
Q46. Write a C program to convert a given integer (in seconds) to hours, minutes and
seconds.
Q47. Write a C program to convert a given integer (in days) to years, months and days,
assumes that all months have 30 days and all years have 365 days.