Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Code a program called SumPositive.iava to enter 10 numbers and only total those

ID: 3672506 • Letter: C

Question

Code a program called SumPositive.iava to enter 10 numbers and only total those that are positive. Prompt the user to enter the numbers (double) and print out the total of only the positive ones. (For example, the number -1.575 would not be part of the sum.) Redesign the program and now call it SumPositive2.iava using a break, instead of a continue, that will result in the sum of the numbers being printed when either the first negative is entered OR all 10 numbers are entered. Code a program called AgeCheck.iava to have the user input name and age. Output only the names of those people from the age of 21 through and including 40 years old.

Explanation / Answer

Please find the codes below :

---------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------------------------------------------------------------

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote