Download presentation
Presentation is loading. Please wait.
1
March 2005 1/18R. Smith - University of St Thomas - Minnesota QMCS 230: Today in Class The ExamThe Exam Homework NotesHomework Notes
2
March 2005 2/18R. Smith - University of St Thomas - Minnesota Exam GradingGrading –A: -14 or better –B: -24 or better –C: -33 or better Problems 1-6Problems 1-6 –Camelback style is optional –Strings are enclosed in double quotes Problems 7-9Problems 7-9 –Casting the right variable –Right format for casting Problems 10-11 – obviousProblems 10-11 – obvious
3
March 2005 3/18R. Smith - University of St Thomas - Minnesota Exam Answers Problems 12-14Problems 12-14 –20 points each; extra credit = 10 points –Main() expression not needed, ignored, maybe crossed out –Variables can’t be reserved words –And (&&) vs Or (||) in conditional expressions Infinite loopsInfinite loops Problem 15Problem 15 –5 errors –Ambiguity about “incorrect” close brace –Lose more for missing an error than marking one not there –Initialized “i” due to earlier incorrect statement –i = (int) j; // cast j to integer
4
March 2005 4/18R. Smith - University of St Thomas - Minnesota Homework Notes Lab submissionLab submission –For e-mail labs, send.java file ONLY Do not send the.class file, just wastes spaceDo not send the.class file, just wastes space –Be sure the.java file compiles correctly –File must contain your name and the correct lab number I won’t grade labs ifI won’t grade labs if –It’s not a.java file sent as an attachment –It doesn’t compile – that’s just carelessness –No indenting or comments –Doesn’t do anything the lab requires
5
March 2005 5/18R. Smith - University of St Thomas - Minnesota Homework Dings and Issues Things I take off points for Indenting problemsIndenting problems –Safe approach: copy the book or ask me –If I complain about it, I will take off points Commenting problemsCommenting problems –Every variable must have a comment. Line them up! –Comments on executable statements “Header” comments – blank line, then a line of comment“Header” comments – blank line, then a line of comment Left column matches the next statementLeft column matches the next statement One comment every 2-5 statements as neededOne comment every 2-5 statements as needed ExecutionExecution –Be sure you do what the lab asks for –Calculations should be correct – CHECK BEFORE HANDING IN –NO CRASHING ON CORRECT INPUT
6
March 2005 6/18R. Smith - University of St Thomas - Minnesota More about Homework Scanner switching between text and numbersScanner switching between text and numbers –Easy way: use JOptionPane for one or the other –Another way: “empty” the line after reading a number but before reading a full text line Number of pointsNumber of points –Two types of lab, two levels of credit –More credit for the ones I actually run Equal weight even if the point counts are differentEqual weight even if the point counts are different –Less credit for the paper hand-ins Full credit if you tried what the lab requiresFull credit if you tried what the lab requires
7
March 2005 7/18R. Smith - University of St Thomas - Minnesota Overtime Authorization Problem How do we do it?How do we do it?
8
March 2005 8/18R. Smith - University of St Thomas - Minnesota That’s it. Questions?Questions? Creative Commons License This work is licensed under the Creative Commons Attribution-Share Alike 3.0 United States License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/us/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.