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
/* | |
* LoafDog Mania Mach Two | |
* Name, 02/07/2017 | |
* | |
* An example application to show some programming fundamental concepts | |
* datatype, string, double, class, instance, object, method, function, boolean | |
* LoafDog idea created by Spring 2017 Introduction to Programming class | |
*/ | |
using System; |
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 Try_Catch | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Enter number:"); | |
int number = Convert.ToInt16(Console.ReadLine()); |
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; | |
/* | |
* Example created by the Introduction to Programming Fall 2016 class | |
* Showing classes, objects, constructors, and other fundamental C# concepts | |
*/ | |
namespace NothingBuntCakes | |
{ | |
class Program | |
{ |
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
/* | |
* 09/07/2017 | |
* Quick console application to review information covered in prerequisite course | |
* Ask a user/player for profile information (5 questions) | |
* Use information submitted to print out message | |
* Reminder of: | |
* classes (properties and methods) | |
* constructor | |
* colored text | |
* window title |
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 OOPDayTwoReview | |
{ | |
class Trivia | |
{ | |
int Score = 0; | |
//answers player enters | |
string[] Answers = new string[6]; |
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 static System.Console; | |
//uses UML from Jeff Meyers | |
//http://imamp.colum.edu/mediawiki/images/f/f3/CatConainmentAssociation.PNG | |
namespace CatApp | |
{ | |
class Mammal | |
{ | |
protected int Age; | |
protected bool HasHair; |
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() | |
{ |
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
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.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" } }; |
OlderNewer