Question: I'm almost done with my first program, i just have one more question to go but I'm a bit stuck. My last question asks have
I'm almost done with my first program, i just have one more question to go but I'm a bit stuck.
My last question asks have your program count how many times the formula is positive, how many times it is negative and how many times it is zero. Print these three values. I can't seem to group them on the bottom of my program. I just want to have 3 lines saying "x many" is positive, "x many is negative". I'm pretty sure my formatting is throwing it off because I can get it to count how many positives negatives but it'll print after every line in the for loop. Help me out please.
i Hw1.java public class Hw1 { public static void main(String[] args) { System.out.println("This is the output of my first program"); double x,y; int counteri, counter2, counter3; System.out.println("X Positive/Negative/Zero" ); for (x=-3;x0) System.out.println(" Positive"); if(y==0) System.out.println(" Zero"); if(y ) System.out.println(" Negative"); Run: Hw1 x T 1 41 JL This is the output of my first program x Positive/Negative/Zero -3.0 1.5393762701 Positive -2.5 2.4107815535 Positive -2.0 2.5458365434 Positive -1.5 1.8215180565 Positive -1.0 0.0000000000 Zero -0.5 -3.3816307509 Negative -8.7500000000 Negative 0.5 -14.4453193486 Negative 1.0 -18.0000000000 Negative 1.5 -17.9605302027 Negative 2.0 -7.1652660075 Negative 2.5 0.0000000000 Zero 3.0 6.2714808606 Positive Process finished with exit code 6 0 Windows Defender configuration updated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

I'm almost done with my first program, i just have one more question to go but I'm a bit stuck.