Write a java gui application index2 java

Assignment Help JAVA Programming
Reference no: EM13765352

Strings and Collections:

Program files for each of the following 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 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.

Best College Study.Com

CLICK HERE TO VIEW TUTORIAL

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

1. Index
2. Index2
3. ThreeArrayLists

Reference no: EM13765352

Questions Cloud

What causes criminal behavior : Discusses several theoretical perspectives on and explanations for crime causation. After reviewing the various theories and theoretical perspectives, discuss your personal view regarding what causes criminal behavior
Sales recorded both gross and net : On October 5, Veri-Wyn Company sold to Dunn & Brooks merchandise having a sale price of $23,000 with terms of 1/10, n/30, f.o.b. shipping point.
What is shadows cost of equity : Shadow Corp. has no debt but can borrow at 6.9%. The firm’s WACC is currently 8.7%, and the tax rate is 35%. What is Shadow’s cost of equity? (Percentage). If the firm converts to 35% debt, what will its cost of equity be? (Percentage) If the firm co..
Revenue recognition on annual country club dues : KimoCo Country Club is an exclusive country club located in North Dakota that offers a maximum of 1,000 annual memberships that it sells for $16,000 per year. Payments must be made in full at the start of the golfing season
Write a java gui application index2 java : 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
Issues related to aristophanes : In responding to this topic, be sure that you conceive of "democracy" in a way that is useful in considering Aristophanes' play. Don't just turn to dictionary definitions.
The enrique camarena case : Case Study Analysis: The Enrique Camarena Case, Read "The Enrique Camarena Case - A Forensic Nightmare.
Calculate earnings per share : Beckett, Inc., has no debt outstanding and a total market value of $140,000. Earnings before interest and taxes, EBIT, are projected to be $32,000 if economic conditions are normal. If there is strong expansion in the economy, then EBIT will be 12 pe..
Question regarding the consignment computations : On August 15, 2014, Japan Ideas consigned 500 electronic play systems, costing $100 each, to YoYo Toys Company. The cost of shipping the play systems amounted to $1,250 and was paid by Japan Ideas.

Reviews

Write a Review

JAVA Programming Questions & Answers

  What is server-side and client-side scripting

What is Server-side and Client-side scripting - Explain the differences between server-side and client - side scripting languages.

  Variable is named res and is used to input a resistanc

Assume the existence of the following Java GUI application. There are two text fields for user input. The first JTextField variable is named res and is used to input a resistance value in ohms. The second JTextField variable named cap is used to..

  Develop a program that will handle a golfer and his scores

develop a program that will handle a Golfer and his scores. The program will be comprised of two classes: a Golfer class that will manage all the golfer's scores and a Score class.This is a class designed to represent a golfer including his name, hom..

  Prepare a polynomial-time algorithm

Write a polynomial-time algorithm that, given an initial configuration (P_1, P_2, ..., P_k), decides if it is a winning configuration - Prepare a polynomial-time algorithm that decides if it is a winning configuration.

  Java program that reads an input

Create a java program that reads an input of n lines with the first line being the number of people in the contest and the remaining lines a numeric 9 digit code for each person that gets a vote

  Print the name and number

Question is to print the name and number you entered in order either asked by name or number.

  Discuss key environmental issues facing north america

Discuss the key environmental issues facing North America based on the discussion in the text. Which ones do you see threatening the quality of life in North America the most? Do you have any ideas on how these issues might be addressed?

  Write a program that prompts the user for a start date

write a program that prompts the user for a start date and an end date and then prints all of the dates between them (inclusive), with seven tab-separated dates on each line.

  Describe different professional levels in this discipline

What is Anesthesiology and critical care medicine describe the specific discipline, what is their focus (i.e., emergency medicine, education and prevention, psychiatric treatment etc.) Describe the different professional levels in this discipline

  Implementing a relatively simple text-compression scheme

You will be implementing a relatively simple text-compression scheme - It should run from the command line.

  Explain java-oriented microprocessors presented by sun

Research the latest Java-oriented microprocessors presented by Sun. In what ways are they optimized to implement Java programs?

  Write a program to find solution tocryparithmetic puzzle

Write a program (Crypta.java) that finds a solution to the cryparithmetic puzzle: TOO + TOO + TOO+ TOO = GOOD

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd