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

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

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