Need a console program

Assignment Help JAVA Programming
Reference no: EM13690032

Provide the answer of this program

Question: Need a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed).

As they enter the data, assign it to a two-dimension array where the first dimension contains exactly what they type and the second dimension contains the first non-whitespace character of what they type, in lowercase.

If they enter a blank line, it is acceptable to skip that line. When they type done, do these steps:

Part -1: display: As Entered a1. for each entry in the array, display the index of the first dimension, the second dimension's value, and the first dimension's value on a single line separated by : (colon).

Part -2: display: Bubble Sorted b1. for this sort, each entry in the array, display the original index of the first dimension, the second dimension's value, and the first dimension's value on a single line separated by : (colon) sorted by the second dimension.

Part -3: display: Selection Sorted c1. for this sort, each entry in the array, display the original index of the first dimension, the second dimension's value, and the first dimension's value on a single line separated by : (colon) sorted by the first dimension

Make this program using java programming. Create this program in simple way.

Reference no: EM13690032

Questions Cloud

Decontaminate water containing lead ions : Problem- Decontaminate water containing lead ions by precipitation with iodide ions. The scientist wants the final [Pb2+]=1.00Ã-10?7 M. What must the [I?] be in this solution in order to achieve this? For lead (II) iodide, Ksp=9.8Ã-10?9.
How many grams of liquid sodium needed to absorb : Problem- Liquid sodium is being considered as an engine coolant. How many grams of liquid sodium (minimum) are needed to absorb 1.40 MJ of energy (in the form of heat) if the temperature of the sodium is not to increase by more than 10.0 °C
What volume of no2 can be produced from 0.70 l of o2 : Problem- For the following reaction, what volume of NO2 can be produced from 0.70 L of O2 (measured at the same temperature and pressure), assuming an excess of NO
How many bananas would be needed to power a 100 w light bulb : Problem- If all of the energy from decay of the 40-K in one banana could be captured and converted into electrical energy, how many bananas would be needed to power a 100 W light bulb
Need a console program : Need a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed).
What are spectator ions and what effect do they have : Problem- 100 ml of buffer is made using 0.041 moles of HC2H3O2 (acetic acid) and 0.038 moles of NaC2H3O2 (sodium acetate). The Ka of acetic acid is 1.8 x 10-5 using the above equation, what is the pH of this solution
Mole of h3po4 assume h3po4 has 3 h+ ions per molecule : Problem- How many moles of H+ or OH- ions are there in 3 moles of H2SO4? In 0.2 mole of NaOH? In 1 mole of H3PO4 assume H3PO4 has 3 H+ ions per molecule
Create a procedure named basket : After a shopper completes an order, a procedure is called to update the following columns in the Basket table: orderplaced, subtotal, shipping, tax and total.
Calculate the theoretical yield and percent yield : A reaction was performed in which 0.30 mL of 3,7-dimethyl-3-octanol was reacted with concentrated hydrochloric acid to make 0.25 g of 3-chloro-3,7-dimethyloctane. 1) Calculate the theoretical yield and percent yield for this reaction.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Artificial intelligence and computational linguistics

Artificial intelligence and computational linguistics - Andy Warhol Paintings - Write your answer to this problem on the next page, and feel free to tear out this page as a reference. Just for fim, here's the output of the method given as input a p..

  Design an adt for a two-color

Design an ADT for a two-color, double-stack ADT that consists of two stacks one "red" and one "blue" and has as its operations color-coded versions of the regular stack ADT operations.

  It should have an if statement

The following are hints given: It should have an if statement. This add method determines what number greater than or less than the other number, than it adds the positive or negative. I think this should be a private method.

  Write a one-class java program

Write a one-class Java program with at least one method (besides main) to determine if the data in your dataset (i.e., in data.txt) follows Benford's law.

  Prepare a program that constructs a binary tree and

prepare a program that constructs a binary tree and traverses the tree in pre-order in-order and post-order methods.

  Write program in java to calculate interest

Write a program in java to do the following : the following data is stored for each customer in the bank: account number,average balance and number of transaction for each customer it is required to calculate the interest earn

  Develop java applet that will help elementary school student

Develop a Java applet that will help an elementary school student learn multiplication. Use the Math.random method or a Random object to produce two positive one-digit integers.

  Depicts a model for recording flight and passenger

This assignment requires you to design, implement and test a program using Java features from the first half of the subject content. You are required to implement in Java all the classes presented in the conceptual model according the specificatio..

  Programming exercises

Programming Exercises 1. Write an application named BadSubscriptCaught in which you declare an array of 10 first names. Write a try block in which you prompt the user for an integer and display the name in the requested position.

  Study the code and implement the operator overloading

The Table Q3 on the next page is the code of a class named Circle. Study the code and implement the operator overloading for these relational operators ( , >=) for the Circle class. Then, write a test program that creates two instances of the Circle ..

  Develop a queue class

Print-out of the text file that contains your restaurant information and develop a Queue class. Hint: Check out the sample Queue java source files included with this assignment. Declare a class Party to hold one party.

  Solution for the problem and mention algorithms

Explain the purpose of the program as detail as possible and develop a solution for the problem and mention algorithms to be used and list data structures to be used in solution.

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