Computers and Technology
Computers and Technology, 26.10.2019 22:43, marquez8

Write a program in phyton that 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.)

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:30, klk597703
Aprovides legal protection for something an individual has created
Answers: 1
image
Computers and Technology, 22.06.2019 09:30, caldonjoshhsms2061
What are the steps involved in accepting all the changes in a document? arrange these in order click edit. click accept or reject. click changes. click accept all.
Answers: 1
image
Computers and Technology, 22.06.2019 19:20, sindy35111
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
image
Computers and Technology, 23.06.2019 00:30, amy20021
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies. pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
Do you know the correct answer?
Write a program in phyton that reads integers, finds the largest of them, and counts its occurrences...

Questions in other subjects:

Konu
Mathematics, 11.01.2021 19:00
Konu
Mathematics, 11.01.2021 19:00
Konu
History, 11.01.2021 19:00
Konu
Mathematics, 11.01.2021 19:00