C Programming and Technical Programming Technical

Write a program that lets you enter a distance in kilometers and that converts it into miles. The conversion factor is that 1 mile = 1.6093 kilometers. Write your own method to do the conversion and return the answer to the main program.

Read Solution (Total 8)

C Other Question

1. Write a program that lets you enter a number of hours, and that converts it to days and hours. For example, 111 hours = 4 days and 15 hours. You can write separate subroutines to calculate the days and hours, or just do the calculations in the main program.

2.
Write a program that prints the largest of the 5 numbers that you entered. Write the appropriate kind of loop which will cause the user to enter 5 numbers, then have an “if statement” inside the loop which checks each new number against the current max value. When initializing the max number, make it be something very small, so that the first number entered by the user is guaranteed to be the new max.
c# is a native of

a. java
b. .net
c. html
d. ruby