Write a program (JAVA PROGRAMMING) that inputs five integers and determines and prints the  number of negative integers entered, number of positive integers entered and the  number of zeros entered. Below is a sample output. In your program, you should test  run your program for 5 different scenarios.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 3RQ: The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500,...
icon
Related questions
Question

Write a program (JAVA PROGRAMMING)

that inputs five integers and determines and prints the 
number of negative integers entered, number of positive integers entered and the 
number of zeros entered. Below is a sample output. In your program, you should test 
run your program for 5 different scenarios.

 

Enter Five Integers:
First Integer: 1
Second Integer: -9
Third Integer: 15
Fourth Integer: 0
Fifth Integer: 10
Number of Negative Integers = 1
Number of Positive Integers = 3
Number of Zeros = 1
Transcribed Image Text:Enter Five Integers: First Integer: 1 Second Integer: -9 Third Integer: 15 Fourth Integer: 0 Fifth Integer: 10 Number of Negative Integers = 1 Number of Positive Integers = 3 Number of Zeros = 1
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT