Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA 14.6 Prog6: find row and col Avg (2Darray) Write a program that prompts for an integer N , and allows the user to N*N

JAVA

14.6 Prog6: find row and col Avg (2Darray)

Write a program that prompts for an integer N , and allows the user to N*N real numbers. The program then calculates and output the average for each row and column.

(1) Prompt the user to input integer N, and N*N real numbers, then display the entered numbers (4 points).

Enter an integer: You entered: 3 Enter 9 real number (one row at time): You entered: 85.3 74.4 98.5 93.1 87.4 88.9 9.55 18.2 27.6 

(2) Calculate and output row averages (3 pts)

The row average are: 86.1 89.8 18.45 

(3) Calculate and output column averages (3 pts)

The column average are: 65.65 60.0 71.6666667

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

e. What are notable achievements of the group?

Answered: 1 week ago