From dafb6611c1aa15099729be2c26d23a525a4c6388 Mon Sep 17 00:00:00 2001 From: Jonathan Calver Date: Sun, 17 Sep 2023 12:48:41 -0400 Subject: [PATCH 1/3] Bob's version of the cake recipe added. --- recipe.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/recipe.md b/recipe.md index a8b51a4d..ea014023 100644 --- a/recipe.md +++ b/recipe.md @@ -4,9 +4,15 @@ - 2 cups all-purpose flour - 1 3/4 cups granulated sugar - 3/4 cup unsweetened cocoa powder +- 1/2 tsp ground cinnamon - ... ## Instructions: -1. Preheat the oven to 350°F (175°C). -2. In a large bowl, whisk together the flour, sugar, and cocoa powder. -3. ... \ No newline at end of file +1. Preheat the oven to 375°F (190°C). +2. In a large bowl, whisk together the flour, sugar, cocoa powder, and ground cinnamon. +3. ... + +## Additional Directions by Bob: +4. Add a tablespoon of instant coffee to the dry ingredients for a hint of mocha flavor. +5. Mix in a handful of chocolate chunks for extra indulgence. +6. Line the bottom of the baking pan with parchment paper for easy cake removal. From 685cf27b09bb119e2f5ff69f981dd16a311355b7 Mon Sep 17 00:00:00 2001 From: Yujing Duan Date: Thu, 23 May 2024 19:08:53 -0400 Subject: [PATCH 2/3] datatype is changed to avoid overflow --- src/DataTypes.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/DataTypes.java b/src/DataTypes.java index 4f807c1f..093a4fd2 100644 --- a/src/DataTypes.java +++ b/src/DataTypes.java @@ -1,10 +1,11 @@ import java.util.List; public class DataTypes { - // TODO TASK 1: fix this code so that it passes the test in DataTypesTest.java public static long sum(List numbers) { - int s = 0; + long s = 0; + //avoid overflow + // below is a "foreach" loop which iterates through numbers for (int x : numbers) { s += x; From 5eb6e4aaad080ec60ca8e487b147f1811e06c18c Mon Sep 17 00:00:00 2001 From: Yujing Duan Date: Thu, 23 May 2024 19:35:10 -0400 Subject: [PATCH 3/3] recipe is modified --- recipe.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipe.md b/recipe.md index ea014023..f0c02db1 100644 --- a/recipe.md +++ b/recipe.md @@ -14,5 +14,4 @@ ## Additional Directions by Bob: 4. Add a tablespoon of instant coffee to the dry ingredients for a hint of mocha flavor. -5. Mix in a handful of chocolate chunks for extra indulgence. -6. Line the bottom of the baking pan with parchment paper for easy cake removal. +5. Mix in a handful of chocolate chunks for extra lime