60 likes | 178 Vues
In this lab session, students will explore essential coding practices to improve their programming skills. Key topics include proper indentation, meaningful variable naming, code organization, and debugging techniques. Participants will learn to outline algorithms using pseudo code and flowcharts. The hands-on experience will involve writing and correcting code in NetBeans, emphasizing clarity and organization. After the lab, students must rewrite their code adhering to best practices, ensuring it is well-documented with appropriate comments and structure.
E N D
CS 240 – Computer Programming ILab KalpaGunaratna – kalpa@knoesis.org http://knoesis.wright.edu/researchers/kalpa/
Contact • Contact by e-mail • kalpa@knoesis.org • Office hours • 376 Joshi • Mondays & Wednesday 3:00 pm – 4:00 pm
Intention • Understanding good coding practices helps. • Comments • Indentation • Meaningful variables • Code organization • Debug programs for understanding (basic operations will be demonstrated). • Use pseudo code or flowcharts to outline an algorithm and understand.
In lab • Draw flow chart or write a pseudo code for the part A. • Load the program into net beans and if there are errors, correct them.
Post lab • Rewrite the program with correct styles. • Organize code into blocks. • Declare variables • Logic or calculations • Meaningful comments and variable names • Mention and make corrections if needed.
Announcements • Project 1 • Submit compressed net beans project folder. • Use javadoc comments at proper places and include your name, WID, lab section, TA’s name, Instructor’s name. • Organize code into main blocks. • Declare variables • program