60 likes | 165 Views
CS 240 – Computer Programming I Lab. Kalpa Gunaratna – 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.
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