Because one lab period was missed due to the winter storm, a small change has been made to the lab sign-in policy: you are now required to sign in to at least four labs (out of 8), not five labs (out of 9).
Unrelated question: when could we expect our marks for the written and lab tests?
Unrelated comment: Java automatically includes the current directory in the classpath if your CLASSPATH environment variable isn't defined. This means that you don't really have to do "-cp ." everytime (assuming that CLASSPATH is undefined).
The answer to the unrelated question: the week after the reading week.
Remark on the unrelated comment: You are correct, for what we're currently doing, -cp . isn't really needed. However, once we get to packages, things gets a bit more complicated such that it'll be easier and better practice to use "-cp ."
If you're interested, there's a small section on -cp . Here
I thought that there would be a blog post where we can comment on labs 4 and 5 by now, but I guess not yet. Anyway, I have question so I guess I'll post it here.
In Lab5, for the LineOfCredit class, the method withrawal(double amount) has the following description in the API:
Withdraws the given amount from the line of credit. No fee is charged. If the final balance is less than the credit limit, the withdrawal is cancelled and the balance is unchanged. Returns the final balance after the withdrawal.
This line in particular is confusing for me: If the final balance is less than the credit limit, the withdrawal is cancelled and the balance is unchanged.
The default credit limit is 10,000 and the default balance is 0. This forces the balance to be over 10,000 dollars to be able to make a withdrawal, which seems strange to me and it does not result in the same output as the example output given in Lab5.
Unrelated question: when could we expect our marks for the written and lab tests?
ReplyDeleteUnrelated comment: Java automatically includes the current directory in the classpath if your CLASSPATH environment variable isn't defined. This means that you don't really have to do "-cp ." everytime (assuming that CLASSPATH is undefined).
The answer to the unrelated question: the week after the reading week.
ReplyDeleteRemark on the unrelated comment: You are correct, for what we're currently doing, -cp . isn't really needed. However, once we get to packages, things gets a bit more complicated such that it'll be easier and better practice to use "-cp ."
If you're interested, there's a small section on -cp . Here
Weird, the link didn't show up right. It's http://mindprod.com/jgloss/classpath.html
ReplyDeleteI thought that there would be a blog post where we can comment on labs 4 and 5 by now, but I guess not yet. Anyway, I have question so I guess I'll post it here.
ReplyDeleteIn Lab5, for the LineOfCredit class, the method withrawal(double amount) has the following description in the API:
Withdraws the given amount from the line of credit. No fee is charged. If the final balance is less than the credit limit, the withdrawal is cancelled and the balance is unchanged. Returns the final balance after the withdrawal.
This line in particular is confusing for me: If the final balance is less than the credit limit, the withdrawal is cancelled and the balance is unchanged.
The default credit limit is 10,000 and the default balance is 0. This forces the balance to be over 10,000 dollars to be able to make a withdrawal, which seems strange to me and it does not result in the same output as the example output given in Lab5.
Can someone clarify this for me, please?