Skip to content

Instantly share code, notes, and snippets.

View janell-baxter's full-sized avatar

Janell Baxter janell-baxter

View GitHub Profile
@janell-baxter
janell-baxter / CatApp01.cs
Created October 10, 2017 21:36
Cat Application 01 (reviewing class relationships)
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;
using System;
using static System.Console;
namespace OOPDayTwoReview
{
class Trivia
{
int Score = 0;
//answers player enters
string[] Answers = new string[6];
/*
* 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
@janell-baxter
janell-baxter / NothingBuntCakes.cs
Created February 16, 2017 20:22
Simple example with object instantiation
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
{
using System;
namespace Try_Catch
{
class Program
{
static void Main()
{
Console.WriteLine("Enter number:");
int number = Convert.ToInt16(Console.ReadLine());
@janell-baxter
janell-baxter / LoafDogMachTwo-ITP-02-07-2017.cs
Last active February 16, 2017 20:12
Example with fundamental concepts: datatype, string, double, class, instance, object, method, function, boolean
/*
* 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;