'F' → Fullscreen
Three short programs and one written task, each a different job a data analyst gets asked to do. Each program is new, so start a new file for each one.
How to read the code blocks. Each code block shows a whole program, from line 1.
Where a task changes a program you already have, the green lines marked with a + are the ones you add or change — everything else is already in your file. Do not type the + sign.
string[] players = { "Ava", "Ben", "Cal", "Dee", "Eli", "Fay" };int[] gameHours = { 2, 4, 5, 7, 9, 12 };int[] shoeSizes = { 1, 3, 4, 6, 8, 10 };
for (int i = 0; i < players.Length; i++){ Console.WriteLine($"{players[i]}: {gameHours[i]} hours a week, shoe size {shoeSizes[i]}");}
int together = 0;
for (int i = 1; i < players.Length; i++){ if (gameHours[i] > gameHours[i - 1] && shoeSizes[i] > shoeSizes[i - 1]) { together = together + 1; }}
Console.WriteLine();Console.WriteLine($"More gaming, bigger feet: {together} of {players.Length - 1} steps");ages array and print each age, as below, and run it again.string[] players = { "Ava", "Ben", "Cal", "Dee", "Eli", "Fay" };int[] gameHours = { 2, 4, 5, 7, 9, 12 };int[] shoeSizes = { 1, 3, 4, 6, 8, 10 };int[] ages = { 7, 9, 10, 12, 14, 16 };
for (int i = 0; i < players.Length; i++){ Console.WriteLine($"{players[i]}: {gameHours[i]} hours a week, shoe size {shoeSizes[i]}, age {ages[i]}");}
int together = 0;
for (int i = 1; i < players.Length; i++){ if (gameHours[i] > gameHours[i - 1] && shoeSizes[i] > shoeSizes[i - 1]) { together = together + 1; }}
Console.WriteLine();Console.WriteLine($"More gaming, bigger feet: {together} of {players.Length - 1} steps");images holds five tiny screenshots, the data. levels, dates and places are their metadata, matched by position: screenshot 2 was taken in levels[2] on dates[2]. Write 2-18-screenshots and run it.FindLevel finds every Lava Cave screenshot without ever looking at an image: it only reads levels. StripPlaces then deletes every place, the way a careful app does before sharing.string[] images = { "..##..##..", "#.#.#.#.#.", "...####...", "##......##", ".#..##..#." };string[] levels = { "Lava Cave", "Ice Peak", "Lava Cave", "Sky Fort", "Ice Peak" };string[] dates = { "2026-09-14", "2026-09-20", "2026-10-02", "2026-11-11", "2026-11-19" };string[] places = { "Columbus, OH", "Columbus, OH", "Dayton, OH", "Columbus, OH", "Toledo, OH" };
Console.WriteLine("Every Lava Cave screenshot:");FindLevel("Lava Cave");
StripPlaces();Console.WriteLine("After stripping the places:");FindLevel("Lava Cave");
void FindLevel(string level){ for (int i = 0; i < images.Length; i++) { if (levels[i] == level) { ShowShot(i); } }}
void ShowShot(int i){ Console.WriteLine($" image: {images[i]}"); Console.WriteLine($" level: {levels[i]}"); Console.WriteLine($" taken: {dates[i]}"); Console.WriteLine($" place: {places[i]}"); Console.WriteLine();}
void StripPlaces(){ for (int i = 0; i < places.Length; i++) { places[i] = "(removed)"; }}spellings and standards are parallel arrays, like Activity 1.26's: spellings[2] is a lowercase way people wrote a topping, and standards[2] is the clean name it stands for. Clean lowercases a vote, looks it up, and returns the clean name. A vote it does not recognize comes back as it was typed."Peppironi" to votes and run it. It is not cleaned. Fix it without touching Clean, and say which two arrays you changed. Then explain why adding "pepper" to the pepperoni spellings would be damage, not cleaning.string[] votes = { "Pepperoni", "pepperoni", "Cheese", "PEPPERONI", "pep", "cheese", "Peperoni", "plain cheese", "Pepperoni", "Mushroom" };string[] spellings = { "pepperoni", "pep", "peperoni", "cheese", "plain cheese", "mushroom" };string[] standards = { "Pepperoni", "Pepperoni", "Pepperoni", "Cheese", "Cheese", "Mushroom" };string[] cleaned = new string[votes.Length];
for (int i = 0; i < votes.Length; i++){ cleaned[i] = Clean(votes[i]); Console.WriteLine($"{votes[i]} -> {cleaned[i]}");}
Console.WriteLine();CountVotes("Pepperoni");CountVotes("Cheese");
string Clean(string vote){ string lower = vote.ToLower();
for (int i = 0; i < spellings.Length; i++) { if (lower == spellings[i]) { return standards[i]; } }
return vote;}
void CountVotes(string topping){ int before = 0; int after = 0;
for (int i = 0; i < votes.Length; i++) { if (votes[i] == topping) { before = before + 1; }
if (cleaned[i] == topping) { after = after + 1; } }
Console.WriteLine($"{topping}: {before} before cleaning, {after} after");}" cheese ", with a space at each end. It is not cleaned, and it is hard to see why.Trim(), which works like ToLower() but hands back a copy with spaces removed from both ends. Use it in Clean so the vote cleans, and explain why an invisible difference is the hardest kind of mess to spot.Task 1, before adding ages, prints exactly this.
Ava: 2 hours a week, shoe size 1Ben: 4 hours a week, shoe size 3Cal: 5 hours a week, shoe size 4Dee: 7 hours a week, shoe size 6Eli: 9 hours a week, shoe size 8Fay: 12 hours a week, shoe size 10
More gaming, bigger feet: 5 of 5 stepsTask 2 prints exactly this.
Every Lava Cave screenshot: image: ..##..##.. level: Lava Cave taken: 2026-09-14 place: Columbus, OH
image: ...####... level: Lava Cave taken: 2026-10-02 place: Dayton, OH
After stripping the places: image: ..##..##.. level: Lava Cave taken: 2026-09-14 place: (removed)
image: ...####... level: Lava Cave taken: 2026-10-02 place: (removed)And Task 3, before you add any votes, prints exactly this.
Pepperoni -> Pepperonipepperoni -> PepperoniCheese -> CheesePEPPERONI -> Pepperonipep -> Pepperonicheese -> CheesePeperoni -> Pepperoniplain cheese -> CheesePepperoni -> PepperoniMushroom -> Mushroom
Pepperoni: 2 before cleaning, 6 afterCheese: 1 before cleaning, 3 afterClean is unchangedAnswer the following questions before submitting your work.
Submit four things to the dropbox: