Gladiolus94
23.10.2022 11:54

Sub макрос5() ' ' макрос5 макрос ' ' dim number as long dim names as string number = inputbox("введите номер курсанского") names = inputbox("введите фамилию имя отчество") dim sa as double dim step as long dim min_num as integer sa = number mod 10 step = 10 do dim this_num as integer this_num = ((number - number mod step) mod (step * 10)) / step sa = (sa + this_num) / 2 step = step * 10 loop while step < number first_space_index = instr(1, names, " ") last_space_index = instrrev(names, " ", len(names)) len_first_word = len(left(names, first_space_index - 1)) len_second_word = last_space_index - 1 - first_space_index len_third_word = len(names) - last_space_index if len_first_word < = len_second_word then if len_frist_word < = len_third_word then min_num = len_first_word else min_num = len_third_word end if elseif len_second_word < = len_third_word then min_num = len_second_word else min_num = len_third_word end if selection.wholestory dim words_count as integer words_count = selection.words.count selection.homekey unit: =wdstory for i = 1 to words_count selection.moveright unit: =wdword, count: =1, extend: =wdextend if len(selection.text) < = sa then selection.font.size = 18 selection.font.colorindex = wdred selection.font.spacing = 3 selection.font.bold = true end if if len(selection.text) > = min_num then selection.text = " okay " end if selection.moveright unit: =wdcharacter, count: =1 next i end sub разобраться в макросепоясните каждое действиезаранее огромное !

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
Veronica123104
29.06.2022 21:14
1) (x-2.5)² =49
(x-2.5)² - 7² =0
(x-2.5-7)(x-2.5+7)=0
(x-9.5)(x+4.5)=0
x-9.5=0       x+4.5=0
x=9.5          x=-4.5
ответ: -4,5; 9,5.

2) (3-2х)²=0,04
(3-2х)² - (0,2)²=0
(3-2х-0,2)(3-2х+0,2)=0
(2,8-2х)(3,2-2х)=0
2,8-2х=0          3,2-2х=0
-2х=-2,8            -2х=-3,2
х=1,4                  х=1,6
ответ: 1,4; 1,6.

3) (6-х)²=121
(6-х)² -11²=0
(6-х-11)(6-х+11)=0
(-5-х)(17-х)=0
-5-х=0        17-х=0
х=-5            х=17
ответ: -5; 17.

4) (5х+1)²=400
(5х+1)²-20²=0
(5х+1-20)(5х+1+20)=0
(5х-19)(5х+21)=0
5х-19=0        5х+21=0
5х=19           5х=-21
х=3,8           х=-4,2
ответ: -4,2; 3,8.
0,0(0 оценок)
Ответ:
DarinaKimovsk
14.04.2021 11:48

Пусть х - производительность первого рабочего, а у - производительность второго рабочего. Тогда за 4 дня они могут выполнить совместно 4(х+у)=2/3. Количество дней за которое может выполнить работу первый рабочий 1/х, а второй 1/у. Составим и решим систему уравнений:

4(х+у)=2/3

1/х-1/у=5


х+у=1/6

(у-х)=5ху


у=1/6-х

1/6-х-х=5(1/6-х)*х

1/6-2х=5/6х-5х²

5х²-17/6х+1/6=0 |*6

30х²-17х+1=0

D=17²-4*30=169=13²

x₁=(17+13)/60=1/2 y₁=1/6-1/2<0 не подходит

x₂=(17-13)/60=1/15 у₁=1/6-1/15=3/30=1/10

Значит производительность первого работника 1/15, а второго 1/10.

1:1/15=15 дней выполнит работу первый рабочий

1:1/10=10 дней выполнит работу второй рабочий

ответ за 10 дней и за 15 дней

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