/**
Program name: MonthlySales.java
Author: Dominick Saccoccio
Date: 2-19-08
Description: The program provides an end-of-the-year sales analysis for a company.
The revenue contains total sales for each month, where revenue
={ 16692, 2504, 2463, 1857, 2369, 2684, 3374, 2630, 2531, 1928, 2692, 2578}
presents the sales of January to December.
*/
public class MonthlySales
{
private final int JANUARY = 1;
private final int DECEMBER = 12;
private int [ ] REVENUE = { 0, 16692, 2504, 2463, 1857, 2369,3684, 2374, 2630, 2531, 1928, 2692, 2578 };
public int total ( ) sum= sum + i;
public int average ( )
public int hightestMonth ( )
public int monthsRevenue (int month)
public void printTable ( )
} // end of MonthlySales class
nuch1311 0 Newbie Poster
nuch1311 0 Newbie Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
bugmenot 25 Posting Whiz in Training
DangerDev 107 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.