Write a console program that prompts the user to enter data

Assignment Help Programming Languages
Reference no: EM131368206

Assignment

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:

Display: As Entered 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).

Display: Bubble Sorted 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.

Display: Selection Sorted 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.

 

Reference no: EM131368206

Questions Cloud

European countries opted out of moving to the euro : Why do you think some European countries opted out of moving to the euro? Do you think the reasons are purely economic or might there be patriotic reasons? Explain.
Explain health care data collection forms : Explain health care data collection forms. Explain health care database designs. Analyze the application of a database in the desktop environment used in the health care industry.
Effect of the merger on the market concentration ratio : a. What would be the effect of the merger on the market's concentration ratio? On the HHI?
Potential benefits of a more formalized approach : Prepare a weekly forecast clearly labeling your calculations. Explain some of the potential benefits of a more formalized approach to forecasting using course related principles - What are some of the potential benefits of a more formalized approac..
Write a console program that prompts the user to enter data : Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed).
Derive a mealy state graph and table : A sequential circuit has one input (X) and two outputs (D and B). X represents a 4-bit binary number N, which is input least significant bit first. D represents a 4-bit binary number equal to N - 2, which is output least significant bit first. At ..
Ceo executive committee : Develop a 15- to 20-slide Microsoft® PowerPoint® presentation to be presented to the CEO's executive committee that addresses how your chosen organization determines what quantity of labor to demand and what events could shift the demand and suppl..
Cosmetic and perfume products marketed : Enchantment Cosmetics Inc offers a line of cosmetic and perfume products marketed through leading department stores.  Product manager Erika Kane recently raised the suggested retail price on a popular line of mascara products from $9 to $12 follow..
What birth order position best fits your experience : Of the five designated birth order positions Adler identifies, which of these positions do you think has the most challenging developmental task of growing up to become a healthy, mature adult? Explain your rationale in detail taking an objective..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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