Sale!

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.

Original price was: $15.00.Current price is: $10.00.

-33%
(1 customer review)

Free worldwide shipping on all orders over $50

  • 30 days easy returns
  • Order yours before 2.30pm for same day dispatch
Guaranteed Safe Checkout

Write a program that will display the how many positive and negative integers entered by users
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.
$15.00 Original price was: $15.00.$10.00Current price is: $10.00.

Project 5 – Repetition Structure

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