Python Computer Science - Project 5 Repetition Structure
Project 5 - Repetition Structure
Please Zip Up project 5 folder and reference the project template attached below.
Write a program that will display the how many positive and negative integers entered by users. The user will use 0 to terminate the data entry.
Deliverables
- The user enters integers until 0 is entered (0 is the sentinel value).
- The program tracks the positive and negative integers
- The program displays the count of positive and negative integers with appropriate labels:
- Make sure to use main(), and few more functions
SAMPLE RUN (User entry is in RED)
User’s Entry
Enter an integer <0 will terminate the entry> 24
Enter an integer <0 will terminate the entry> 32
Enter an integer <0 will terminate the entry> -10
Enter an integer <0 will terminate the entry> -20
Enter an integer <0 will terminate the entry> 6
Enter an integer <0 will terminate the entry> 0
Results
The count of positive integers entered 3
The count of negative integers entered 2