SlideShare a Scribd company logo
1 of 5
CIS/355 iLab 6 of 6



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                       Must contain program's name, student name, and description of
                                1
included                              the program

Program compiles                1     Program does not have any error

Program executes                1     Program runs without any error

Correct GUI interface                 Program contains a text area for text input, text box for
                                3
is created                            character input, and the appropriate labels

Correct output is                     Program displays the correct count for both upper and lower
                                4
displayed                             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                     Must contain program's name, student name, and description of
                               1
included                            the program

Program compiles               1    Program does not have any error

Program executes               1    Program runs without any error

Correct GUI interface               Program contains a text area for text input, text area for character
                               3
is created                          count, a button, and the appropriate labels

Correct output is                   Program displays the correct count for both upper and lower case
                               4
displayed                           of each letter of the alphabet
Subtotal     10



OUTPUT DESCRIPTION ABOVE:



Step 2 Sample Program Output



The Index2.java form design is a narrow, but long form and contains the following controls:

1. Form title is blank

2. Centered at the top is a label with text “Enter some text”

3. Below the “Enter some text” label is a multiple line text field.

4. Below the text field is a command button, with the text “Counter Occurrences of Each Letter”

5. Below the command button and centered on the form, is long, multiple line text field.



The following sample output of the application has the following text in the fields:

1. Entered text is “Write a Java GUI application Index2.jva based on the program in project1 that
inputs several lines of text and uses the string method indexOf to determine

2. The output of the application is listed in the long text field, with each letter and frequency of the
latter on the same line, separated by a tab space.


STEP 3: ThreeArrayLists (20 points)



Write a program in a GUI JFRAME 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 and quantityList ArrayList, for example,
amountList.add(priceList.get(i) * quantityList.get(i)).
After extend() has put values into the amountList ArrayList 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

Grading Rubric
          ThreeArrayLists              Points                       Description

                                                Must contain program's name, student name, and
Standard header included                  1
                                                description of the program

Program compiles                          1     Program does not have any error

Program executes                          1     Program runs without any error

                                                ThreeArrays.java is created and contains all required
Created ThreeArrays class                 2
                                                methods

priceList ArrayList is created and              ArrayList object is created and contains correct
                                          2
contains the correct values                     values

quantityList ArrayList is created               ArrayList object is created and contains correct
                                          2
and contains the correct values                 values

amountList ArrayList is created                 ArrayList object is created and contains correct
                                          2
and contains the correct values                 values

extend method is created, which                 extend method exists and contains the required
                                          2
receives arrays as arguments                    parameters

extend method calculates the                    extend method calculates the values that go in the
items in the amount ArrayList             2     amount ArrayList and inserts those values in the
object                                          amount object
method that displays the values           display method is created and produces the required
of all three ArrayList objects is    2    output by formatting and printing the values in each
created                                   of the ArrayList objects

                                          Output looks like the required output shown in the
Correct output is displayed          3
                                          lab description

                          Subtotal   20




CLICK HERE TO GET THE SOLUTION !!!!!!!!!!

More Related Content

What's hot (19)

Essential language features
Essential language featuresEssential language features
Essential language features
 
Ap Power Point Chpt3 B
Ap Power Point Chpt3 BAp Power Point Chpt3 B
Ap Power Point Chpt3 B
 
Basic controls in asp
Basic controls in aspBasic controls in asp
Basic controls in asp
 
Handout#04
Handout#04Handout#04
Handout#04
 
Handout#05
Handout#05Handout#05
Handout#05
 
C programming perso notes
C programming perso notesC programming perso notes
C programming perso notes
 
Vks python
Vks pythonVks python
Vks python
 
C question
C questionC question
C question
 
Pc module1
Pc module1Pc module1
Pc module1
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Let's us c language (sabeel Bugti)
Let's us c language (sabeel Bugti)Let's us c language (sabeel Bugti)
Let's us c language (sabeel Bugti)
 
Python - Functions - Azure Jupyter Notebooks
Python - Functions - Azure Jupyter NotebooksPython - Functions - Azure Jupyter Notebooks
Python - Functions - Azure Jupyter Notebooks
 
1. overview of c
1. overview of c1. overview of c
1. overview of c
 
