0% found this document useful (0 votes)
37 views

Practicum 3: Course C Programming Language Meeting 5

The document outlines tasks for two practicum meetings about variables and data types in C programming language. For the first meeting, students are asked to write programs that take user input of time in seconds and converts it to hours, minutes and seconds, and takes a circle diameter input to calculate area and perimeter. For the second meeting, students are asked to write programs to calculate sums, products and means of numbers, calculate order totals with discounts, calculate manager salaries based on sales, calculate number of CDs needed to transfer files, and calculate download times based on file sizes and connection speeds.

Uploaded by

Samnang Deoun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Practicum 3: Course C Programming Language Meeting 5

The document outlines tasks for two practicum meetings about variables and data types in C programming language. For the first meeting, students are asked to write programs that take user input of time in seconds and converts it to hours, minutes and seconds, and takes a circle diameter input to calculate area and perimeter. For the second meeting, students are asked to write programs to calculate sums, products and means of numbers, calculate order totals with discounts, calculate manager salaries based on sales, calculate number of CDs needed to transfer files, and calculate download times based on file sizes and connection speeds.

Uploaded by

Samnang Deoun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Practicum 3

Course «C Programming Language»

Meeting №5
Topic: Variables and data types.

Tasks for practicum:

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.

Tasks for practicum:

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.

You might also like