subject
Computers and Technology, 12.11.2019 01:31 321596

Develop a c# console application that implements three arrays; a string array initialized with exactly the following five data items { "widget 15.50", "thingy 50.99", "ratchet25.00", "clanger115.49", "fracker75.25" }, a string array to hold the five part names to be parsed from the previously detailed string array, an array of five double value prices to be parsed from the previously mentioned array.
create a void method that will accept as arguments the two arrays of strings and the array of doubles when called from main. in the method you will access the five members of the first string array mentioned above and you will parse out the name portion of each string element (first 7 bytes), assigning the string value to the corresponding element in the array of names. in the method you will also parse out the numeric portion of each string and assign it to the corresponding element of the price array. the parsing should be done using the string method substring.
in main, after calling the parsing method you will display the elements of both the array of names and the array of prices side-by-side (do not display the array from which you parsed the data items).
the output should look something like this:
widget $15.50
thingy $50.99
ratchet $25.00
clanger $115.49
fracker $75.25

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
question
Computers and Technology, 22.06.2019 22:20
Pp 4.1 design and implement a class called sphere that contains instance data that represents the sphere’s diameter. define the sphere constructor to accept and initialize the diameter and include getter and setter methods for the diameter. include methods that calculate and return the volume and surface area of the sphere (see pp 3.5 for the formulas). include a tostring method that returns a one-line description of the sphere. create a driver class called multisphere, whose main method instantiates and updates several sphere objects.
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
You know the right answer?
Develop a c# console application that implements three arrays; a string array initialized with exac...
Questions
question
History, 31.07.2019 21:00
Questions on the website: 13722366