Q2: Write a C# program that read an array B(5×5) of double numbers, and do the following: 1- Print the summation of prime numbers in the overall array. 2- Print the Average of even numbers in the odd column and odd numbers in the even row. 3- Replace the second column with the last column and print the new array row by row.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question
Q2: Write a C# program that read an array B(5×5) of double numbers, and do the
following:
1- Print the summation of prime numbers in the overall array.
2- Print the Average of even numbers in the odd column and odd numbers in the even row.
3- Replace the second column with the last column and print the new array row by row.
‒‒‒‒‒‒‒‒
Transcribed Image Text:Q2: Write a C# program that read an array B(5×5) of double numbers, and do the following: 1- Print the summation of prime numbers in the overall array. 2- Print the Average of even numbers in the odd column and odd numbers in the even row. 3- Replace the second column with the last column and print the new array row by row. ‒‒‒‒‒‒‒‒
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT