Question

Step 1. Choose two Datasets: Open a project on Code Studio and look through the different datasets available. Choose two that look interesting to you.

Dataset Name: _____________________________________________.

What column(s) of data will you use in your app?







Dataset Name: _____________________________________________.

What column(s) of data will you use in your app?






Step 2. Brainstorm an App: Consider the columns of data that you are using.
How will your app traverse this data?
Your app will use (circle): MAP REDUCE FILTER

Filter (most common option): use the list from one column to determine information that will be filtered from a list created by another column
Example: dogHeight filters dogNames, so only the names of small dogs are added to the filtered list
Map: Add or change each item in a list
Example: map a list of numbers pulled from a column using Math.round - now each number is rounded
Reduce: Reduce the data in a list to a single number
Example: find the smallest number in a list



Step 3: Traverse the app. Explain how you will traverse the app in more detail (give concrete examples of how you might do this):

How will you use the data?

If filtering, how will you filter the data?

If mapping, how will you map the data?

If reducing, how will you reduce the data?

Answers

Answer
G
Answered by GPT-4o mini
### Step 1: Choose two Datasets

**Dataset Name: Global CO2 Emissions Data**

**What column(s) of data will you use in your app?**
- Year
- CO2 Emissions (in Metric Tons)
- Country Name

---

**Dataset Name: Renewable Energy Production Data**

**What column(s) of data will you use in your app?**
- Year
- Energy Produced (in Gigawatt-hours)
- Country Name
- Energy Source

---

### Step 2: Brainstorm an App

**How will your app traverse this data?**
Your app will use (circle): **FILTER**

**Filter**: The app will filter CO2 emissions data to show only countries that have a renewable energy production that exceeds a certain threshold. For example, if we want to filter out countries that have reduced their CO2 emissions while also producing significant amounts of renewable energy, we could select only those with high renewable energy production.

---

### Step 3: Traverse the app

**How will you use the data?**

1. **If filtering, how will you filter the data?**
- I will create a list of countries from the "Renewable Energy Production Data" that have produced more than a specific amount of energy (e.g., 1000 GWh) in a given year. I will then use this list to filter the "Global CO2 Emissions Data", so we only see the CO2 emission figures for those countries that meet our renewable energy production criteria.

2. **If mapping, how will you map the data?**
- If I decide to extend the app’s functionality, I could map the filtered CO2 emissions data to calculate the percentage change in emissions from one year to another for each country. For example, for each country, the app would take the current year’s emissions and the previous year’s emissions and compute:
\[ \text{percentage change} = \frac{(\text{current year CO2} - \text{previous year CO2})}{\text{previous year CO2}} \times 100 \]

3. **If reducing, how will you reduce the data?**
- The app could also reduce the data by calculating the total CO2 emissions for all selected countries combined in a specific year, providing a single metric that shows the total emissions contributed by countries that are investing in renewable energy. This would give a clearer picture of how such investments correlate with overall emissions levels.

---

By combining filtering, mapping, and reducing in a cohesive app design, users will be able to visualize and analyze the relationship between renewable energy production and CO2 emissions effectively.

Related Questions