Write a console program that repeatedly prompts the user

Assignment Help Basic Computer Science
Reference no: EM13207877

Write 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: 1-display: As Entered 2-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). 3-display: Bubble Sorted 4-using a bubble sort, for 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. 5-display: Selection Sorted 6-using a selection sort, for 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. Example: User types: apple Apple Zone apple done You display: As entered 0:a:apple 1:a:Apple 2:z:Zone 3:a:apple Bubble Sorted 0:a:apple 1:a:Apple 3:a:apple 2:z:Zone Selection Sorted 1:a:Apple 0:a:apple 3:a:apple 2:z:Zone

Reference no: EM13207877

Questions Cloud

State the calcium carbonate in the sediment : Assume equilibrium with the calcium carbonate in the sediment and calculate the concentration of calcium ion (in mg/L -1) in the water (25C).
Calculate and display the total retail value of all products : calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the application should stop looping display the final results.
Does exercise cause stress : Does exercise cause stress? (graded)  Is stress good for us? Why or why not? When? Does exercise cause stress? Is working out good for CEOs? For students? Why or why not?
Compute the ph of the buffer if drops : Calculate the pH of the buffer if 10 drops of 0.1mol/L of NaCH3COO is added to 10 drops of 0.1 mol/L of CH3COOH. Equations useful to obtain the solution
Write a console program that repeatedly prompts the user : Write 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
Social psychological phenomena or processes : What are three social psychological phenomena or processes that can be explained by one of the five core social motives. How can they be explained by this social motive, and how do they relate to one another?
Sandwich turning into chemical energy : Let's follow the path of a delicious ham and cheese sandwich with lettuce and pickles as it is eaten and digested! Starting "at the beginning" name the anatomical parts and biochemical roles that contribute to this sandwich turning into chemical ener..
State commercial club soda is produced by pressurizing water : Commercial club soda is produced by pressurizing water with 10 atmospheres of CO2. Find the value of KH for CO2 on the net or in the library, and calculate how much CO2 is in a 12 fl.oz. glass of club soda.
How to determined concentration of the unknown acid : What effect would each of the following erros have on the determined concentration of the unknown acid? (would the calculated value be too high, too low, or unchanged?) explain

Reviews

Write a Review

Basic Computer Science Questions & Answers

  The uml class

The UML Class, Sequence Diagrams etc, can be drawn in preferably NetBeans UML, if it is not convenient on that, any other UML tool would do

  Describe the different parts of the cia triad

Describe the different parts of the C.I.A. triad and how each can be used to improve the overall security of an information system.

  Find companies that specialize in computer forensics

What needs clarified? it's plainly stated use google to find 3 companies that specialize in computer forensics of those 3 companies write 2 or 3 paragraphs comparing what each company does.

  Determine subgame-perfect equilibrium

Targeting again one of the surviving gangsters. Survivors split money equally. Determine subgame-perfect equilibrium.

  How to make sure that written work is free of grammar

How do you make sure that written work is free of grammar and spelling errors? Write down tools or secrets do you use?

  Explain the conceptual model employed in the design

Explain the conceptual model employed in the design of these types. Describe the analogies and concepts these monitors expose to users, including the task-domain objects users manipulate on the screen.

  Explain implications of copyrights on usage of web site

Study and explain copyright implications associated to Web site development. Write down minimum of 350 words explaining the implications of copyrights on usage of content on Web site.

  What is the order of the public key?

the weaknesses that arise in Elgamal encryption if a public key of small order is used. We look at the following example. Assume Bob uses the group Z ? 29 with the primitive element ?= 2. His public key is ?= 28.

  Specific design criteria

Give two languages that are in direct conflict with each other. Provide examples of these conflicts as either programming examples (features allowed or not allowed) or program model, (environment). Compare and contrast the terms readability and write..

  Limit approach to determine the order

Use the limit approach to determine the order for g(n) = n^J and f(n) = n^k, where k > j > 2

  Writing java code by using netbeans

Write a java code using netbeans for the following program. Write a program that asks the user to enter five test scores.

  Write a program to produce a double table

Using the ROL instruction to perform multiplication, write a program to produce a double table. This table should be built from a single int32 value provided by the user and print 3 rows beginning with the starting value. Within that row, the pattern..

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