For each girl scout after reading in the sales invoke the


Write a program that uses GirlScout objects to track the sales of 2 Girl Scouts. Your program should do the following:

·Read in the names of the two girl scouts and construct an object for each (use two different text fields).

·Prompt for and read in the number of boxes sold by each girl scout (use two more text fields).

For each girl scout, after reading in the sales, invoke the update Boxes Sold and update Sales method to update the total sales by that girl scout.

After reading the data and performing your calculations, you should print a two different labels that print the name and total sales for each girl scout (you will implicitly use the toString() method here).

 

Solution Preview :

Prepared by a verified Expert
Computer Graphics: For each girl scout after reading in the sales invoke the
Reference No:- TGS0667948

Now Priced at $40 (50% Discount)

Recommended (96%)

Rated (4.8/5)