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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
question
Computers and Technology, 24.06.2019 16:30
You may see the term faq on websites which stands for frequently asked questions this is an example of which type of mnemonic? a) poem b) acronym c) acrostic d) abbreviation ken has dipped many dark chocolate marshmallows (which you remember the metric system distance units in decreasing order: kilometers, hectometer, decameter, centimeter, millimeter) is an example of which type of mnemonic? a) poem b) acronym c) acrostic d) abbreviation !
Answers: 1
You know the right answer?
Write a program in phytonthat reads integers, finds the largest of them, and counts its occurrences....
Questions
question
History, 28.06.2019 17:00