Program a Java Program that can be used to calculate the average weekly and monthly grocery bill
Fantastic news! We've Found the answer you've been seeking!
Question:
Program a Java Program that can be used to calculate the average weekly and monthly grocery bill for a family of four:
- Prompt the user for the coupon amount as a decimal (example, .10).
- Ensure the value is set to 10% if the value exceeds 100% or is less than or equal to zero.
- Prompt the user for 2-4 weeks of grocery bills.
- Calculate the monthly and weekly average for groceries.
- Display monthly total and weekly average without the coupon.
- Display monthly total and weekly average with the coupon.
Related Book For
Fundamentals Of Taxation 2015
ISBN: 9781259293092
8th Edition
Authors: Ana Cruz, Michael Deschamps, Frederick Niswander, Debra Prendergast, Dan Schisler, Jinhee Trone
Posted Date: