CIS 355 Full Course - DevryOnlineHelp
322 views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Scooped by Paganglazerf9
Scoop.it!

CIS 355 Lab 6: Strings and Collections | DeVry Online Help

CIS 355 Lab 6: Strings and Collections | DeVry Online Help | CIS 355 Full Course - DevryOnlineHelp | Scoop.it

http://www.devryonlinehelp.com/product/cis-355-lab-6-strings-and-collections/

Paganglazerf9's insight:

http://www.devryonlinehelp.com/product/cis-355-lab-6-strings-and-collections/

 

CIS 355 Lab 6: Strings and Collections

In this lab you will create three programs

Index.java Index2.java ThreeArrayLists.java

Step 1: Index.java

Write a Java GUI application called Index.java that inputs several lines of text and a search character and uses String method indexOf to determine the number of occurrences of the character in the text. This program is not case sensitive and both upper and lower case must be counted for.

Step 2: Indx2.java

Write a Java GUI applicationIndex2.java based on the program in Step 1 that inputs several lines of text and uses String method indexOf to determine the total number of occurrences of each letter of the alphabet in the text. Uppercase and lowercase letters should be counted together. Store the totals for each letter in an array, and print the values in tabular format after the totals have been determined.

 

Step 3: ThreeArrayLists.Java

Write a program called ThreeArrayLists.java that declares three ArrayList objects referenced by the objects named priceList, quantityList, and amountList. Each ArrayList should be declared in main() and should be capable of holding a minimum of 10 double-precision numbers.

The numbers that should be stored in priceList are 10.62, 14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, 3.98. The numbers that should be stored in quantityList are 4, 8.5, 6, 7.35, 9, 15.3, 3, 5.4, 2.9 4.8.

Your program should pass object references to these three ArrayList objects to a method named extend(), which should calculate the elements in the amountList ArrayList as the product of the corresponding elements in the priceList andquantityList ArrayList, for example, amountList.add(priceList.get(i) * quantityList.get(i)).

Program files for each of the following three programs

more...
No comment yet.
Scooped by Paganglazerf9
Scoop.it!

CIS 355 Lab 4: Inheritance and Simple GUI | DeVry Online Help

http://www.devryonlinehelp.com/product/cis-355-lab-4-inheritance-and-simple-gui/

Paganglazerf9's insight:

http://www.devryonlinehelp.com/product/cis-355-lab-4-inheritance-and-simple-gui/

 

CIS 355 Lab 4: Inheritance and Simple GUI

Program files for each of the following three programs

1.  InheritanceTest

2.  DayGui

3.  OfficeAreaCalculator

Step 1: InheritanceTest

Write a program called InheritanceTest.java to support an inheritance hierarchy for class Point-Square-Cube. Use Point as the superclass of the hierarchy. Specify the instance variables and methods for each class. The private variable of Point should be the x-y coordinates. The private data of Square should be the sideLength. The private data of Cube should be depth. Each class must provide applicable accessor, mutator, and toString() methods for manipulating private variables of each corresponding class. In addition, the Square class must provide the area() and perimeter() methods. The Cube must provide the area() and volume() methods.

Write a program that instantiates objects of your classes, ask the user to enter the value for x, y, and sideLength, test all instance methods and outputs of each object’s perimeter, area, and volume when appropriate.

For the inheritancetest you will need a circle.java file for it to operate correctly

Step 2: Day GUI

Write a program called DayGui.java that creates a GUI having the following properties

Object

Property

Setting

JFrame

Name
Caption
Layout

mainFrame
Messages
FlowLayout

JButton

Name
Caption
Mnemonic

cmdGood
Good
G

JButton

Name
Caption
Mnemonic

cmdBad
Bad
B

Add individual event handlers to your program so that when a user clicks the Good button, the message “Today is a good day!” appears in a dialog box, and when the Bad button is clicked, the message “I’m having a bad day today!” is displayed. The following tutorial shows you much of the code solution. Feel free to use the tutorial, but make changes so that you are not simply copying the tutorial code for your entire solution. To make this different from the tutorial, change the colors of the buttons and panel. Also, add this application to a tabbed pane along with the program you will complete in the next step, Step 3. The following tutorials will likely be useful as you work to complete this step:

