Write a complete Java program to compute the cost of your annual coffee consumption. The main method calls three methods to do this: getDailyCost: requests from the user the estimated amount they spend on coffee on each day of the week, Sunday through Saturday. These values are stored in array of 7 doubles called dailyCost. The method returns this array. getAnnualCost: takes an array of doubles as a parameter (the dailyCost array) and computes the annual cost for coffee (or tea, soda, etc). Assume 52 weeks in a year. The method returns the annual cost as a double. printAnnualCost: takes a double (the annual cost) as a parameter and prints it to the command line as, for example: “Your estimated total meal plan cost is: $1500.00.”​

These values are stored in array of 7 doubles called dailyCost.





ORDER YOUR ORIGINAL PAPER

Request for a custom paper or place a new order

Assignment Solutions For You


THE BEST CUSTOM ESSAY WRITING SERVICE AT YOUR FINGERTIPS

Forget All Your Assignment & Essay Related Worries By Simply Filling Order Form