Предмет: Информатика, автор: kerimhan2011

Каждый стажёр мог выбрать любое число предметов для изучения. По каждому предмету он мог набрать от 0 до 50 баллов.
Программа должна:
1. Запрашивать имя студента и число предметов.
2. Запрашивать число баллов по каждому предмету и печатать общую сумму баллов:
«Итоговый счет: 3. По сумме баллов опеределять тип грамоты
о прохождении стажировки: - баллов больше 80 - «Наградить дипломом»;
- баллов больше 50 и меньше или равно 80 - «Наградить похвальной грамотой.»; остальные случаи - <<Выдать грамоту об участии.>>.
Подсчёт баллов и определение грамоты определи как функции. Оформи всё как на картинке.​
ЯЗЫК ПАЙТОН!

Приложения:

nadya74aydan: Ха ха, с алгоритмики списываешь!

Ответы

Автор ответа: maxwishtiger
1

Ответ:

while True:

 count = 0

 name = input('Имя:')

 if name == 'стоп':

   break

 n = int(input('Число изученных предметов:'))

 for i in range(n):

   k = int(input('Введите балл'))

   count += k

 if count > 80:

   print('Наградить дипломом')

 elif 50 < count <= 80:

   print('Наградить похвальной грамотой.')

 else:

   print('Выдать грамоту об участии')

Объяснение:

держи, малой


kerimhan2011: конечно оно похоже но не правильно
Похожие вопросы
Предмет: Английский язык, автор: Arman2929
Fill in the blanks with a modal verb. There is more than one
1.- .......
I borrow your rubber, please? Yes, of course you
feel very nervous.
2.-My friend is getting married today, she...
3.-Next year I think you...................to translate any report into your own language.!
4.-Don't touch that wire because it
....... be dangerous.
5.-I.................swim quite well when I was five years old.
6.- Sonia
7.- You.........
practise so much if she wants to take part in the marathon.
cook those vegetables because they have already cooked.
......go to the studio for an audition.
*************
8.-The girl
9.- That diamond bracelet is very elegant but it
10.-If you are interested in human life, you
11.-He is applying for a job at the university. He......
12.-That house was really important in her life so she
13.-I'm not sure but perhaps Roberto
14.-You....
15.-Look it has stopped raining. We.....
16.-The old woman
17.-Sheila didn't go to work yesterday. She
18.-Last Christmas party was fabulous, you
leave for Australia soon.
have shouted at Thomas yesterday. He is very sorry.
go for a walk in the country.
fall on the street and break a leg. She............
have cost a fortune.
study biology.
....... get it.
*******
.............
be ill in bed.
sell it.
19.- I've lost my keys. I
20.-It's prohibited to go into that building............................go in.
21.-Patricia is driving a new car. She
have bought it.
22.-My dictionary isn't in my schoolbag. I
23.-The boy
24.-Look! The lights are off so the library
................ have dropped them when I went shopping.
have come with me.
carry a stick.
I have left it at home.
help his parents in the farm during the summer holidays.
be closed.