Search This Blog

Monday, December 19

Homework Assignment 2

Alright, so time for the next Java homework assignment! The homework is posted on the ELET 4300 website.

See a preview of the assignment below. You will have one approximately one week to complete the assignment before I post my answer. Good luck and have fun!!!!


Following is an example of the data file content:
Manufacturer,January,February,March,April,May,June,July,August,September,October,November,December
Acura,302,987,961,377,953,909,758,31,288,319,823,463
Audi,164,423,785,532,277,151,926,876,31,949,439,812
BMW,9,290,302,60,715,898,303,490,367,665,183,790


The output of the program will be:

************************************************
Manufacturer: Acura
Total Yearly Sales: 7171
Average Monthly Sales: 597
February has the Highest Sales: 987
************************************************

************************************************
Manufacturer: Audi
Total Yearly Sales: 6365
Average Monthly Sales: 530
October has the Highest Sales: 949
************************************************

************************************************
Manufacturer: BMW
Total Yearly Sales: 5072
Average Monthly Sales: 422
June has the Highest Sales: 898
************************************************


Happy Coding!

No comments:

Post a Comment