SAS Macro
SAS MacroSAS Macro
SAS Macro
 
Assignment11
Assignment11Assignment11
Assignment11
 
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branchComputer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
 
Introduction of C++ By Pawan Thakur
Introduction of C++ By Pawan ThakurIntroduction of C++ By Pawan Thakur
Introduction of C++ By Pawan Thakur
 
C-PROGRAM
C-PROGRAMC-PROGRAM
C-PROGRAM
 
Handout#10
Handout#10Handout#10
Handout#10
 

Viewers also liked

Investigación de operaciones I
Investigación de operaciones IInvestigación de operaciones I
Investigación de operaciones ILuisLuzardoGV
 
lesson ( 21) Animals 2
lesson ( 21) Animals 2lesson ( 21) Animals 2
lesson ( 21) Animals 2Amnah AlBishri
 
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...giovani coache bravo
 
1 s2.0-s0092867412010616-main
1 s2.0-s0092867412010616-main1 s2.0-s0092867412010616-main
1 s2.0-s0092867412010616-mainDragon Yott
 
Τα παιδιά της Αφρικής
Τα παιδιά της ΑφρικήςΤα παιδιά της Αφρικής
Τα παιδιά της ΑφρικήςSofia Chroni
 
Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6helpido6
 
A case of synchronous double primary neuroendocrine lung cancer
A case of synchronous double primary neuroendocrine lung cancerA case of synchronous double primary neuroendocrine lung cancer
A case of synchronous double primary neuroendocrine lung cancerDragon Yott
 
CIS/355 ilab 4 of 6
CIS/355 ilab 4 of 6CIS/355 ilab 4 of 6
CIS/355 ilab 4 of 6helpido6
 
Morocco (Green World)
Morocco (Green World)Morocco (Green World)
Morocco (Green World)DHRUVIN PATEL
 
Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6helpido6
 
Mutasi dan promosi jabatan
Mutasi dan promosi jabatanMutasi dan promosi jabatan
Mutasi dan promosi jabatanAditya Canakia
 
Lung tumors lecture
Lung tumors   lectureLung tumors   lecture
Lung tumors lectureDragon Yott
 
Plannnning sheeeet phase one
Plannnning sheeeet phase onePlannnning sheeeet phase one
Plannnning sheeeet phase oneNatasha Jobe
 
slides de la table-ronde livraison du dernier kilomètre Retail Chain 2015
slides de la table-ronde livraison du dernier kilomètre Retail Chain 2015slides de la table-ronde livraison du dernier kilomètre Retail Chain 2015
slides de la table-ronde livraison du dernier kilomètre Retail Chain 2015Logicités
 
The Causes of Modern Slavery
The Causes of Modern SlaveryThe Causes of Modern Slavery
The Causes of Modern Slaverykalyviatrieste
 

Viewers also liked (20)

Investigación de operaciones I
Investigación de operaciones IInvestigación de operaciones I
Investigación de operaciones I
 
lesson ( 21) Animals 2
lesson ( 21) Animals 2lesson ( 21) Animals 2
lesson ( 21) Animals 2
 
451.full
451.full451.full
451.full
 
344.full
344.full344.full
344.full
 
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
Acuerdos, tareas, pronunciamientos y plan de acción emanados de la asamblea e...
 
1 s2.0-s0092867412010616-main
1 s2.0-s0092867412010616-main1 s2.0-s0092867412010616-main
1 s2.0-s0092867412010616-main
 
Τα παιδιά της Αφρικής
Τα παιδιά της ΑφρικήςΤα παιδιά της Αφρικής
Τα παιδιά της Αφρικής
 
Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6
 
A case of synchronous double primary neuroendocrine lung cancer
A case of synchronous double primary neuroendocrine lung cancerA case of synchronous double primary neuroendocrine lung cancer
A case of synchronous double primary neuroendocrine lung cancer
 
CIS/355 ilab 4 of 6
CIS/355 ilab 4 of 6CIS/355 ilab 4 of 6
CIS/355 ilab 4 of 6
 
275758
275758275758
275758
 
Morocco (Green World)
Morocco (Green World)Morocco (Green World)
Morocco (Green World)
 
Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6
 
