Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this question im have some difficulty can i get some help ill show you what i did and i cant figure wat im doing wrong

this question im have some difficulty can i get some help ill show you what i did and i cant figure wat im doing wrong or if i am doing wrong.

Program71.java

Write a program with a method that takes an array of 24 random integers as its only argument. The method should print the array elements in six columns, each six characters wide and return the mean (average) of the array. The main method should create the array, pass it to the method, and display the mean accurate to one decimal place. The random integers must be between 40 and 60, inclusive. Sample Output image text in transcribed

this is my program on the bottom

image text in transcribed

63 93 Here is the random array... 65 74 86 54 90 78 70 64 98 92 62 63 60 68 55 75 79 49 48 80 The mean of the array is 71.4 59 89 public class Program7_1_11 { public static void main(String[] args) { int [] nums = new int[24]; for(int i = 40; i

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

Introduction To Database And Knowledge Base Systems

Authors: S Krishna

1st Edition

9810206208, 978-9810206208

Students also viewed these Databases questions