subject
Computers and Technology, 06.10.2019 04:30 kcruz87

Write a python program that asks user for integer input between 0-20 (both included) five times. every time user enters a number, program adds that number to the previously entered number and also multiply that number with the previous one and print these two outputs. if user enters a number that is outside of the specified range, the program should end with the error message ("end: invalid number"). if the user enters any of the following numbers: 5, 10, or 15, the program will not add or multiply that number with the previous one but continue to ask for user input. your program at the end should calculate the average of all 5 correct numbers that satisfy all the requirements specified above followed by a message that "program ended". the format of your output should look like: (25 points)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:20
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
question
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the “coordinates.json” file), in order of closest-to-farthest from the origin.
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
question
Computers and Technology, 25.06.2019 03:30
Which task should happen during the planning stage of a project
Answers: 2
You know the right answer?
Write a python program that asks user for integer input between 0-20 (both included) five times. eve...
Questions
Questions on the website: 13722363