Up meier marcelo astuto (21) 7832-4132 www.marceloastuto.com.br
Up meier   marcelo astuto (21) 7832-4132 www.marceloastuto.com.brUp meier   marcelo astuto (21) 7832-4132 www.marceloastuto.com.br
Up meier marcelo astuto (21) 7832-4132 www.marceloastuto.com.br
 
Mutasi dan promosi jabatan
Mutasi dan promosi jabatanMutasi dan promosi jabatan
Mutasi dan promosi jabatan
 
Lung tumors lecture
Lung tumors   lectureLung tumors   lecture
Lung tumors lecture
 
Plannnning sheeeet phase one
Plannnning sheeeet phase onePlannnning sheeeet phase one
Plannnning sheeeet phase one
 
slides de la table-ronde livraison du dernier kilomètre Retail Chain 2015
slides de la table-ronde livraison du dernier kilomètre Retail Chain 2015slides de la table-ronde livraison du dernier kilomètre Retail Chain 2015
slides de la table-ronde livraison du dernier kilomètre Retail Chain 2015
 
1530 wright
1530 wright1530 wright
1530 wright
 
The Causes of Modern Slavery
The Causes of Modern SlaveryThe Causes of Modern Slavery
The Causes of Modern Slavery
 

Similar to CIS/355 iLab 6 of 6 Character Finder

Cis 355 ilab 6 of 6
Cis 355 ilab 6 of 6Cis 355 ilab 6 of 6
Cis 355 ilab 6 of 6comp274
 
Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6ashhadiqbal
 
Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6comp274
 
Cis 355 i lab 2 of 6
Cis 355 i lab 2 of 6Cis 355 i lab 2 of 6
Cis 355 i lab 2 of 6helpido9
 
Lab exp declaring arrays)
Lab exp declaring arrays)Lab exp declaring arrays)
Lab exp declaring arrays)Daman Toor
 
Comp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codeComp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codepradesigali1
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6ashhadiqbal
 
Cis 355 ilab 3 of 6
Cis 355 ilab 3 of 6Cis 355 ilab 3 of 6
Cis 355 ilab 3 of 6solutionjug2
 
Cis 355 ilab 3 of 6
Cis 355 ilab 3 of 6Cis 355 ilab 3 of 6
Cis 355 ilab 3 of 6ashhadiqbal
 
Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6ashhadiqbal
 
Vizwik Coding Manual
Vizwik Coding ManualVizwik Coding Manual
Vizwik Coding ManualVizwik
 
Cis355 a ilab 2 control structures and user defined methods devry university
Cis355 a ilab 2 control structures and user defined methods devry universityCis355 a ilab 2 control structures and user defined methods devry university
Cis355 a ilab 2 control structures and user defined methods devry universitysjskjd709707
 
Symbol Table, Error Handler & Code Generation
Symbol Table, Error Handler & Code GenerationSymbol Table, Error Handler & Code Generation
Symbol Table, Error Handler & Code GenerationAkhil Kaushik
 
Hey i have attached the required file for my assignment.and addi
Hey i have attached the required file for my assignment.and addiHey i have attached the required file for my assignment.and addi
Hey i have attached the required file for my assignment.and addisorayan5ywschuit
 
(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercisesNico Ludwig
 
S D D Program Development Tools
S D D  Program  Development  ToolsS D D  Program  Development  Tools
S D D Program Development Toolsgavhays
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12Aditi Bhushan
 

Similar to CIS/355 iLab 6 of 6 Character Finder (20)

Cis 355 ilab 6 of 6
Cis 355 ilab 6 of 6Cis 355 ilab 6 of 6
Cis 355 ilab 6 of 6
 
Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6
 
Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6Cis 355 ilab 2 of 6
Cis 355 ilab 2 of 6
 
Cis 355 i lab 2 of 6
Cis 355 i lab 2 of 6Cis 355 i lab 2 of 6
Cis 355 i lab 2 of 6
 
Lab exp declaring arrays)
Lab exp declaring arrays)Lab exp declaring arrays)
Lab exp declaring arrays)
 
OOP Programs
OOP ProgramsOOP Programs
OOP Programs
 
Comp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codeComp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source code
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6
 
Cis 355 ilab 3 of 6
Cis 355 ilab 3 of 6Cis 355 ilab 3 of 6
Cis 355 ilab 3 of 6
 
