CIS355A CIS 355A CIS/355A - Week 6 - Complete Solution - SPECIAL PRICE !!!
    CIS355A CIS 355A CIS/355A - Week 6 - Complete Solution - SPECIAL PRICE !!! CIS355A CIS 355A CIS/355A - Week 6 - Complete Solution - SPECIAL PRICE !!! CIS355A CIS 355A CIS/355A - Week 6 - Complete Solution - SPECIAL PRICE !!!

CIS355A CIS 355A CIS/355A - Week 6 - Complete Solution - SPECIAL PRICE !!!

$19.99

Step 1:  Index

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.

Sample Program output: View Output Description

Grading Rubric

Index

Points

Description

Standard header included

1

Must contain program’s name, student name, and description of the program

Program compiles

1

Program does not have any error

Program executes

1

Program runs without any error

Correct GUI interface is created

3

Program contains a text area for text input, text box for character input, and the appropriate labels

Correct output is displayed

4

Program displays the correct count for both upper and lower case of the input letter

Subtotal

10

 

 

OUTPUT DESCRIPTION ABOVE:

Step 1 Sample Program Output

The output of Index.java application contains the following user controls and alignment of the controls:

1. Main form has a title of “Character Finder”

2. Upper left corner, a label with the text “Enter Text to be searched”

3. At the top of the form, and just to the right of the “Enter Text” label is a multiline text field.

4. Immediately below the text field, and on the left side of the form, is a label with the text “Enter a Character”.

5. Immediately to the right of the “Enter a Character” label is a small, textbox that will hold a single character.

The sample output of the application has the following text in the input boxes:

1. In the large text field, the sentence “I learned Java strings in Week 6!”

2. The “enter the character” textbox, contains the character a

A standard dialog, or message box, shows the result the search and contains the results of the search and contains the following:

1. Dialog label is “Results”

2. On the left side is the information icon, which is a circle inset with the character i

3. To the right of the information icon, is the output string “Number of a’s: 3

A command button with the text “OK” is centered on the bottom of the diagram.

 STEP 2: Index2 (10 points)

 

Write a Java GUI application Index2.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.

Sample Program output: View Output Description

Grading Rubric

Index2

Points

Description

Standard header included

1

Must contain program’s name, student name, and description of the program

Program compiles

1

Program does not have any error

Program executes

1

Program runs without any error

Correct GUI interface is created

3

Program contains a text area for text input, text area for character count, a button, and the appropriate labels

Correct output is displayed

4

Program displays the correct count for both upper and lower case of each letter of the alphabet

Subtotal

10

 

Step 2:  Index2

Write a Java GUI application Index2.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

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 inmain() 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 amountListArrayList as the product of the corresponding elements in the priceList and quantityListArrayList, for example, amountList.add(priceList.get(i) * quantityList.get(i)).

Afterextend() has put values into the amountListArrayList object, create a method that displays the results of all three lists. Appropriate formatting techniques need to be used to produce a formatted output.

Tip: It is a good idea to create two arrays of type double to store the values that correspond to the price and the values that correspond to the quantity, for example:

double[] PRICE_ARRAY = { 10.62, 14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, 3.98 };
double[] QUANTITY_ARRAY = { 4.0, 8.5, 6.0, 7.35, 9.0, 15.3, 3.0, 5.4, 2.9, 4.8 };

Sample program output:

1) 10.62 * 4.0 = 42.48
2) 14.89 * 8.5 = 126.56
3) 13.21 * 6.0 = 79.26
4) 16.55 * 7.35 = 121.64
5) 18.62 * 9.0 = 167.58
6) 9.47 * 15.3 = 144.89
7) 6.58 * 3.0 = 19.74
8) 18.32 * 5.4 = 98.93
9) 12.15 * 2.9 = 35.24
10) 3.98 * 4.8 = 19.1

Here is A++ solution for CIS355A Week 6!

Solution contains java source file (*.java), class file (*.class) and Word document (put all program, screen shots and output into a word document)

Complete solution, an original work and very detail!

Three java programs Index.java,  Index2.java and ThreeArrayList.java 

You using any java IDE, create new project and add all java source code to src folder and run programs.

If you have more question, please contact me via email support@extutorials.com

I will help you any time

Thanks

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B