Knowee
Questions
Features
Study Tools

Write pseudo code for this problem. There are weather stations all over Fort Collins. The information is used to help create better simulations to predict the weather. Many of these are monitored by volunteers, most are very good, but everyone makes a mistake once in a while.Write pseudo code that will take in precipitation from the 250 stations. The first five reports are from the paid weather reporters; these people are assumed to not make mistakes. Find the average for these five people first.If a volunteer is more than 30% greater or smaller than the average of the professionals, their number is thrown out because it is probably a mistake. Find the averages for the city, which is the average of all good reports.Trace it to make sure it works.

Question

Write pseudo code for this problem. There are weather stations all over Fort Collins. The information is used to help create better simulations to predict the weather. Many of these are monitored by volunteers, most are very good, but everyone makes a mistake once in a while.Write pseudo code that will take in precipitation from the 250 stations. The first five reports are from the paid weather reporters; these people are assumed to not make mistakes. Find the average for these five people first.If a volunteer is more than 30% greater or smaller than the average of the professionals, their number is thrown out because it is probably a mistake. Find the averages for the city, which is the average of all good reports.Trace it to make sure it works.

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

Pseudo code:

  1. Initialize an empty list to store the precipitation data from all stations.
  2. For each station from 1 to 250:
    • Take in precipitation data and add it to the list.
  3. Initialize a variable to store the sum of the first five reports (from paid reporters).
  4. For each report from 1 to 5:
    • Add the report to the sum.
  5. Calculate the average of the first five reports by dividing the sum by 5.
  6. Initialize an empty list to store the good reports (those within 30% of the professional average).
  7. For each report from 6 to 250:
    • If the report is not more than 30% greater or smaller than the professional average:
      • Add the report to the list of good reports.
  8. Calculate the city average by summing all good reports and dividing by the number of good reports.
  9. Print the city average.

To trace this pseudo code, you would follow each step with a set of sample data. For example, if the first five reports were [10, 12, 11, 13, 12], the professional average would be 11.6. Then, if the next report was 8, it would be considered a good report because it is not more than 30% smaller than the professional average. This process would continue for all 250 reports, and the city average would be calculated from all good reports.

This problem has been solved

Similar Questions

The quantity of rainfall received on five consecutive days during the monsoon season of 2023 at six different weather stations along the Western Ghats was measured. The table given below shows the partial information about the average of the total rainfall (in cm) received for each pair of weather stations during these five days.Question No 40.What was the total rainfall (in cm) received by all the six weather stations on day 5?

Assume that there are 15 locations and assume that you have generated 365 random numbers for temperature values for each location.These values are stored in a 2-D array. Write a Java program to calculate the average annual temperature for each location.     Hint : generate random values between ‐10°c and 35°c using Math.random() method

Average Annual Precipitation (in millimeters)YEARSPRINGSUMMERFALLWINTERAVERAGE2010300450350200325201132048037021034520123104603601903302013330500380220357.52014345450410245362.52015330480380220352.5This table displays the average annual precipitation in a city near the Gulf of Mexico. Climate researcher Dr. Taylor Johnson examined precipitation trends in this city to understand the overall climate patterns. One key finding is that the general precipitation pattern might not fully capture variations in specific seasons, as in the case of the city in question, where the average precipitation pattern _______14Mark for ReviewCross out answer choices you think are wrong.ABCWhich choice most effectively uses data from the table to illustrate the claim?Aaligned closely with precipitation in spring but differed significantly from summer.Bwas substantially lower than the precipitation during the fall each year from 2010 to 2015.Creached its highest level between 2010 and 2015, in the same season that precipitation in winter and spring reached their lowest levels.Dwas substantially lower than precipitation in winter 2010 but substantially higher than precipitation in winter 2015.

Write a description of a crowded place before and during a sudden burst of heavy rain

Daily Temperature AnalysisYou are a meteorologist who needs to analyze temperature data for the last 10 days. Write a program that reads the temperatures into an array and finds the average temperature over these 10 days.Constraints:NAExample:Sample Input:30323129283335343231Sample Output:31.5Explanation:The average temperature over 10 days is 31.5

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.