Cis 355 ilab 3 of 6
Cis 355 ilab 3 of 6Cis 355 ilab 3 of 6
Cis 355 ilab 3 of 6
 
Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6
 
Vizwik Coding Manual
Vizwik Coding ManualVizwik Coding Manual
Vizwik Coding Manual
 
Cis355 a ilab 2 control structures and user defined methods devry university
Cis355 a ilab 2 control structures and user defined methods devry universityCis355 a ilab 2 control structures and user defined methods devry university
Cis355 a ilab 2 control structures and user defined methods devry university
 
Symbol Table, Error Handler & Code Generation
Symbol Table, Error Handler & Code GenerationSymbol Table, Error Handler & Code Generation
Symbol Table, Error Handler & Code Generation
 
Hey i have attached the required file for my assignment.and addi
Hey i have attached the required file for my assignment.and addiHey i have attached the required file for my assignment.and addi
Hey i have attached the required file for my assignment.and addi
 
First approach in linq
First approach in linqFirst approach in linq
First approach in linq
 
(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises
 
S D D Program Development Tools
S D D  Program  Development  ToolsS D D  Program  Development  Tools
S D D Program Development Tools
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12
 
C++ Lab Maual.pdf
C++ Lab Maual.pdfC++ Lab Maual.pdf
C++ Lab Maual.pdf
 

Recently uploaded

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 

CIS/355 iLab 6 of 6 Character Finder

  • 1. CIS/355 iLab 6 of 6 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 Must contain program's name, student name, and description of 1 included the program Program compiles 1 Program does not have any error Program executes 1 Program runs without any error Correct GUI interface Program contains a text area for text input, text box for 3 is created character input, and the appropriate labels Correct output is Program displays the correct count for both upper and lower 4 displayed 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”.
  • 2. 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 Must contain program's name, student name, and description of 1 included the program Program compiles 1 Program does not have any error Program executes 1 Program runs without any error Correct GUI interface Program contains a text area for text input, text area for character 3 is created count, a button, and the appropriate labels Correct output is Program displays the correct count for both upper and lower case 4 displayed of each letter of the alphabet
  • 3. Subtotal 10 OUTPUT DESCRIPTION ABOVE: Step 2 Sample Program Output The Index2.java form design is a narrow, but long form and contains the following controls: 1. Form title is blank 2. Centered at the top is a label with text “Enter some text” 3. Below the “Enter some text” label is a multiple line text field. 4. Below the text field is a command button, with the text “Counter Occurrences of Each Letter” 5. Below the command button and centered on the form, is long, multiple line text field. The following sample output of the application has the following text in the fields: 1. Entered text is “Write a Java GUI application Index2.jva based on the program in project1 that inputs several lines of text and uses the string method indexOf to determine 2. The output of the application is listed in the long text field, with each letter and frequency of the latter on the same line, separated by a tab space. STEP 3: ThreeArrayLists (20 points) Write a program in a GUI JFRAME 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 and quantityList ArrayList, for example, amountList.add(priceList.get(i) * quantityList.get(i)).
  • 4. After extend() has put values into the amountList ArrayList 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 Grading Rubric ThreeArrayLists Points Description Must contain program's name, student name, and Standard header included 1 description of the program Program compiles 1 Program does not have any error Program executes 1 Program runs without any error ThreeArrays.java is created and contains all required Created ThreeArrays class 2 methods priceList ArrayList is created and ArrayList object is created and contains correct 2 contains the correct values values quantityList ArrayList is created ArrayList object is created and contains correct 2 and contains the correct values values amountList ArrayList is created ArrayList object is created and contains correct 2 and contains the correct values values extend method is created, which extend method exists and contains the required 2 receives arrays as arguments parameters extend method calculates the extend method calculates the values that go in the items in the amount ArrayList 2 amount ArrayList and inserts those values in the object amount object
  • 5. method that displays the values display method is created and produces the required of all three ArrayList objects is 2 output by formatting and printing the values in each created of the ArrayList objects Output looks like the required output shown in the Correct output is displayed 3 lab description Subtotal 20 CLICK HERE TO GET THE SOLUTION !!!!!!!!!!