Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java scripts The organizers of the annual Girl Guide cookie sale event want to raise the stakes on the number of cookies sold and

In java scripts
image text in transcribed
image text in transcribed
image text in transcribed
The organizers of the annual Girl Guide cookie sale event want to raise the stakes on the number of cookies sold and are offering cool prizes to those guides who go above and beyond in their sales efforts. The organizers want a program to print the guide list and their prizes. Your solution should demonstrate an understanding of how to apply list/loop concepts in a program that should: - Have a flowchart that clearly shows all the paths of execution that will exist within your designed solution to this problem. - Ask the user how many guides sold cookies in the current event, - For each numbered guide up to the user-entered count of guides, allow the user to enter a name and the number of boxes of cookies that person sold. - Calculate and output a list of all guide names, - Display the average sales, and the prize that each guide won, - The highest selling guide gets a trip to the Girl Guide Jamboree, any guides selling above average get a badge, and any guides selling at least one box get to split the remaining cookies, with guides selling no boxes shut out of all prizes (as they should be). (Hint: Some potential solution ideas: Research parallel arrays or two-dimensional lists) Your solution must contain examples demonstrating your understanding of appropriate use of functions and core assignment concepts (loops and lists). EXAMPLES \& TESTING In the section below you will be presented with at least one screenshot of a successful execution of a sample. solution to the program, which should help demonstrate how your input/output on the program should work. In addition to the sample values used in the screenshot(s), additional testing values are given in a chart along with the output values that they should produce. You can expect your instructor to grade your assignment by using all of these listed input values, but additional values may also be used. In other words, you should thoroughly test your code before submitting! Enter the number of guides selling cookies: 5 Enter the name of guide \#1: Jane Enter the number of boxes sold by Jane: 5 Enter the name of guide \#2: Joy Enter the number of boxes sold by Joy: Enter the name of guide \#3: Sarah Enter the number of boxes sold by Sarah: 14 Enter the name of guide \#4: Inez Enter the number of boxes sold by Inez: 17 Enter the name of guide \#5: Rae Enter the number of boxes sold by Rae: 11 The average number of boxes sold by each guide was 9.4 Guide Prizes Won: \begin{tabular}{ll} \hline Jane & - Left over cookies \\ Joy & - Super Seller Badge \\ Sarah & - Trip to Girl Guide Jamboree in Aruba! \\ Inez & - Super Seller Badge \\ Rae & \end{tabular} Program 3-Girl Guide Cookie Sell-off The oreanizers of the annual Girl Guide cookie sale event want to raise the stakes on the rumber of cookies sold and are offering cool prires to those guldes who go above and beyond in their sales efforts. The organiters want a prograrn to print the guide list and their prites. Your solution should demonstrate an understanding of how to apply list/locp concepts in a arogram that should: * Haye a fowchart that clearly shows all the paths of execution that wilf exest within your designed solution to this problem. Ack the user how many guldes sold cockies in the current event, - For each numbered guide up to the user-entered count of zuides, allow the user to enter a name and the number of boxes of coolies that person sold. Caiculate and output a list of all gulde names. Display the average sales, and the prize that each cuide won, - The highest selling guide gets a trip to the Ciri Gulde Ja mborce, any guldes stiling above average get a badge, and any guldes selling at least one box get to split the remaining cooties, with guldes selling no bexes shut out of all prites fas they should be). (Tint: Some potential solution ideos: Reserch parale/ arroys or two-dimensional iests) Your solution must contain examples demonstrating your understand ing of appropriate use of functions and core assignonent concepts (loops and lists). EXAMPLES \& TESTING in the section below you will be presented with at least one screenghot of a successful execution of a sample solution to the program, which should help demonstrate how your inpot/output on the program should work. in addition to the sample values used in the sereenshot(s), additionial testing values are given in a chart along with the output values that they should produce. You can expect your instructor to grade your assignment by using all of these listed input values, but additional values may atio be used, in other words, you should theroughly test your code before submitting! SAMPLE OUTPUT Enter the number of suiden seltsmg coskleb s checer tio non of guliae eir spost foler the numer of bokes wold by Jonte: 5 tater the nete at guide pil dor Cater the nuterer of baiki self oy soyi a tater the nese of ouice an: Sarah thter the number of boxes setd ty saraty is? tater the naes of oulde car iner Enter the mineer of beace sold ay luen 13 Enter the nase of pulae ofi the Eilcer the nuaber of take as ate ty mart 11 The anerape subber of bart inle by eath putlee vat 2.4 Moore testing values & expected rewilts on ned page

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions