Smirnovav1982422
?>

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 разобраться в макросепоясните каждое действиезаранее огромное !

Алгебра

Ответы

dima0218687
Скорость 1 поезда x км/ч, 2 поезда x +10 км/ч. расстояние ab=s они встретились на расстоянии 28 км от середины. таким образом, 1 поезд проехал s/2 - 28 км, а 2 поезд s/2 + 28 км за одинаковое время. t1 = (s/2 - 28)/x = (s/2 + 28)/(x+10) если бы 1 поезд выехал на 45 мин = 3/4 часа раньше 2 поезда, то он успел бы проехать 3x/4 км, в то время как 2 поезд только выехал. в таком случае они встретились бы посередине. t2 = (s/2 - 3x/4)/x = (s/2)/(x+10) можно составить систему из этих уравнений { (s/2 - 28)/x = (s/2 + 28)/(x+10) { (s/2 - 3x/4)/x = (s/2)/(x+10) решение: { (s-56)(x+10)/(2x(x+10)) = (s+56)*x/(2x(x+10)) { (2s-3x)(x+10)/(4x(x+10)) = (2sx)/(4x(x+10)) { sx  -  56x  +  10s  -  560 = sx  +  56x { 2sx  -  3x^2  +  20s  -  30x = 2sx { 10s = 112x + 560 { -3x^2  +  20s  -  30x = 0 { s = 11,2x + 56 { -3x^2 + 20(11,2x + 56) - 30x = 0 3x^2 - 224x + 30x - 1120 = 0 3x^2 - 194x - 1120 = 0 x1 < 0 x2  = 70 итого, x = 70  - скорость 1 поезда, x+10 = 80  - скорость 2 поезда, s = 11,2x + 56 = 11,2*70 + 56 = 840 км.
krisrespect
0,2х - 4 = 4           0,2х - 4 = - 12           0,2х - 4 = 0       0,2х - 4 = 100 0,2х = 4 + 4           0,2х =  - 12 + 4          0,2х = 4               0,2х = 100 + 4     0,2х = 8                 0,2х = - 8                   х = 4 : 0,2          0,2х = 104 х = 8 : 0,2             х = - 8 : 0,2               х = 20               х = 104 : 0,2 х = 40                   х = - 40                     (х=20; у=0)       х = 520  (х=40; у=4)           (х=-40; у=-12)                                       (х=520; у=100)

Ответить на вопрос

Поделитесь своими знаниями, ответьте на вопрос:

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 разобраться в макросепоясните каждое действиезаранее огромное !
Ваше имя (никнейм)*
Email*
Комментарий*

Популярные вопросы в разделе

dima-a
grekova5
Татьяна902
YekaterinaAbinskov
bristolhouse20151001
akuznecov8989
SEMENOV25352
Вершинина1161
Александрович Андреевна
Спиридонова
родичева1812
Rakitin
спец387
Volkovapavel
ustinov434