
Ученик в первый день выучил 5 английских слов. В каждый следующий день он выучивал на 2 слова
больше, чем в предыдушный. Сколько английских слов выучит ученик в 10-й день занятий? Составить алгоритм и написать программу. . Изменить предыдущую задачу и определить, через И СТОЛЬКО дней ученик будет знать 250 английских слов. Блок схему и код пожалуйста очень срочно

Ответы на вопрос

Ответ:
var i,p,s:integer;
begin
i:=1; p:=5; s:=p; repeat i:=i+1; p:=p+2; s:=s+p until s>=250; writeln(i)
end.
Объяснение:



To solve the first problem, we need to find the total number of English words the student will learn in 10 days. The student learns 5 words on the first day and then learns 2 more words each subsequent day. We can solve this problem by using a simple algorithm and writing a program to calculate the result.
Algorithm:
1. Initialize a variable `total_words` to 0. 2. Initialize a variable `words_per_day` to 5. 3. Repeat the following steps for each day from 1 to 10: - Add `words_per_day` to `total_words`. - Increment `words_per_day` by 2. 4. Print the value of `total_words`.Program:
Here's a Python program that implements the algorithm:```python total_words = 0 words_per_day = 5
for day in range(1, 11): total_words += words_per_day words_per_day += 2
print("The student will learn", total_words, "English words in 10 days.") ```
The program will output the total number of English words the student will learn in 10 days.
Now, let's modify the previous problem to determine how many days it will take for the student to know 250 English words.
Algorithm:
1. Initialize a variable `total_words` to 0. 2. Initialize a variable `words_per_day` to 5. 3. Initialize a variable `days` to 0. 4. Repeat the following steps until `total_words` is greater than or equal to 250: - Add `words_per_day` to `total_words`. - Increment `words_per_day` by 2. - Increment `days` by 1. 5. Print the value of `days`.Program:
Here's a Python program that implements the modified algorithm:```python total_words = 0 words_per_day = 5 days = 0
while total_words < 250: total_words += words_per_day words_per_day += 2 days += 1
print("The student will know 250 English words after", days, "days.") ```
The program will output the number of days it will take for the student to know 250 English words.
I hope this helps! Let me know if you have any further questions.


Похожие вопросы
Топ вопросов за вчера в категории Информатика
Последние заданные вопросы в категории Информатика
-
Математика
-
Литература
-
Алгебра
-
Русский язык
-
Геометрия
-
Английский язык
-
Химия
-
Физика
-
Биология
-
Другие предметы
-
История
-
Обществознание
-
Окружающий мир
-
География
-
Українська мова
-
Информатика
-
Українська література
-
Қазақ тiлi
-
Экономика
-
Музыка
-
Право
-
Беларуская мова
-
Французский язык
-
Немецкий язык
-
МХК
-
ОБЖ
-
Психология
-
Физкультура и спорт
-
Астрономия
-
Кыргыз тили
-
Оʻzbek tili