Skip to content

Instantly share code, notes, and snippets.

View 200even's full-sized avatar
🍎

Scott Ferguson 200even

🍎
View GitHub Profile
// Assign "Hello World" to a variable message
var message = "Hello World";
// Assign a different string to a different variable
string different = message;
// Assign a number to a variable
var number = 23;
// Use string interpolation to display the number in a string
// i.e. string interpolation = "Hello {0}"
string leBron = String.Format("Hello {0}", number);
// Make an array of your favorite movies or books or bands. Have at least 4 values.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ConsoleApp1
{
public class Program
{
public void Main(string[] args)
@200even
200even / Day 3.cs
Last active August 29, 2015 14:24
Scott Day 3 Pig Dice Game
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pig_Game
{
//class Player
//{
@200even
200even / Scott Day 4 Planet Express
Last active August 29, 2015 14:24
Scott Day 4 Planet Express
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace PlanetDeliveries
{
class Program
@200even
200even / Scott Week 2 Day 1 Humans Pandas Robots
Created July 6, 2015 21:31
Scott Week 2 Day 1 Humans Pandas Robots
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Humans_Robots_and_Pandas
{
public interface IAllBeings
{
@200even
200even / Scott Week 2 Day 2 - Mechanic Shop
Created July 7, 2015 21:05
Scott Week 2 Day 2 - Mechanic Shop
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mechanic_Shop
{
class Program
{
@200even
200even / Scott - Week2.Day3 -SecretSanta
Last active August 29, 2015 14:24
Scott - Week2.Day3 - Secret Santa
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Week2Day3_SecretSanta
{
@200even
200even / Blackjack - Card Class
Last active August 29, 2015 14:24
Scott - Week2.Day4 - Blackjack
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Blackjack
{
public class Card
{
@200even
200even / Scott - Week3.Day1Bob
Created July 13, 2015 21:50
Scott - Week3.Day1 Bob
public class Bob
{
public string Hey(string remark)
{
if (remarkIsSilence(remark))
{
return "Fine. Be that way!";
}
else if (asking_a_question(remark))
{
@200even
200even / Scott - Week5.Day1 SQL Basics
Created July 27, 2015 20:51
Scott - Week5.Day1 SQL Basics
--Create a table for cities
create table cities
(Place varchar(30),
estimate2013 int,
census2010 int,
change decimal(9,4));
--Insert data for each row
insert into cities
(Place, estimate2013,census2010,change)