Waived!

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.

(1 patron review)

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

View Details
Solved By Verified
Study Co-Pilot All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area.
Instant
Download

Description

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


1 review for 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.

  1. Madison Hayes

    100% Perfect code thanks

Only logged in customers who have purchased this product may leave a review.


You may also like…

Patron Details

Additional information

Your Solution

Product
Quantity
Total
Cart Subtotal $0.00
Order Total $0.00

  • Pay with your credit card.