Practicum 3: Course C Programming Language Meeting 5
Practicum 3: Course C Programming Language Meeting 5
Meeting №5
Topic: Variables and data types.
Task 1.
The user using the keyboard enters time in seconds elapsed from the start of the day. Display the
current time in hours, minutes and seconds. Calculate how many hours, minutes and seconds left
until midnight.
Task 2.
The user using the keyboard enters the diameter of a circle. Calculate the area and perimeter of
the circle.
1
Practicum 3
Course «C Programming Language»
Meeting №6
Topic: Variables and data types.
Task 1.
The user enters two numbers from the keyboard. Compute their sum, product and arithmetic
mean.
Task 2.
The user enters tree numbers from the keyboard. Compute their sum, product and arithmetic
mean
Task 3.
The user using the keyboard enters the cost of one laptop, their quantity and percentage of
discount. Calculate the total cost of the order.
Task 4.
Manager’s salary is $100 + 5% of sales. The user using the keyboard enters the total amount of
the manager’s transactions for the month. Calculate the final manager’s salary.
Task 5.
The user using the keyboard enters the volume of one film in gigabytes. Calculate how many
CDs are required to transfer the film from a friend to your home.
Task 6.
The user using the keyboard enters the volume of one film in gigabytes and Internet connection
speed in bits per second. Calculate how many hours, minutes and seconds are needed to
download the film.