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

○чень нужн●!П̰о̰ж̰а̰л̰у̰й̰с̰т̰а̰

benblast benblast    1   19.11.2020 10:18    3

Другие вопросы по теме Информатика