subject

Write a program in phytonthat reads integers, finds the largest of them, and counts its occurrences. assume that the input
ends with number 0. suppose that you entered 3 5 2 5 5 5 0; the program finds that the largest number is 5 and

the occurrence count for 5 is 4. (hint: maintain two variables, max and count. the variable max stores the cur-
rent maximum number, and count stores its occurrences. initially, assign the first number to max and 1 to

count. compare each subsequent number with max. if the number is greater than max, assign it to max and reset
count to 1. if the number is equal to max, increment count by 1.)

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 20:00, shaheedbrown06
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
image
Computers and Technology, 23.06.2019 22:30, BilliePaul95
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
image
Computers and Technology, 24.06.2019 05:30, lexie2751
How do i get rid of my member ship for
Answers: 2
image
Computers and Technology, 24.06.2019 16:50, Ameilasmickle15
How many types of string types does python support?
Answers: 1
You know the right answer?
Write a program in phytonthat reads integers, finds the largest of them, and counts its occurrences....

Questions in other subjects:

Konu
English, 06.05.2021 03:40
Konu
Mathematics, 06.05.2021 03:40
Konu
Mathematics, 06.05.2021 03:40