Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

  1. 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 its 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

      Output to console window

      45, 18367.313, Bye; Hi; 2/16/2021

      45.000

      18,367.313

      Bye!

      Hi

      Tuesday, February 16, 2021

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions