Question: 3. Write a C# console program for the following. Given a list of values separated by semicolons or commas entered on a line by a
3. Write a C# console program for the following. Given a list of values separated by semicolons or commas entered on a line by a user, break the line up into individual values and output each value on a separate line. The number of items may change. For each item, If the item is numeric, write in #,##0.000 number format right aligned in a field 15 characters wide If the item is a date, write in long date format Otherwise it's a string, write it out as is. If the item contains the letter "B", write a "!" at the end of the output. Example user input and desired output: Line input by user 45, 18367.313, Bye; Hi; 2/16/2021 Output to console window 45.000 18,367.313 Bye! Tuesday, February 16, 2021 This is just an example. When demoing/testing, we may change the number of and types of values separated by commas or semicolons
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
