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

Write a python program with appropriate comments that creates a menu-driven program that allows a user to enter five numbers (integers) and then choose an operation from one of the operations: finding the smallest, largest, sum, average, or end.

 the program should have a main function and at least five functions. the program
execution starts by calling main function that calls all other functions
 the menu and all the choices must be functions
 each function must do only one action
 provide an error message if an invalid choice is entered.
 prompt the user to enter valid number if one of the five numbers entered is not in the
valid range. the valid range is between 25 to 250 (including 25 and 250)
 the program should terminate only when the user selects end option from the menu  for every pass, the user should be prompted to enter five numbers within the valid
range

points will be deducted for programs that:
o fail to follow instructions
o lack sufficient documentation
o violate basic program design

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