Step 3: OfficeAreaCalculator

Write a program called OfficeAreaCalculator.java that displays the following prompts using two label components

Enter the length of the office: Enter the width of the office:

Have your program accept the user input in two text fields. When a button is clicked, your program should calculate the area of the office and display the area in a text field with a label of Area. This display should be cleared whenever the input text fields receive the focus. A second button should be provided to terminate the application (Exit button).

The following tutorial shows you much of the code solution. Feel free to use the tutorial, but make changes so that you are not simply copying the tutorial code for your entire solution. To make this different from the tutorial, change the colors of the panel. Also, add this application to the same tabbed pane (see the JTabbedPane tutorial) as the application you built in Step 2, the DayGui application.

more...
No comment yet.
Scooped by Paganglazerf9
Scoop.it!

CIS 355 Lab 1: Environment setup | DeVry Online Help

http://www.devryonlinehelp.com/product/cis-355-lab-1-environment-setup/

Paganglazerf9's insight:

http://www.devryonlinehelp.com/product/cis-355-lab-1-environment-setup/

 

CIS 355 Lab 1: Environment setup

Program files for each of the following three programs.

ShowEscapeSequences.java  Circle.java PracticeArithmeticOperators.java

Step 1: Show escape sequences

Write a Java program named ShowEscapeSequences.java that displays the following.

I really like
CIS355A
“Business Application Programming with Lab using JAVA”

Step 2: Circle

Write an application called Circle.java that inputs from the user the radius of a circle as an integer and prints the circle’s diameter, circumference, and area. Use the example program and GUI technique message dialog box shown in the Week 1 Lecture.

Use the following formulas.

* radius

* Math.PI * radius

* radius * radius

Use the predefined constant Math.PI for your calculation. This constant is more precise than the value 3.14159. Class Math is defined in the java.lang package so you do not need to import it.

Step 3: PracticeArithmeticOperators

Write an application called PracticeArithmeticOperators.java that asks the user to enter two numbers. The program is to convert these numbers from String to type int and then print in a tabular format the sum, the difference, the product, and the quotient of the two numbers entered. Use the example program shown in the Week 1 Lecture. For example, if the user enters 25 and 5, the following should be displayed.

Operation

Result

25 + 5

30

25 – 5

20

25 * 5

125

25 / 5

more...
No comment yet.
Scooped by Paganglazerf9
Scoop.it!

CIS 355 Lab 5: Java Swing Components and File Processing | DeVry Online Help

http://www.devryonlinehelp.com/product/cis-355-lab-5-java-swing-components-and-file-processing/

Paganglazerf9's insight:

http://www.devryonlinehelp.com/product/cis-355-lab-5-java-swing-components-and-file-processing/

 

CIS 355 Lab 5: Java Swing Components and File Processing

Program files for each of the following two programs

1.  GuessGame

2.  Text File I/O

Step 1: GuessGame

Write a program named GuessGame.java that plays the game “guess the number” as follows: Your program chooses the number to be guessed by selecting an integer at random in the range 1–1000. The program then displays the following in a label.

I have a number between 1 and 1000 — can you guess my number?

Please enter your guess: ____________________

A JTextField should be used to input the guess. A JButton must be provided to allow the user to press each time a guess is entered. As each guess is input, the background color should change to either red or blue. Red indicates that the user is getting warmer, and blue indicates that the user is getting colder. A JLabel should display either Too High or Too Low to help the user zero in on the correct answer. When the user gets the correct answer, Correct! should be displayed, and the JTextField used for input should be cleared and changed to be uneditable. Also, a JButton should be provided to allow the user to play the game again. When the New Game JButton is clicked, a new random number should be generated and the input JTextField changed to be editable. A JButton must be provided to allow the user to exit the application. Also provide a count of the number of guesses the user entered when the correct number is guessed.

Step 2: Text File I/O

Write a program called TextFileIO.java to create a file named numbers.dat. Then create an algorithm that writes all even numbered integers from 1 to 100, separated by a comma. After the file has been created, close and reopen the file and display the results to the screen. After the results have been displayed append the odd number integers from 1 to 100, separated by a comma to the end of the file. Reopen the file and display the results. The contents of the file should be the even numbers from 1 to 100 separated by a comma followed by the odd number from 1 to 100 separated by a comma. The output of this program would be something like the following

2,4,6,8,10,12,14,……,98,100
2,4,6,8,10,12,14,……,98,100,1,3,5,7,9,……..97,99

more...
No comment yet.
Scooped by Paganglazerf9
Scoop.it!

CIS 355 Lab 3: Arrays, Classes, and Objects | DeVry Online Help

CIS 355 Lab 3: Arrays, Classes, and Objects | DeVry Online Help | CIS 355 Full Course - DevryOnlineHelp | Scoop.it

http://www.devryonlinehelp.com/product/cis-355-lab-3-arrays-classes-and-objects/

Paganglazerf9's insight:

http://www.devryonlinehelp.com/product/cis-355-lab-3-arrays-classes-and-objects/

 

CIS 355 Lab 3: Arrays, Classes, and Objects

Program files for each of the following two programs

1.  Cylinder & Cylinder test

2.  Date & Date test

Step 1: Cylinder

Create a class called Cylinder.java that contains two double-precision instance variables named radius and height. The class should include a constructor that initializes the radius and height variables. Also, you need a class method namedvolume() that returns the volume of a Cylinder object. The volume of a cylinder is given by its radius squared times its height times Pi (radius * radius * height * Math.PI). You can either use the value 3.1416 for Pi or use the Java provided value named Math.PI.

Write a class called CylinderTest.java and declare an array of three Cylinder objects to call the methods you declared in the Cylinder class. Make sure that all class methods are called from main(). Have main() display the value returned by volume() and verify the returned value by hand calculations (paper/pencil). Prompt the user to enter the values for the radius and height of each Cylinder object in the array.

Step 2: Date

Create a program called Date.java to perform error-checking on the initial values, for instance: fields month, day, and year. Also, provide a method nextDay() to increment the day by one. The Date object should always remain in a consistent state.

Write a program called DateTest.java that prompts the user to enter the month, day, and year as numeric values. This program then creates a Date object using the Date class you just created and tests the nextDay() method. This can be done in a loop of 40 iterations: the Date object calls the nextDay() method and prints the date during each iteration of the loop. This loop is to illustrate that the nextDay() method works correctly. Test the following cases:

more...
No comment yet.
Scooped by Paganglazerf9
Scoop.it!

CIS 355 Course Project: Business Systems Programming I - Course Project | DeVry Online Help

CIS 355 Course Project: Business Systems Programming I - Course Project | DeVry Online Help | CIS 355 Full Course - DevryOnlineHelp | Scoop.it

http://www.devryonlinehelp.com/product/cis-355-course-project-business-systems-programming-i-course-project/

Paganglazerf9's insight:

http://www.devryonlinehelp.com/product/cis-355-course-project-business-systems-programming-i-course-project/

 

CIS 355 Course Project: Business Systems Programming I – Course Project

User’s Manual (Due Week 7 along with the Course Project program)

 

Your actual Course Project and User’s Manual are due at the end of Week 7, however, it is strongly recommended that you start your project in Week 5 to avoid many last minute issues.

In Week 7 you will be required to submit a User Manual as well as your Java code. The User Manual can be a simple Word document, with screenshots, that explains how to run your application. Your mark will depend both on the program quality, and the quality of the User’s Manual.

Here are some more detailed guidelines about the User’s Manual

It does not need to be long, probably not more than 10 pages, including screenshots. Write at the expected user’s level, not too technical. Detail all the functionality that the application provides. Best, structure your presentation top-down way. For each function, show what is its purpose and sample execution, with a screenshot.

Minimum Requirements for the Java Program(s) (Due Week 7)

 

Java Program only does not contain Systems Analysis portion of the project

more...
No comment yet.