Friday, February 29, 2008

Friday night class

Riverdog said; Well I am at school in our class room, I was let into the class room to look up some options on the system. There is another class coming in at 520 PM on Fridays, and I will leave soon. I got the homework and learned how to make the printer work in class. We needed the IP address for the printer to load properties last week.


/*File: Distance Traveled.java
*CSCI 1911 Class Bruce McDowell
**/

import java.util.Scanner; // Needed for the Scanner class
/**
This program demonstrates a user controlled for loop.
*/
public class DistanceTraveled
{
public static void main(String[] args)
{
int number; // Loop control variable
int maxValue; // Maximum value to display
int time;
int speed;
int distance;
System.out.println("I will display a table of " +
"time and distance travelled by the hour.");
// Create a Scanner object for keyboard input.
Scanner keyboard = new Scanner(System.in);
// Get the maximum value to display.
System.out.print("How fast is your car? ");
speed = keyboard.nextInt();
while (speed <= 0)
{
System.out.print("Invalid entry try again? ");
speed = keyboard.nextInt();
}
System.out.print("How many hours traveled? ");
time = keyboard.nextInt();
while (time <= 0)
{
System.out.print("Invalid entry try again? ");
time = keyboard.nextInt();
}
// Display the table.
System.out.println("Hour Distance Traveled");
System.out.println("-------------------------");
for (number = 1; number <= time; number++)
{
distance = speed * number;
System.out.println(number + "\t\t" +
distance);
}
}
}

Wednesday, February 27, 2008

3rd Blog for this week

Riverdog said; I learned a lot this week in class, I hope Nicky can catches up. If she will open Web CT homepage and open Discussions she will find "our class program" as an assignment. I will try to open JCreator tomorrow and run some of the programs that I have on file. The tools were not set correctly and I think that this could make a big difference in the running of programs. Tonight we started on loops in chapter 4, and the homework problem was done on the front screen in class, problem 2 in the Java book was posted. Mr. Cheng ask if you would return his book he will need it to prepare for the final exam.

Monday, February 25, 2008

Crossing to River with Dogs

Yes, I completed problems #2 and #11 for next week. I have more fun solving the problems than programing, but I think that will change when I get the JCreator working correctly. Last night I got the JCreator to open, but still get an error on the paths. I don't think that the solution are processing yet either. I did the housemate problem in CR, and the box problem for chapter 7. I have good answers for both problems. Now I am looking forward to class on Wednesday because I have the homework done already. Also got the day off work on Wednesday, for working last weekend on Sunday for twelve hour straight. I plan on going to school and maybe using their lab machines. I am so close to understanding how the programs work, but just need to read a little more. See you all in class. Riverdog-driver out.

Sunday, February 24, 2008

I wish I knew

Yes I wish I knew how to load the programs onto the JCreator, seams I have had trouble with the Java SE, then the JDK; now still having trouble with the projects, workspace, file name. I have spent many wasted nights just trying to get the programs to compile, or run. I have not oot one program to run at home yet!!!!!!!!! I thought it was working for a long time, and just the path wrong, but now I thing that we are not communicating. Still getting errors and the wrong path, and I don't know why. My computer seam different that the book talks about. Bruce

Wednesday, February 20, 2008

In Clas

Riverdog said; I am here in class and I have all the stuff ready for class, I was hoping to do some work before class but this computer is like a sponge, it just assurbs your time. I brought mu Java CD and thumb drive, and was planning on loading the Newboys program that I have to run on this computer, but I don't think that I can complete it tonight.

Class Homework Notes

Riverdog said; Tonight I worked on the Refinancing problem #4. I tried to build a program for it but did not get it to run. So I also did the spread sheet to solve for number of months to recover cost of refinancing the covell's house.

Also did AreaRectangle problem #3 in the Java book. Having trouble with the JCreator but will continue to program with out it till I figure out what the problem is.

