using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Dcoder {    public class Program    {      public static void Main(string[] args)      {        //Your code goes here        int[] flight_numbers = {101, 202, 303, 404,505};     string[] flight_codes = {                              "CAL", "TAC",                              "CEB", "MAN",                              "BAG"                                                          };     string Contents;         Contents =  Table(flight_numbers, flight_codes);                          Console.WriteLine(Contents);                                      }       private static string Table(int[] flight_numbers, string[] flight_codes){         string menu = null;    menu = "Flight Code: \t\t\t Flight Number:" ;    Console.WriteLine(menu);    for (int i = 0; i < flight_numbers.Length; i++){         Console.WriteLine(flight_codes[i] + "\t\t\t\t\t\t\t\t\t\t\t\t" + flight_numbers[i]);           }        Console.WriteLine("-----------------------------------------------------------");        return null;       }    }

LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN:9781337569798
Author:ECKERT
Publisher:ECKERT
Chapter11: Compression, System Backup, And Software Installation
Section: Chapter Questions
Problem 3DE
icon
Related questions
Question
100%

Could you help me align this 2d column array list? Here is my code. (C#) 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace Dcoder
{
   public class Program
   {
     public static void Main(string[] args)
     {
       //Your code goes here
       int[] flight_numbers = {101, 202, 303, 404,505};

    string[] flight_codes = {

                             "CAL", "TAC",
                             "CEB", "MAN",
                             "BAG"
                            
                            };

    string Contents;
   
    Contents =  Table(flight_numbers, flight_codes);                   
      Console.WriteLine(Contents);    
                          
      }
      private static string Table(int[] flight_numbers, string[] flight_codes){
        string menu = null;
   menu = "Flight Code: \t\t\t Flight Number:" ;
   Console.WriteLine(menu);
   for (int i = 0; i < flight_numbers.Length; i++){
     
  Console.WriteLine(flight_codes[i] + "\t\t\t\t\t\t\t\t\t\t\t\t" + flight_numbers[i]);  
        }
       Console.WriteLine("-----------------------------------------------------------");
       return null;
      }
   }
}

1:48
9.00
KB/S
23
jdoodle.com/compile-c-s
9
Execute Mode, Version, Inputs & Arguments
Execute
Result
CPU Time: 0.02 sec(s), Memory: 17304 kilobyte(s)compiled and ex
Flight Code:
DUBAI
Flight Number:
FRANCE
US
303
JAPAN
UK
505
Files Uploaded
* /uploads/jdoodle.cs.txt
1
4
5
7
8
9.
q w e
rtyu iop
d fgh jkl
(
S
&
Z X c vbn m
!
?
12#
%23
LO
Transcribed Image Text:1:48 9.00 KB/S 23 jdoodle.com/compile-c-s 9 Execute Mode, Version, Inputs & Arguments Execute Result CPU Time: 0.02 sec(s), Memory: 17304 kilobyte(s)compiled and ex Flight Code: DUBAI Flight Number: FRANCE US 303 JAPAN UK 505 Files Uploaded * /uploads/jdoodle.cs.txt 1 4 5 7 8 9. q w e rtyu iop d fgh jkl ( S & Z X c vbn m ! ? 12# %23 LO
1:48
4.00
KB/S
23
jdoodle.com/compile-c-s
9
Execute Mode, Version, Inputs & Arguments
Execute
Result
CPU Time: 0.02 sec(s), Memory: 17304 kilobyte(s)compiled and ex
Flight Number:
101
202
303
404
505
Files Uploaded
O /uploads/jdoodle.cs.txt
I•
1
4
5
7
8
9.
q w e
rtyu iop
d fgh jkl
(
S
&
Z X c vbn m
!
?
12#
%23
LO
Transcribed Image Text:1:48 4.00 KB/S 23 jdoodle.com/compile-c-s 9 Execute Mode, Version, Inputs & Arguments Execute Result CPU Time: 0.02 sec(s), Memory: 17304 kilobyte(s)compiled and ex Flight Number: 101 202 303 404 505 Files Uploaded O /uploads/jdoodle.cs.txt I• 1 4 5 7 8 9. q w e rtyu iop d fgh jkl ( S & Z X c vbn m ! ? 12# %23 LO
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L