sing C# I have to match the given output with the help of this code.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Using C# I have to match the given output with the help of this code.

-----------------------------------------------------------------------------------------------

Helping code

-----------------------------------------------------------------------------------------------

class Gem
    {
        public string Name { get; }
        public double Price { get; }
        public double Hardness { get; }
        public string Description { get; }
        public string Location { get; }
        //public string Formula { get; }
        public Gem(string name, double price, double hardness,
            string description, string location)
        {
            Name = name; Price = price; Hardness= hardness;
            Location = Location; Description = Description;
        }
        public static List<Gem> GetList()
            => new List<Gem>
            {
                new Gem("Tanzanite", 1_200, 6.5, "", "Northern Tanzania"),
                new Gem("Jeremejevite", 2_000, 7.0, "An aluminum bearing borate mineral with associated fluoride and hydroxide", "Adun-Chilon Mountains in Siberia"),
                new Gem("Fire Opal", 2_300, 5.75, "A hydrated form of silica", ""),
                new Gem("Poudretteite ", 3_000, 5, "", "Mont St. Hilaire Quebec, Canada"),
                new Gem("Benitoite", 4_000, 6.25, "Barium, titanium, and silica", "San Benito, California"),
                new Gem("Musgravite", 6_000, 8.25, "An aluminum oxide with variable proportions of magnesium, iron, and zinc", "Musgrave Ranges, Australia"),
                new Gem("Red Beryl", 10_000, 7.75, "Beryllium, aluminum, and silicate", "Thomas Range, Utah"),
                new Gem("Alexandrite ", 12_000,8.5, "A type of chrysoberyl", "Ural Mountains, Russia"),
                new Gem("Diamond", 15_000, 10, "Pure carbon arranged in a diamond lattice", ""),
                new Gem("Serendibite", 18_000, 6.75, "Silicate mineral", "Mogok area of Myanmar"),
                new Gem("Grandidierite", 20_000, 7.5, "", "Madagascar "),
                new Gem("Taaffeite", 35_000, 8.25, "0", "Alluvial deposits within Sri Lanka and Tanzania"),
                new Gem("Blue Diamond", 3_930_000, 10, "", ""),
                new Gem("Jadeite", 3_000_000, 7, "", ""),
                new Gem("Pink Diamond", 1_190_000, 10, "", ""),
                new Gem("Emerald", 305_000, 8, "", ""),
                new Gem("Ruby", 1_180_000, 8, "", ""),
                new Gem("Red Diamond", 1_000_000, 10, "", "")
            };
    }

-----------------------------------------------------------------------------------------------------------------------

THE OUTPUT

------------------------------------------------------------------------------------------------------------------------

 Tanzanite $1,200 6.50
 Jeremejevite $2,000 7.00
 Fire Opal $2,300 5.75
 Poudretteite  $3,000 5.00
 Benitoite $4,000 6.25
 Musgravite $6,000 8.25
 Red Beryl $10,000 7.75
 Alexandrite  $12,000 8.50
 Diamond $15,000 10.00
 Serendibite $18,000 6.75
 Grandidierite $20,000 7.50
 Taaffeite $35,000 8.25
 Blue Diamond $3,930,000 10.00
 Jadeite $3,000,000 7.00
 Pink Diamond $1,190,000 10.00
 Emerald $305,000 8.00
 Ruby $1,180,000 8.00
 Red Diamond $1,000,000 10.00
Press enter to terminate application ...

Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY