By Nick Gattuso, Point Pleasant Borough High School
We are all in a very unique and difficult situation, but out of the confusion and hardship my high school students have stepped up (and to use a term that I hear over and over again from our nation’s leaders – they are leaning in) and have continued the process of learning and communicating with me. Along the way, they have learned some important lessons such as:
Here is an email message with my response to Kathryn’s answer (notice how detailed I can be since we are now not limited by the time)
Hi Kathryn,
Hope all is well..
good job some problems.. though
you would probably have scored a 5 or 6 (out of the 9).. some easy corrections
please see below.. and let me know you understand the fixes
(going to give 100 for this.. but I want you to get all 9 points in future..)
new assignment tomorrow night .. i will contact you via email
let others know about the assignment.. and stay safe..
talk to you tomorrow mr. g
——
(1)
no need to make instance vars static unless
the vars need to be used by all objects .. class level vars
that is not what is being done here
so your instance vars
should be:
private int min;
private int count;
private int days;
private int act;
(2) you do not have a constructor..
almost always when writing a class need a constructor
such as:
public StepTracker(int goal)
{
min = goal;
count = 0;
days = 0;
act = 0;
}
(3)
averageSteps method missing some stuff:
public double averageSteps(){
if (days == 0) return 0.0;
double x= (double)count/days;
return x;}
And here is Kathryn’s email message back with her response (11 minutes later):
Got it, thanks!
I am very proud and encouraged by how my students are showing responsibility and how they are stepping up and leaning in. They are learning important life lessons that will only make them stronger and more well-rounded!
Nick Gattuso is a computer science teacher at Point Pleasant Borough High School. He and his students were featured on NJEA’s Classroom Closeup, NJ in 2017 for their Panther Assisted Learning Software, which creates software programs to benefit special education students. Watch their story here.