Define the following methods for the class Ledger, as described in the previous exercise:

• getAverageSale()—returns the average value of all the sales
• getCountAbove(v)—returns the number of sales that exceeded v in value


See the code in Ledger.java.

Computer Science & Information Technology

You might also like to view...

All of the following are the major components of Outlook EXCEPT:

A) Mail B) Calendar C) Chat D) Contacts

Computer Science & Information Technology

Cipher text is encrypted text

Indicate whether the statement is true or false.

Computer Science & Information Technology

A(n) ____________ for a computer program is a set of steps that explains how to begin with known information specified in a problem statement and how to manipulate that information to arrive at a solution.?

A. ?control B. ?algorithm C. ?syntax D. ?parameter

Computer Science & Information Technology

A(n) ________ is a group of cells which have been selected at the same time.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology