Skip to content

ITP JAN25 | KATARZYNA_KAZIMIERCZUK | STRUCTURING_AND_TESTING_DATA | SPRINT2 #434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

katarzynakaz
Copy link

@katarzynakaz katarzynakaz commented Mar 29, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@katarzynakaz katarzynakaz added Needs Review Participant to add when requesting review Complete Participant to add when work is complete and review comments have been addressed labels Apr 19, 2025
Copy link

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have left you some feedback for your work in Sprint-2.

This branch should not contain modified files in Sprint-1 and Sprint-3 folders.

Since this PR has not yet been reviewed, I will removed the "Complete" label for now. You can add them after you have made the necessary changes.

Comment on lines 17 to 20
let heightCM = heightM/100
return parseFloat((weight / (heightCM*heightCM))).toFixed(1);
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type of value do you think the function should return? A number or a string?
Does your function return the type of value you think it should return?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was incorrect, it is now fixed

Comment on lines 21 to 39
//3
// Call formatTimeDisplay with an input of 61, now answer the following:

// b) What is the value assigned to num when pad is called for the first time?
// =============> write your answer here
// 61

// c) What is the return value of pad is called for the first time?
// =============> write your answer here
// num 0

// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
// =============> write your answer here
// TypeError: num.toString(...).padStart is not a function an error shows


// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
// =============> write your answer here
// TypeError: num.toString(...).padStart is not a function an error shows
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Python Tutor: Visualize Code" does not support newer version of JS, and that's why you get the error " TypeError: num.toString(...).padStart is not a function".

The answers to (b) is not quite correct.
Question (b) basically asks, among the function calls, pad(totalHours), pad(remainingMinutes), and pad(remainingSeconds) at line 11, which function gets called first? If you can figure out which function gets called first, then what is the parameter of that function call?

Forget about the Code Visualizer. What is your expected answers for (d) and (e).
You can ask ChatGPT for second opinion or you can execute the code in browser's JS console.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in the other PR

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review Complete Participant to add when work is complete and review comments have been addressed labels Apr 20, 2025
@katarzynakaz
Copy link
Author

I have left you some feedback for your work in Sprint-2.

This branch should not contain modified files in Sprint-1 and Sprint-3 folders.

Since this PR has not yet been reviewed, I will removed the "Complete" label for now. You can add them after you have made the necessary changes.

Apologies, I now added a replacement PR not including sprint 1 and 2 coursework
#448

@cjyuan
Copy link

cjyuan commented Apr 22, 2025

You don't have to create a new branch. One way to fix the branch is replace the "modified files" in Sprint-1 and Sprint-3 folders by the same files from your main branch in the following way:

  1. Download a your main branch as a ZIP file from https://github.com/katarzynakaz/fModule-Structuring-and-Testing-Data/tree/main
  2. In your local repo (the folder where you keep the clone of your repo), switch to branch sprint2
  3. Copy the subfolders, "Sprint-1" and "Sprint-3", from the ZIP file to your local repo (which will replace the modified files in those sub-folders in branch sprint2)
  4. Commit the change
  5. Push the change to Github

@cjyuan
Copy link

cjyuan commented Apr 22, 2025

If you insist of using the new branch, then you will have to close this PR, and then respond to the feedback I left here in your new branch.

@katarzynakaz
Copy link
Author

You don't have to create a new branch. One way to fix the branch is replace the "modified files" in Sprint-1 and Sprint-3 folders by the same files from your main branch in the following way:

  1. Download a your main branch as a ZIP file from https://github.com/katarzynakaz/fModule-Structuring-and-Testing-Data/tree/main
  2. In your local repo (the folder where you keep the clone of your repo), switch to branch sprint2
  3. Copy the subfolders, "Sprint-1" and "Sprint-3", from the ZIP file to your local repo (which will replace the modified files in those sub-folders in branch sprint2)
  4. Commit the change
  5. Push the change to Github

thank you! everything is fixed on this PR

Copy link

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still have room to improve.

@@ -23,17 +23,16 @@ function formatTimeDisplay(seconds) {

// b) What is the value assigned to num when pad is called for the first time?
// =============> write your answer here
// 61
// 60
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The answer is not 60. Please retry.


// c) What is the return value of pad is called for the first time?
// =============> write your answer here
// num 0
// 00
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the type of the value is a string, we can denote it as "00" to make it clearer its type and value.

@@ -15,7 +15,7 @@
// Use the MDN string documentation to help you find a solution
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase

const convertToUpper = (word) => word.toUpperCase()
const convertToUpper = (word) =>
input.replace(/ /g, "_").console.log(convertToUpper("kaska"));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this statement (at line 19) work?

Comment on lines 18 to 19
let heightCM = heightM / 100;
return parseFloat(weight / (heightCM * heightCM)).toFixed(1);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type of value do you think the function should return? A number or a string?
Does your function return the type of value you think it should return?

@katarzynakaz katarzynakaz added the Complete Participant to add when work is complete and review comments have been addressed label Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complete Participant to add when work is complete and review comments have been addressed Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants