QUESTION IMAGE
Question
a team of students is collaborating on a program to obtain local weather data from a website and predict weather - related school closings based on their own formulas. they must present their code to a group of faculty, some of whom have little to no experience with code. what strategies can the group use while writing their code, in order to make it more understandable for the faculty? select two answers. (1) include comments detailing previous, unsuccessful coding attempts. (2) include comments detailing the purpose and behavior of variables and procedures. (3) choose meaningful names for all variables and procedures. (4) repeat blocks of code to emphasize their importance in the process.
Adding comments that detail the purpose and behavior of variables and procedures helps in understanding what each part of the code does. Choosing meaningful names for variables and procedures also makes the code self - explanatory as the name gives an indication of what the entity represents or does. Including comments about previous, unsuccessful coding attempts is not necessary for understanding the current working code and repeating blocks of code is bad practice as it can lead to code bloat and maintenance issues.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
- Include comments detailing the purpose and behavior of variables and procedures.
- Choose meaningful names for all variables and procedures.