In this assignment you will be working on the program FindNeg, it will have an array filled with different ints. Your jo

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

In this assignment you will be working on the program FindNeg, it will have an array filled with different ints. Your jo

Post by answerhappygod »

In This Assignment You Will Be Working On The Program Findneg It Will Have An Array Filled With Different Ints Your Jo 1
In This Assignment You Will Be Working On The Program Findneg It Will Have An Array Filled With Different Ints Your Jo 1 (60.32 KiB) Viewed 40 times
please read carefully, I will upvote, in JAVA:)
In this assignment you will be working on the program FindNeg, it will have an array filled with different ints. Your job is to find the total number of negatives in the array. The process to the solution is really simple. For starters, create the program with the basic outline, make sure you are saving it to the correct directory. From there define an array with the numbers as such: From there, you will need a counter for the total negatives in the array. In order to check each element of the array, be sure to have a loop that will iterate through each one; and decide if the element is a negative, then increment your counter. For example, the output of the program should be: {2, 4, 6, -1, 10, -20, 16, -3, 8} "There were <numOfNegs> negatives in the array!" Re-cap O Declare an array of integers O Walk through the array and find the negatives Print the results of the number of negatives O
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply