The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 431 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Modify your implemented classes to include the overridden method, computeSales(), that computes the current sales in each of the following categories:
Intermediate-level Java programming should be demonstrated in your application:
Submit the following:
Declare variables
Input account ID
Input supplies sold
If supplies sold >= 0.0
suppliesSold = input
Else
Print Supplies sold must be >= 0.0
Input books sold
If books sold >= 0.0
booksSold = input
Else
Print Books sold must be >= 0.0
Input apparel sold
If apparel sold >= 0.0
apparelSold = input
Else
Print Apparel sold must be >= 0.0
suppliesTotal = suppliesSold + booksSold + apparelSold
Input hours worked
If hours >= 0.0
hoursNumber = input
Else
Print Hours worked must be >= 0.0
Input hourly rate
servicesTotal = hoursNumber * hoursRate
Input pounds of paper sold
If paper sold >= 0.0
paperSold = input
Else
Print Paper sold must be >= 0.0
Input price per pound of paper sold
paperTotal = poundsSold * pricePerPound
Print The current sales balance of account number + accountID + is:
Print Supplies: + suppliesTotal
Print Services: + servicesTotal
Print Paper: + paperTotal
System Exit
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll