Sunday, November 25, 2007
Wednesday, November 14, 2007
2. What choices did you face in developing your solution, and how did you choose among them?
The choices I had to make while developing my solution were either doing the code in main or using a class. Also I had to choose if I should use .contain or substring. I chose to do it in main and used .contain for my Grades program.
The choices I had to make while developing my solution were either doing the code in main or using a class. Also I had to choose if I should use .contain or substring. I chose to do it in main and used .contain for my Grades program.
Tuesday, November 13, 2007
Monday, November 12, 2007
Friday, November 9, 2007
Thursday, November 8, 2007
1. What problems did you encounter while developing your solution? How do you plan to overcome
them?/How did you overcome them?
For the first problem, I didn't know how to show the products when making the multiplication table. I first played around with it but that didn't help, so i asked the teacher.
them?/How did you overcome them?
For the first problem, I didn't know how to show the products when making the multiplication table. I first played around with it but that didn't help, so i asked the teacher.
Wednesday, November 7, 2007
5. Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
When using continue, the program skips everything in that loop and moves on to the next part :D.
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
When using continue, the program skips everything in that loop and moves on to the next part :D.
Tuesday, November 6, 2007
Friday, November 2, 2007
Discuss some specific examples in which you might use iteration.
You could use interation when you make a program for a game. When someone reaches a certain amount of money. The loop will end and the game will stop. Also iteration can be used when you need to use a variable and instead of typing in the number, you could use a loop.
You could use interation when you make a program for a game. When someone reaches a certain amount of money. The loop will end and the game will stop. Also iteration can be used when you need to use a variable and instead of typing in the number, you could use a loop.
Thursday, November 1, 2007
Scored through 10/31. All blogs from this point forward are second marking period.
*****************************************************************************************************************************************************************************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************************************************************************************************************************************************************************
Friday, October 26, 2007
Wednesday, October 24, 2007
1. What problems did you encounter while developing your solution? How do you plan to overcome
them?/How did you overcome them? The problems I had but did not notice was that you couldn't use the == for a string since they were objects. Instead of using that, Ms.Petr taught us a way by using s.equals("A")
them?/How did you overcome them? The problems I had but did not notice was that you couldn't use the == for a string since they were objects. Instead of using that, Ms.Petr taught us a way by using s.equals("A")
Tuesday, October 23, 2007
Tuesday, October 16, 2007
5. Provide yourself an example (not one from your instructor) of how you use a particular command thatwill help jog your memory in the future when you need that command again. You must provide a littlecode as well as a written explanation with this one.
when using user input, everything is taken in as a string. To get user input you use,
s=JOptionPane.showInputDialog("blah");
and to convert the string to an int, x=Integer.valueOf(s);
when using user input, everything is taken in as a string. To get user input you use,
s=JOptionPane.showInputDialog("blah");
and to convert the string to an int, x=Integer.valueOf(s);
Monday, October 15, 2007
Wednesday, October 10, 2007
5. Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
when using a void method, you do not need to use "System.out.println". That is only when you have an acessor method, like int or double.
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
when using a void method, you do not need to use "System.out.println". That is only when you have an acessor method, like int or double.
Tuesday, October 9, 2007
Monday, October 8, 2007
Thursday, October 4, 2007
Wednesday, October 3, 2007
Tuesday, October 2, 2007
3. How did you go about testing your program? What were the results of that testing?
The results of testing was that the output of the car class assignment came out weirdly after it resested the MPG. I asked the teacher what was wrong after I looked at what was wrong. After playing around with the program, it came out with fine.
Monday, October 1, 2007
Wednesday, September 26, 2007
1. What problems did you encounter while developing your solution? How do you plan to overcome them?/How did you overcome them?
The problem I had was that I didn't understand what the assignment wanted me to do. I understood what to do after I read it over again, looked over the examples in the lessons. When I still didn't understand, I asked for help around me and also asked Ms.Petr.
The problem I had was that I didn't understand what the assignment wanted me to do. I understood what to do after I read it over again, looked over the examples in the lessons. When I still didn't understand, I asked for help around me and also asked Ms.Petr.
Tuesday, September 25, 2007
5. Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
System.out.print(s.length());
this method prints out the length of the string, it also counts spaces
System.out.print(s.substring(2));
this would take the letters in the string starting fromthe index of 2.
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
System.out.print(s.length());
this method prints out the length of the string, it also counts spaces
System.out.print(s.substring(2));
this would take the letters in the string starting fromthe index of 2.
Sunday, September 23, 2007
Friday, September 21, 2007
Thursday, September 20, 2007
1. What problems did you encounter while developing your solution? How do you plan to overcome
them?/How did you overcome them?
The problems I had were that I was confused about the precedence rules. I first looked at my notes but I still did not know what to do. Later I asked the teacher and used the Java program to help me.
them?/How did you overcome them?
The problems I had were that I was confused about the precedence rules. I first looked at my notes but I still did not know what to do. Later I asked the teacher and used the Java program to help me.
Wednesday, September 19, 2007
5. Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
compound assignments.
p+=5 is also p=p+5
works the same for other operations.
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
compound assignments.
p+=5 is also p=p+5
works the same for other operations.
Monday, September 17, 2007
Friday, September 14, 2007
5. Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
"\n"-goes to the next line in a literal string
to have quotations printed on the screen, use "\""
to get a backslash printed on the screen use "\\"
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
"\n"-goes to the next line in a literal string
to have quotations printed on the screen, use "\""
to get a backslash printed on the screen use "\\"
Wednesday, September 12, 2007
Tuesday, September 11, 2007
I like cucumbers
3. How did you go about testing your program? What were the results of that testing?
I kept playing with the code until I got it right. The results often were off.
I kept playing with the code until I got it right. The results often were off.
Monday, September 10, 2007
4. Are there any specific tips you would give to someone else tackling the same problem? How would
what you suggest benefit that person in solving the problem?
What I would suggest is either ask the teacher or play around with the program to see what it does. Doing this makes you learn what each command does.
what you suggest benefit that person in solving the problem?
What I would suggest is either ask the teacher or play around with the program to see what it does. Doing this makes you learn what each command does.
Friday, September 7, 2007
9/7
1. What problems did you encounter while developing your solution? How do you plan to overcome
them?/How did you overcome them?
The problems I encountered were that I had a few typoes and some of the code did not work. I just played around and checked my work to see if there was anything I had to correct.
them?/How did you overcome them?
The problems I encountered were that I had a few typoes and some of the code did not work. I just played around and checked my work to see if there was anything I had to correct.
Thursday, September 6, 2007
Monday, August 27, 2007
Subscribe to:
Posts (Atom)