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: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 4 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Method createInvoice generates a String that is eventually printed in a JOptionPane dialog box.Â
createInvoice calls calculateCharge. If the customer is type STUDENT, the base cost is $25.
If the customer is type FACULTY, the base cost is $50. If the customer
is type GOVERNMENT, the base cost is $35.
calculateCharge charges $99 if the course type is PROGRAMMING or MATHEMATICS; $59 if the
course type is PHOTOGRAPHY, MUSIC, or PAINTING; $39 if the course type is MISC. If the customer is
type STUDENT each online course is an additional $20. If the customer type is
FACULTY each online course is an additional $25 and each in class course is an additional $5.Â
If the customer type is GOVERNMENT, there is no extra charge.
ArrayList courseList keeps a list of all courses taken/enrolled in by the customer.Â
Write test case, CustomerTest, that creates three customers with the data given. The customers are
kept in ArrayList, customerList. Then, using an enhanced for loop, polymorphically walk through
the customerList and create the invoice for each customer. Print all customer information to the
command prompt. Print the customer name, customer account number and total charges for each
customer in a dialog box. All customers will show in one dialog box as shown
Attachments:
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly