Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you use python. Write a program that asks the user to input positive 10 integers. Your program must validate each integer as it is

Can you use python.

image text in transcribed

Write a program that asks the user to input positive 10 integers. Your program must validate each integer as it is entered, forcing the user to give a value that is positive. (You shall not assume that the values are positive.) Once you know that a number is positive, print it as output. and then move on to the next input. After the last tenth positive number is printed, print the word 'Done". That's it! Ex: if the input is then the output should be because 8,4,0, and -1 are not positive. As in the last lab, you should avoid writing 10 input statements; try to do the entire assignment with a set of two nested while or for loops

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago