This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ExplorableAreasDemo | |
{ | |
class Item | |
{ | |
public string Name; | |
public string Description; | |
public Item(string name, string description) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using static System.Console; | |
namespace UnderWaterWorld | |
{ | |
class Angler: Creature | |
{ | |
public Angler(string _name, string _greeting) : base(_name, _greeting) | |
{ | |
name = _name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using static System.Console; | |
namespace ExplorableAreasI | |
{ | |
class Game | |
{ | |
List<Location> locations = new List<Location>(); | |
Random random = new Random(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
namespace Cipher | |
{ | |
class Cipher | |
{ | |
string alphabet; | |
string substitute; | |
public Cipher() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace GridArray | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
int[,] grid = new int[5, 4] { { 1, 2, 3, 4 }, { 5, 6, 7, 8 }, { 9, 10, 11, 12 }, { 13, 14, 15, 16 }, { 17, 18, 19, 20 } }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using static System.Console; | |
namespace MegaByteBakery | |
{ | |
class Bakery | |
{ | |
// Two-dimensional array of menu items | |
public static string[,] menu = new string[,] { { "Filled Cupcake", "2.00" }, { "Garlic Bread", "1.50" }, { "Pie", "17.38" }, { "Cookie", "1.35" }, { "Fudge Brownie with Vanilla Icing", "2.60" }, { "Cheese Danish", "2.75" }, { "Croissant", "1.40" } }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using static System.Console; | |
namespace StudyApplication | |
{ | |
class Game | |
{ | |
public Game() | |
{ | |
//constructor sets the title of the app and calls the menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace DayTwoBumblebee | |
{ | |
class Bumblebee | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Application using example code from C# 5.0 Pocket Reference, page 28 | |
//http://shop.oreilly.com/product/0636920023975.do | |
using System; | |
namespace UmbrellaWizard | |
{ | |
class Program | |
{ | |
static void Main() | |
{ |
NewerOlder