PriceCalcuator.java
This java program
asks the user
to enter wholesale amount
and markup percentage
Then displays retail price.
|
Lab 2:
This Java Program asks the user to enter their name and semester hours taken and then prints out names, hours taken. Files include, main.java which include String studentName;
int StudentHours.
|
Lab 3:
This Java Program uses a constructor that takes in 3 parameters and returns a float value @param p population in the previous period @param b birthrate expressed as a number < 0. For example, 10% is expressed as 0.10! param d deathrate expressed as a number < 0. For example, 10% is expressed as 0.10. Files include, Lab03.java and Lab03_population.java.
|
Lab 4:
This class takes in Sales and determines the discount to be applied. Since discount is calculated within the class, there is getDiscount method to return the value in the discount variable, but no corresponding setDiscount method. Files include CurrentDateTime.java, Lab04.java, and Lab04_Sales.java.
|
Lab 5:
This java program asks the user how many books were sold by 5 input students. Files included are CurrentDateTime.java, Lab05.java, and Lab05_messages.java. Contents of files include int students, ticketBooks; Lab05Messages msg = new Lab05Messages(); Scanner keyboard = new Scanner(System.in);public void setTickets(int inp_tickets).
--------
|
Lab6:
When this program is ran, it prints this out:
*** printing out dept1 ***Dept Id=10 Dept Name=Sales Located in Houston
*** printing out dept2 ***Dept Id=20 Dept Name=Admin Located in Chicago
Departments are not equal
*** printing out dept3 *** Dept Id=30 Dept Name=Sales & Admin Located in Chicago
Files include, DeptClass.java, Lab06.java, Location.java.
|
Lab7:
This java program askes for students tests scores for 5 students and it demonstrates the use of 2-D arrays. Files included are Lab07.java, Lab07_students.java.
|
Lab 8:
This java program illustrates the use of String and char variables in a Java application. It accepts user name and SSN and creates a userid based upon the following rule: 1st and 2nd character of first name + 1st and 2nd character of last name + last 4 digits of the SSN. Files included are Lab08.java, Lab08CheckDataType.java, Lab08UserID.java.
--------
|
Lab 9:
This is the Java program uses a classes that tests the inheritance hierarchy. Files include Lab09.java, CollegeClass.java, CurrentDatetime.java, FaceToFaceClass.java, WebClass.java.
|
Lab 10:
In this Java program, the program opens and writes to a file. Some sample code is as follows:
public File getFile()
public void writeToFile(String onerec)
case OPEN_AS_INPUT:
Files include:
Lab08.java,
DataFile.java.
|
Lab 11:
This java program prints the following to screen when ran:
Random access file created, Contents displayed below:
Rec # 1 : CourseId = CIS130, Enrollment 20
Rec # 1 : CourseId = CIS150, Enrollment 25
Rec # 1 : CourseId = CIS250, Enrollment 21
Files included are Lab11.java,
Lab11_ObjectInput
Stream.java
Lab11_course.java
Lab11_random_access
_file.java.
--------
|
Lab 12:
This java program is GUI which uses buttons that when clicked show the classes available at a specified college.
Programs included are
Lab12.java,
Lab12_north_Panel.java
Lab12_south_Panel.java
Lab12_west_Panel.java
|
Lab 13:
In this java program, the GUI application asks the user to select the college hall, meal plan, and number of students and if they want delivery or not.
Files included are:
Lab13.java
Lab13_Menus.java
Lab13_Panel_
ComputeDisplay.java
Lab13_Panel
People_Delivery.java
Lab13_Panel_
Sandwiches_
Drinks.java
|
Employees.java
This java program prints to screen the names, positons, id numbers, departments or employees.
Example: Susan Meyers, 47899, Accounting, Vice President, Mark Jones, 39119, IT Programmer, Joy Rogers, 81774, Manufacturng Engineer.
Files include: employee.java, assign03.java
--------
|
DistanceTraveled.Java
This java program asks for the sppeed of the vehicle and how many hours the vehicle has traveled then computes the distance traveled.
Files include, DistanceTraveled.java, CurrentDateTime.java
|
|
|
ISP.java:
This java program contains private variables that hold the type of package and number of hours.
------
---------
MyClass.java
This java program uses call-by values and call-by-reference behaviors.
|
Fraction.java
This java program prints:
Testing constructors (and toString):
The fraction f0 is 0/1
The fraction f1 is 1/0
The fraction f2 is 2/2
Testing add and evaluate:
The floating point value of 1/0 is Infinity
The floating point value of 2/2 is 1.0
Testing gcd:
The gcd of 2 and 10 is: 1
The gcd of 15 and 5 is: 1
The gcd of 24 and 18 is: 1
The gcd of 10 and 10 is: 1
The gcd of 21 and 400 is: 1
|
|
|
FileDisplay.java:
This java program shows how to use FileIO and Exception handling. Prints the content of the file.
--------
|
|