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 11:00
You receive an email from an impressive-sounding stranger, professor alexander rothschild renard iii, president of the american institute for scientific political statesmen. he urges you to vote for his presidential candidate choice. this social media red flag is known as
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 23.06.2019 22:40
22. sata3 allows for data transfer rates of 600 mb/s. explain why you would likely not be able to copy data from one hard drive to another at anywhere close to this speed. also, what could be upgraded on the computer to achieve transfer speeds closer to 600 mb/s
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
Mathematics, 25.02.2020 19:43
Questions on the website: 13722367