Exercise #2 Write a method that takes one dimensional array of type Book and returns the average price of all books. Test your method by reading data for number of Books and printing the. average. Exercise #3 Write a method that takes one dimensional array of type Book and creates and returns a copy of the book with the highest price. Test your method by reading data for a number of Books and printing the information of the copy of the highest priced book.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 1CP
icon
Related questions
Question
100%

computer programming 

Exercise #2
Write a method that takes one dimensional array of type Book and returns the average price of all books. Test
your method by reading data for number of Books and printing the average.
Exercise #3
Write a method that takes one dimensional array of type Book and creates and returns a copy of the book with
the highest price. Test your method by reading data for a number of Books and printing the information of the
copy of the highest priced book.
Transcribed Image Text:Exercise #2 Write a method that takes one dimensional array of type Book and returns the average price of all books. Test your method by reading data for number of Books and printing the average. Exercise #3 Write a method that takes one dimensional array of type Book and creates and returns a copy of the book with the highest price. Test your method by reading data for a number of Books and printing the information of the copy of the highest priced book.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Introduction to computer system
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,