Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

Students also viewed these Databases questions

Question

6. How would you design your ideal position?

Answered: 1 week ago

Question

2. How do they influence my actions?

Answered: 1 week ago