Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write the java program with these steps Part 1: Read the following questions and write your best answers. Q1. Write, compile, and run a Java
write the java program with these steps
Part 1: Read the following questions and write your best answers. Q1. Write, compile, and run a Java program that fulrills the following tasks: a) Create a data type I-dimentional array to hold 30 elements. b) Ask the user to fill the created array. (I Mark) c) Print the array elements. (I Mark) d) Create a method print Fun that receives a double array (1 Mark) and returns the sum of all (negative and odd) elements. (1 Mark) e) Invoke the print fun method and print the result. (1 Mark) f) Create another method print Fun that prints the mean. (2 Marks) Hiats: The mean is the same as the average value of a series of numbers and is found using a calculation: Add up all of the numbers and divide by the number of numbers in the series. The mean is calculated as follows: mean =nixi, where n is numbers count Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started