Write a console program

Assignment Help Basic Computer Science
Reference no: EM13230410

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: EM13230410

Questions Cloud

What worked best and what was a challenge : Give me an example of a cross-functional team that you worked on. What worked best and what was a challenge?
Which of the following are valid range names in excel : Which of the following are valid range names in Excel?
What is minimum kva rating of each transformer in bank : The secondary's of a step-down, three-phase transformer bank are delta connected and supply a three-phase 240v moter that draws 12A through each line. What is the current in each transformer winding If the turn ratio of the transformers
Explain why operational efficiency is so important to net : Explain why operational efficiency is so important to Net Income, Return on Capital and Income.
Write a console program : 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 an..
What is the analog output voltage of the d-a converter : What is the voltage output resolution of a 16-bit D/A converter with a 15 volt voltage source Also, what is the analog output voltage of the D/A converter if only the MSB is on
What is the magnetic field intensity in the air gap : A coil having 1000 turns is wrapped on ferromagnetic core constructed of sheet steel. The core has a cross-sectional area of 0.0009 m^2 and an average flux path of 30.0 cm. The core also has a length of 2 mm. The flux density in the core and airga..
What is the tax on salvage value : Mars marginal tax rate is 40%, and it uses a 12% WACC to evaluate projects of this nature. The applicable depreciation rates are 20%, 32%, 19%, 12%, 11%, and 6%. If the machine costs $60,000,
Using a pld, develop an i/o port decoder : Using a PLD, develop an I/O port decoder that generates the following high-bank I/O strobes: 300DH, 300BH, 00B6H, and 00EEH.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Wireless technology to benefit related working environment

Explain how airlines, construction industry, the medical field, and education use wireless technology to benefit related working environments?

  Define a class for complex number

Define a class for complex numbers. A complex number is a number of the form a + b*i where for our purposes, a and b are numbers of type double, and i is a number that represents the quantity sqrt(-1).

  Explaining role-computer forensic investigator for law firm

You are the computer forensic investigator for a law firm. The firm acquired a new client, a young woman who was fired from her job for inappropriate files discovered on her computer

  Support day-to-day working activities of organization

____are used to support day-to-day working activities of organization. Typical decisions involve e-commerce transaction acceptance, approval of personal loans by bank.

  Create seven-bit adder in logicworks

Create 7-bit adder. Inputs are X[6..0], Y[6..0], and Cin. Outputs are S[6..0] = X[6..0] + Y[6..0] + Cin, where + is arithmetic addition. Implement adder in LogicWorks. The parts you can use include.

  Display the total and average number of calories burned

Write a condition-controlled while loop that allows the user to enter the calories they burned. Stop looping when the user enters a negative number. Display the Total and Average number of calories burned.

  Designing structured cyclic scheduler with fixed frame size

Executed according to structured cyclic scheduler with fixed frame size. We require to make three types of design decisions according to: i) Select suitable frame size based on constraints.

  Write a program using dialog boxes to convert a temperature

Write a program using dialog boxes to convert a temperature from degrees Fahrenheit to degree Celsius. The formula for converting the temperature from F to C is: C = (f-32) (5/9) Your program should the user to enter a temperature given in degrees..

  Explain performance measures for balanced scorecard system

Explain three specific performance measures which could be utilized in Balanced Scorecard system in industry of your choice.

  Write a program that implements binary search first using

To understand the value of recursion in a programming language write a program that implements binary search first using recursion and without recursion.

  Review and discuss methods for it managers to maintain

Review and discuss methods for IT managers to maintain their skills while gaining new managerial skills

  Describe modifications be made to poorly designed website

Discover the site which you feel is poorly designed and describe what modifications must be made using text as a guide.

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