subject

Python Exercise 5 grade 10 1. Develop a program that asks user to enter a list of integers, using zero as a signal of termination.
The program should calculate the number times that consecutive numbers are equal.
Ex: The following input
3
4
4
6
7
7
7
8
9
9
0
Should give you an answer of 4

2. Write a program that finds the largest in a series of numbers entered by the user. The program
must prompt the user to enter numbers one by one. When the user enters 0 or a negative
number, the program must display the largest nonnegative number entered:
Enter a number: 60
Enter a number: 38.3
Enter a number: 4.89
Enter a number: 100.62
Enter a number: 75.2295
Enter a number: 0
The largest number entered was 100.62
Notice that the numbers aren’t necessarily integers

Name: Python Exercise 5
3. Write a program that displays a number with its digit reversed. Generalize the program so that
the number can be one, two, or three digits. The program stops when users enters 0
Enter a number: 123
The reversed digit is: 321
Enter a number: 1
The reversed digit is: 1
Enter a number: 34
The reversed digit is: 43
Enter a number: 0

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
How can you know if the person or organization providing the information has the credentials and knowledge to speak on this topic? one clue is the type of web site it is--the domain name ".org" tells you that this site is run by a nonprofit organization.
Answers: 2
question
Computers and Technology, 22.06.2019 13:30
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
question
Computers and Technology, 22.06.2019 16:30
Technician a says that a dry sump system uses no oil storage sump under the engine. technician b says that a wet sump system uses no oil storage sump under the engine. who is correct?
Answers: 3
question
Computers and Technology, 23.06.2019 09:20
How to print: number is equal to: 1 and it is odd number number is equal to: 2 and it is even number number is equal to: 3 and it is odd number number is equal to: 4 and it is even number in the console using java using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens
Answers: 3
You know the right answer?
Python Exercise 5 grade 10 1. Develop a program that asks user to enter a list of integers, using z...
Questions
question
Mathematics, 14.12.2020 18:20
question
Mathematics, 14.12.2020 18:20
Questions on the website: 13722363