☰ Contents · Computing

Practical tasks and linear programs

Lessons 32–33 · 2 lessons · M. R. Fayziyeva, D. M. Sayfurov, N. S. Xaytullayeva. Informatics and Information Technologies, Grade 9. “Nashriyot uyi Tasvir”, Tashkent, 2020
Answers are for parents and teachers.
1
A bus has 45 seats. 320 pupils are going on a trip. How many buses are full and how many pupils are on the last bus (using // and %)?
2
The three sides of a triangle are typed on one line with spaces. Write a program that prints its perimeter (12 if 3 4 5 is typed).
3
Three classes have 28, 31 and 26 pupils. If 2 sit at each desk, how many desks are needed (for each class separately, rounded up)?
4
The kinetic energy of a body of mass m and speed v is E = m * v**2 / 2. Find E for m = 4, v = 3.