Write a program that reads an unspecified number of integers. Keep
track
of how many positive and how many negative numbers are entered. The
input
terminates when the user enters 0. Display the count and the average of
the
positive numbers and the count and the average of the negative numbers.
Print the averages as floating point numbers. Use Scanner to get input.
nammi_aqua
0
Newbie Poster
Recommended Answers
Jump to PostDYOH (Do Your Own Homework).
If you have a specific question, about a specific part of code that you are having problems wih, then please, ask. BUT, we are NOT going to do YOUR homework for you.
All 3 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
server_crash
64
Postaholic
jwenting
1,889
duckman
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.