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

  What is the current size of q

Suppose an initially-empty queue Q has performed a total of 32 enqueue operations, 10 front operations, and 15 dequeue operations, 5 of which generated QueueEmptyExceptions, which were caught and ignored. What is the current size of Q?

  A calculator application that allows prefix, infix and postf

A calculator application that allows prefix, infix, and postfix expressions to be evaluated (i.e., allows all 3 types of expressions

  Object oriented programming paradigm

Discuss and explain why the object oriented programming paradigm is considered a better choice than the structured programming paradigm.

  Program to clear register a

Write a program to clear Register A, add five to Register A 10 times, and place the result in RAM Location $2000. Use a RAM location for holding the counter.

  Alternative donation scenario

Another alternative donation scenario is to deposit $25,000 now in a savings account with a guaranteed rate of return of 5% per year compounded monthly.

  Explain nefarious computer activities known ping sweeps

Write short description of what they are and include assessment of whether this activity is something to worry about or not.

  What is the smallest negative number

given a tiny computer that has a word size of 6 bits, what is the smallest negative number that this computer can represent if it uses two's complement form

  Sentinel-controlled repetition to allow a user

The computeShippingCharges() method should use sentinel-controlled repetition to allow a user to enter shipping data until the user has indicated that he or she is done. The total shipping charges will be computed and returned as a double value.

  Container that holds the water

The container that holds the water for the football team is 3/10 full. After pouring in 11 gallons of water, it is 4/5 full. How many gallons can the container hold

  What would be the largest number of frames lost

Assuming PPP-like framing, what would be the largest number of frames lost at the receiving end if one if the flag bytes were changed due to error. The only error that can occur is a single flag byte turning into a non-flag byte. Explain your answ..

  Determine the maximum period obtainable from lcg

Determine the maximum period obtainable from following LCG? Xn+1 = aXn (mod 24). What must be the value of a?

  How effective leader can manage changes for new technology

Write down separate 350-word document which explains how the effective leader can manage changes implementing this new technology might need.

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