Girl Scout Troop 815 has 25 members. Write a program (pseudocode and diagram) in
ID: 3693827 • Letter: G
Question
Girl Scout Troop 815 has 25 members. Write a program (pseudocode and diagram) in which the troop leader can enter the number of boxes of cookies sold by each scout, and output the total number of boxes sold and the mean and median value.
Note: I am in programming logic and design (intro to programming). I don't know any programming languages. It is a basic intro course. Please include the actual diagrams so that I can see the correct layout and include proper spacing in the pseudocode, PLEASE!!
Explanation / Answer
PseudoCode:
0. number=0,arr[];
1. for count from 1 to 25
2. "Tell me the number of boxes scout" + count+ "sold"
3. arr[count]=your_input
4. number=number+your_input
5. continue:
5. "Total Number of Boxes sold: "+number
6. "Mean of the total " + number/25;
7. "Median of the total: "
8. sort(arr) //Have to sort your array
9. Since our total number is odd(25), , the median is the middle number. so arr[12].
I am not sure of what Diagram you need. Please specify details of that :)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.