Welcome to Assignments Writing

Your Trusted Partner in Term Paper Writing

At Assignments Writing, we’re a team of passionate educators and skilled writers committed to supporting students in their academic journey.

Create a Program Code Pseudocode Task

Create a Program Code Pseudocode Task

ANSWER

Here’s a pseudocode program that allows the troop leader to enter the number of boxes of cookies sold by each scout and calculates the total number of boxes sold, as well as the mean and median values:

plaintext
1. Initialize an empty list called "cookie_sales" to store the number of boxes sold by each scout.
2. Initialize a variable called "total_boxes_sold" to 0 to keep track of the total number of boxes sold.
3. Initialize a variable called "mean" to 0 to store the mean value.
4. Initialize a variable called "median" to 0 to store the median value.

5. For each scout in Girl Scout Troop 815:
a. Ask the troop leader to input the number of boxes of cookies sold by the scout and store it in a variable "boxes_sold".
b. Append "boxes_sold" to the "cookie_sales" list.
c. Add "boxes_sold" to the "total_boxes_sold".

6. Sort the "cookie_sales" list in ascending order.

7. Calculate the mean:
a. Divide "total_boxes_sold" by the number of scouts (which is 18) and store the result in the "mean" variable.

8. Calculate the median:
a. If the number of scouts (18) is even:
i. Find the two middle values in the sorted "cookie_sales" list (at indices 8 and 9).
ii. Calculate the average of these two middle values and store it in the "median" variable.
b. If the number of scouts (18) is odd:
i. Find the middle value in the sorted "cookie_sales" list (at index 9) and store it in the "median" variable.

9. Display the following information:
a. Total number of boxes sold: "total_boxes_sold".
b. Mean value: "mean".
c. Median value: "median".

This pseudocode outlines the logic for your program. You can implement it in a programming language of your choice by translating these steps into actual code.

Create a Program Code Pseudocode Task

QUESTION

Description

 

 

Girl Scout Troop 815 has 18 members. Write a program 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 values. Pseudocode only

Place Your Order Here

Our Service Charter


1. Professional & Expert Writers: We only hire the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of master’s and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. We are known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: We have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Format & Features

Our Advantages

How It Works

1. Fill Order Form
2. Make payment
3. Writing process
4. Download paper

Fill in the order form and submit all your files, including instructions, rubrics, and other information given to you by your instructor.

Once you complete filling the forms, complete your payment. We will get the order and assign it to a writer.

When your order is completed, it’s assigned to an editor for approval. The editor approves the order.

Once approved, we will upload the order to your account for you to download.  You can rate your writer or give your customer review.

What Clients Said

{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Mercy M
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Jane L
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

4.5
Rayan M

LET US DELIVER YOUR ACADEMIC PAPER ON TIME!

We are a freelance academic writing company geared towards provision of high quality academic papers to students worldwide.

Open chat
1
Scan the code
Hello
Can we help you?