using System.Collections;
public static void Main()
foreach(var game in games)
Console.WriteLine(String.Format("{0} on {1} published by: {2}, MSRP: ${3:N2}", game.Title, game.Platform, game.Publisher, game.Price));
public static VideoGame[] getGames(){
new VideoGame("Avowed", "Bethesda", "Xbox One", null),
new VideoGame("Ghostwire: Tokyo", "Bethesda", "PS5", null),
new VideoGame("Fall Guys: Ultimate Knockout", "Devolver Digital", "PS4", 19.99 ),
new VideoGame("Ghost of Tsushima", "SIE", "PS4", 59.9899999 ),
new VideoGame("Horizon Zero Dawn", "SIE", "PS4", 19.9949 ),
new VideoGame("Superhot: Mind Control Delete", "Superhot Team", "PS4", 24.99 ),
new VideoGame("Superhot: Mind Control Delete", "Superhot Team", "Xbox One", 24.99 ),
new VideoGame("Cyberpunk 2077", "CDPR", "PS4", null ),
new VideoGame("Cyberpunk 2077", "CDPR", "Xbox One", null ),
new VideoGame("Carrion", "Devolver Digital", "Xbox One", 19.99 ),
new VideoGame("Carrion", "Devolver Digital", "Nintendo Switch", 19.99 ),
new VideoGame("Untitled Goose Game", "Panic", "Nintendo Switch", 29.99 ),
new VideoGame("Untitled Goose Game", "Panic", "PS4", 29.99000000000001 ),
new VideoGame("Overcooked 2", "Team17", "PS4", 24.99 ),
new VideoGame("Overcooked 2", "Team17", "Xbox One", 24.99 ),
new VideoGame("Overcooked 2", "Team17", "Switch", 24.9949 ),
new VideoGame("Warface", "Xbox Game Studio", "Xbox One", 0 ),
public VideoGame(string title, string publisher, string platform, double? price){
public string Title {get; set;}
public string Publisher {get; set;}
public string Platform {get; set;}
public double? Price {get; set;}
public string Esrb {get; set;}
public float MetaCritic {get; set;}