Tuesday, February 19, 2008

Chapter 3 in Java Book

Read more in Java book today, and started into Chapter 3 about if statements and loops. I plan on loading some example programs to work on and then I can load them on the JCreator, I will run them soon, but I got a late start this evening.

JCreator

Riverdog said; I worked on the computer all day yesterday and still have trouble with loading SE 5.0.9, I got it loaded but cant find the debugger and when I load the run app in will not out anything. I wish Mr. Cheng would pass out some kingd of handout to help us load the correct version.

Sunday, February 17, 2008

ERROR: Invalid Path,\bin\javac.exe -classpath

Riverdog said; I have been working on the JCreator to run programs, and also a little on the five newsboys problem. I think I could program the rectangle problem when I make it run. Mean while I just read in the Java Book when I have a chance. I will continue to work these problems.

Wednesday, February 13, 2008

Programming some now

All
I was able to manage a couple of the programs today, the one on Circuit Boards was just like the percentage problem, and the namesDialog was just like the example about three names to print.
I think this is going pretty good for the amount of time that I put in. I wanted to try the wireless key on the laptop but was unable to get over there to The AFB this week to try it out. The sun is out now so I might ride the motorcycle to school because my son is using the car more now. I want to do a litte more tomorrow, but don't know how much time I will have tomorrow.

Monday, February 11, 2008

Still working

Riverdog said; Just sent you the testAverage1.1 print out. I still have the same error and can not get it cleared up yet! Bruce

// This program will display and average three test scores.
public class TestAverage{ public static void main(String[] args){ double testScoreA, testScoreB, testScoreC testscoreA = 86 testscoreB = 76 testscoreC = 98
average = +testscoreA+,+testscoreB+,+testscoreC+; System.out.println your test scores of ("+testscoreA+","+testscoreB+","+testscoreC+) System.out.println "your average score of "+average+"

Late night oil

Yes I was able to complete all four of the problems assigned in Crossing the River with Dogs. Eggs in a Basket was alot of fun and I don't think I would have been able to do it without the Mod function that we spoke about in class. I looked at everything divisable by 7 and also odd. Then looked at Mod for 2,3,4,5,6 and it works.

Two problems we did in clsss and the other one, Sequence Patters I was able to do using algebra.

Sunday, February 10, 2008

Programming some

ALL Classmates; I did some reading in the Java Book over the weekend. I open HPU Pipline, and see the list of homework assignments again. I have organized my notebook, and layout the plan to do the problems in my journal for week four.

  • I need to do these problems first, Eggs In A Basket #3, and Four College Roommates #10 on page 61-63 in Crossing the River with Dogs.
  • In the Java Book do Problem 10 and 11 for week 4, Remember to e-mail the source code to Jimmy at CSCI1911.
  • Also problems 13 and 14 for week 5 also in the Java Book. And again remember to e-mail the source code to Jimmy.
  • Lastly for week 5 do problems 1 and 11 on page 105 in CR / dogs.

I just wanted to organize the assignment for myself, Thanks

Friday, February 8, 2008

Need to blog every night

Riverdog said; Wow this week is over and I am tired now. Tomorrow is a new day and after some well deserved sleep I plan on knocking out some homework for CSCI 1911. I look forward to set up java programs and not doing Hazmat for awhile. Turns out I was only committed out to Hazmat for one week. I will be there in class next Wednesday just a note that this week I learn how to set up the blogger.com web site to my opening home page as a tab Thats cool. That seams to make it much easier to blog more often now. Who could pass up 25 % of their grade to blog several times per week.

Thursday, February 7, 2008

More Blogs Now

Riverdog said; I really enjoyed class on last Wednesday. I got my Sales Orediction done, showed my Alice world, got my workwork back, went over some of the problem and made some new friends. Thanks to all of you I am learning about Java, and using the compiler now. I think I like Pascal's Triangle, because it is so clean.

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1