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.
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,...
Related questions
Question
Write a program (JAVA
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F600d901b-3a9c-406d-8f79-73feba69cfdc%2F4c10312f-2391-4cd6-b3ed-7e52852af092%2Fslxbvxk_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT