Labwork №1. 1)Write a program that calculates a volume of a cylinder.
Forex:
Radius (centimeters) = 5.5
Height of cylinder (cm) = 7
Result:
Volume of the cylinder is 665.23 cm.cube.
2)Write a program that calculates a total surface of a cylinder.
Forex:
Radius (centimeters) = 5.5
Height of cylinder (cm) = 7
Result:
Total surface of the cylinder is: 431.97 cm. square.
3)Write a program that converts pounds into kilograms. (1 pound = 405.9 grams)
Forex:
Enter weight in pounds = 5
Result:
5 pounds = 2.05 kg.
4)Write a program that calculates of series and parallel resistances in electricity.
Forex:
Enter values of R1 and R2 resistances:
R1 = 10 Ohm
R2 = 6 Ohm
Result:
Series resistances R1 and R2 is: 16 Ohm
Parallel resistances R1 and R2 is: 3.75 Ohm
5)Write a program that calculates ampere of electricity if resistance and voltage are given.
Forex:
Enter values of V(voltage) and R (resistance) of electricity:
V = 220 volt
R = 11Ohm
Result:
I = 20 Ampere
6)Write a program that calculates a distance between points given in map if there are 120 kilometers in one centimeter of point.
Forex:
Enter the distance of points in map (in centimeters) : 120
Result:
Then the real distance is : 1440 km.
7)Write a program that calculates a cost of journey with a car.
Forex:
Distance from point A to point B(in km) : 67 km
Car’s fuel consumption for 100 km: 10 litters
Cost of a fuel (92 or 93 type): 110 tenge
Result:
Total cost of journey there and back: 1474 tenge
8)Write a program that calculates a speed of a person who runs some distance.
Forex:
Enter a distance (meters) = 1000 m.
Enter a time he spent to run (mins and seconds) = 3.25
(3.25 = 3 мin 25 sec = 205 sec)
Result:
His speed is = 17.56 km/hour
○чень нужн●!П̰о̰ж̰а̰л̰у̰й̰с̰т̰а̰
◘Достоверность информации. Ин-фа достоверна, если отражает истинное положение дел. (объективная информация всегда достоверна)
◘Полнота информации. Информация полная, если ее достаточно для понимания и принятия решения.
◘Точность информации. Определяется степенью ее близости к реальному состоянию объекта, процесса, явления и т.д.
◘Актуальность информации – важность для настоящего времени.
◘Полезность информации.
- Самая ценная информация – объективная, достоверная, полная, и актуальная.
Задача 1) 36 (это 24₁₆).
Задача 2) 38 (это 26₁₆).
Объяснение:
Задача 1)
24₁₆ = 36₁₀ (24₁₆ = 16¹ * 2 + 16⁰ * 4 = 32+4 = 36₁₀)
37₈ = 31₁₀ (37₈ = 8¹ * 3 + 8⁰ * 7 = 24 + 7 = 31₁₀)
100001₂ = 33₁₀ (100001₂ = 2⁵ * 1 + 2⁴ * 0 + 2³ * 0 + 2² * 0 + 2¹ * 0 + 2⁰ * 1 = 32 + 0 + 0 + 0 + 0 + 1 = 33₁₀)
36 < 33 < 31
Задача 2)
26₁₆ = 38₁₀ (26₁₆ = 16¹ * 2 + 16⁰ * 6 = 32+6 = 38₁₀)
41₈ = 33₁₀ (41₈ = 8¹ * 4 + 8⁰ * 1 = 32+1 = 33₁₀)
100011₂ = 35₁₀ (100011₂ = 2⁵ * 1 + 2⁴ * 0 + 2³ * 0 + 2² * 0 + 2¹ * 1 + 2⁰ * 1 = 32 + 0 + 0 + 0 + 2 + 1 = 35₁₀)
38 < 35 < 33