ENGR 131

From Johnwiki

Jump to: navigation, search

Welcome to ENGR 131, Elementary Computer Programming. Our lab section meets Thursdays at 10 a.m. in Olin 703.

Contents

Assignments

Contact Information

My Case e-mail address is john.tantalo@case.edu, but you should send all your assignments to john.tantalo+engr131@gmail.com. If you send me e-mail any other way, please include "engr131" in the subject line.

If I'm online, you can try messaging me on AIM. My screen name is igotsomefun.

Homework Policy

Homework will be given every week during lab. Your solution is due the next week before the end of lab in case you have any more questions.

Every week you have to:

Cheating

Don't ever let another student read your code. If someone asks you for help, you may describe your solution (this is perfectly fine), but don't give them any actual code. If this happens, then both students will likely fail the course immediately.

Comments

At the top of every program, please include this information:

 // John Tantalo
 // [Filename].java
 // [Program Name]
 // [Current Date]

Please also include comments describing your programming logic. Imagine you were explaining your program to someone who doesn't understand the problem. Do not simply rephrase the code!

Bad Comments

 int count = 0 ; // initialize a counter
 for(int i = 0 ; i < list.length ; i++) // loop through list
   if(list[i] % 2 == 0) // if the value in the list mod two is zero
     count++ ; // increment the counter

Good Comments

 int count = 0 ;
 for(int i = 0 ; i < list.length ; i++)
   if(list[i] % 2 == 0)
     count++ ; // Count the number of even values in the list.

Class List

Personal tools