Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How will you program using Java? SOTYxNDgxODRa ks bar. Import bookmarks now... Girl scouts Lab (Arrays of objects) Full Program You will practice writing classes

image text in transcribed

How will you program using Java?

SOTYxNDgxODRa ks bar. Import bookmarks now... Girl scouts Lab (Arrays of objects) Full Program You will practice writing classes and then practice making arrays of objects from the class your wrote Description Each year the Gin Scouts of America sell cookies to raise money for the activities they will be involved in during the year. Mrs. Fielder is the troop leader for Troop 451 and she has asked you to write a program that will help her track the troop's cookie sales. The program needs to provide the following functionality: Add and delete scouts Enter cookies sales for each scout (by the box) Print a summary of the troop's cookie sales. This summary should include: A list of the scouts and how many boxes of each type of cookie where sold The total number of boxes sold by each scout. The total number of boxes sold by the troop. The total value of sales for the troop. ($3 a box) . . Here is a list of the types of cookies sold: Samoas Dosidos Tagalongs Ole Ole Thin Mints Aloha Chips All Abouts Trefoils Each cookie is sold by the box at a price of $3 Programming Notes Your program needs to include the following classes in your implementation: Driver - this the driver class for your program. GirlScout- this class represents a single girl scout. The class is responsible for keeping track of the girl scout's name, the number of boxes sold for each type of cookie (Hint: use an array of integers), and the total number of boxes sold. It should provide appropriate accessor and mutator methods so that the troop can interact with the scout. There are 8 types of cookies - see list above. Troop -this class represents the entire troop. It is responsible for administering the data entry of cookie sales information, tallying the results, and printing a summary report. The class should provide a menu system to aid in the data entry Sample Run Main Menu . Add Scout Delete Scout 3. Enter Cookie Sale 4. View Summary 5. Exit ake Selection:1 Add Scout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

The average cost can never be equal to the marginal cost.

Answered: 1 week ago