JCC CSC 1590 Computing Fundamentals I

Fun For Everyone

Archive for the 'Projects' Category

Final Project

Posted in Projects on June 4, 2007 by jccfundamentals

Please post your questions to the lab here. No sharing of information will be allowed. Any cheating will earn you a zero. Please do not post code segments to the blog, they will be removed.

5.2 Pre- Lab code

Posted in Projects on June 4, 2007 by jccfundamentals

Nick will be posting the working code her.

Next assignment:

Posted in Projects on April 26, 2007 by jccfundamentals

Please use your time today to type in the Circle class that we wrote in class last week. 

 When you create a project, create 2 classes: Circle class and a driver class.

 In  your driver class, please write a main which instanciates a Circle object, and makes a call to each of the Circle methods, followed by an output that states the result of this call.

 For example:

Circle myCircle = new Circle ();

myCircle.setRadius (6);

double r = myCircle.getRadius();

System.out.println (”This is a circle with radius: ” + r);

I’m learning a lot, but miss you guys.  See you Monday.

GUI Lab #2

Posted in Projects on February 27, 2007 by jccfundamentals

Write a GUI program to convert all lowercase letters in a string to uppercase letters, and vice versa.  For example, Alb34eRt will be converted to aLB34ErT.

 You will need to use a loop to go through your string.  Also be mindful of the ascii values associated with a letter.

Search Values Lab Supplement

Posted in Projects on December 15, 2006 by jccfundamentals

Write a program that will ask the user for 5 numbers, and will report the largest number that was entered.  The program should only keep track of the Largest number that has been entered.

Please STOP working on the football program temporarily and work on this program.  If you would like, I recommend that you write an algorithm and have it checked by me before you start.  This should prevent you from becoming extremely frustrated with this problem.

Football Stats Program

Posted in Projects on December 6, 2006 by jccfundamentals

Create a Java program to read in an unknown number of lines from a data file.  YOu will need to create the data file in Notepad.  The contents of the file will be posted by Courtney.  This file contains a football team’s name, the number of games they have won, and the number of games they have lost.

1. Process all data until it reaches the end-of-file.  Calculate the win percentage for each team.

2.  OUtput to a file (”top.txt”) a listing of all teams with a win percentage greater than .500.  This file should contain the team name and the win percentage.

3.  Output to a file (”bottom.txt”) a listing of all teams with a win percentage of .500 or lower.  This file should contain the team name and the win percentage.

4.  Print in a message box:  The number of teams with a record over .500 and the number of teams with a record of .500 and below, each appropriately labeled.

5.  Print in the same message box: the team with the highest win percentage and the team with the lowest win percentage, each appropriately labeled.

Wednesday, November 8th… Lab

Posted in Projects on November 8, 2006 by jccfundamentals

Write a program that prompts the user to input the x – y coordinates of a point in a Cartesian plane.  the program should then output a message indicating whether the point if the origin, is located on the x or y axis, or appears in a particular quadrant.

For Example:

(0,0) is the origin.

(4,0) is on the x-axis.

(0,-3) is on the y-axis.

(-2, 3) is in the second quadrant.

Thursday, November 2nd Lab

Posted in Projects on October 31, 2006 by jccfundamentals

Write a program that prompts the user to input an integer between 0 and 35.  If the number is less than or equal to 9, the program should output the number; otherwise, it should output A for 10, B for 11, C for 12, …., Z for 35. (Hint:  Use the cast operator for (char) (number + 55) for numbers >=10.)

Lab – Thursday October 19th.

Posted in Projects on October 19, 2006 by jccfundamentals

More practice with GUI input and output.

Please write a program which takes in 3 Strings and outputs the average length of the word.

Pg 164 #3

Posted in Projects on October 10, 2006 by jccfundamentals

Please do this project independently.  Keep in mind that I will be giving notes on Wednesday, and Friday that should help you with this project, as well as answering question to your blog.  This isn’t a class where the answer is going to present itself immediately.  You need to spend some time looking at examples in the book, thinking, and reading.  Try some stuff out on the computer to see how it works…. Hang in there, you will get it.