Danila251008
13.08.2021 11:41

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

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

Нажмите на рекламу ниже и сразу увидите ответ
↓
Популярные вопросы:
Ответ:
тто
21.05.2023 14:03
1) F=Av(¬A&B)
По закону дистрибутивности раскроем скобки
(Av¬A)&(AvB)
Av¬A = 1, значит остаётся AvB

2) F =A&(¬AvB)
По тому же закону раскрываем скобки
(A&¬A)v(A&B)
A&¬A = 0, значит остаётся A&B

3. (AvB)&(¬BvA)&(¬CvB)
По закону склеивания (AvB)&(¬BvA) = A , получается, что выражение принимает вид
A&(¬CvB)
Можно раскрыть скобки, получим
A&¬C v A&B

4) F =(1v(AvB))v((AC)&1) 
Скобка (1v(AvB)) = 1, так как 1 v ЧТОУГОДНО = 1
Получаем выражение
1v((AC)&1) = 1, так как 1 v ЧТОУГОДНО = 1
ответ 1
0,0(0 оценок)
Ответ:
bopoh234567
03.07.2022 05:33
Program pr;
uses crt;

Var mas:array[1..1000, 1..1000] of integer;
N,M,i,j,k:integer;

Begin
Writeln('Введите размер матрицы N*M');
Write('N = ');
readln(N);
Write('M = ');
readln(M);

if (M>1000) or (N>1000) or (M<1) or (N<1)
then  
Writeln('Ошибка, указанные значения выходят за пределы матрицы')   else   
        Begin      
 Writeln('Введите элементы матрицы');      

k:=0; 
 for i:=1 to N do     
  for j:=1 to M do     
    Begin     
      readln(mas[i,j]);       
      if (mas[i,j] mod 2 = 0) then k:=k+1;     
    end; 
  
    Writeln();   
    Writeln('Исходная матрица');
   
   for i:=1 to N do   
     Begin     
       for j:=1 to M do     
          Begin     
             Write(mas[i,j], ' ')     
           end;     
      Writeln();   
     end;         

Writeln();   
Writeln('Количество четных элементов = ',k);      
 end;

readln;
end.
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота