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
static int getOnvoldoendesByStudent(Student student) | |
{ | |
int onvoldoendeCount = 0; | |
foreach(Exam exam in exams) | |
{ | |
if(exam.Student == student && exam.Score < 5.5m) | |
{ | |
onvoldoendeCount++; | |
} | |
} |
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
static void Main(string[] args) | |
{ | |
Console.WriteLine(getWorstStudentName()); | |
Console.ReadLine(); | |
} | |
static string getWorstStudentName() |
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; | |
using System.IO; | |
namespace ConsoleApplication1 | |
{ | |
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
double frontRightX = frontMiddleX + (width / frontInverseWidth * Math.Cos(rot + Math.PI * .5)); | |
double frontRightY = frontMiddleY + (width / frontInverseWidth * Math.Sin(rot + Math.PI * .5)); | |
double frontLeftX = frontMiddleX + (width / frontInverseWidth * -Math.Cos(rot + Math.PI * .5)); | |
double frontLeftY = frontMiddleY + (width / frontInverseWidth * -Math.Sin(rot + Math.PI * .5)); |
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
/*! angular-sails-bind - v1.0.5 - 2014-05-20 | |
* https://github.com/diegopamio/angular-sails-bind | |
* Copyright (c) 2014 Diego Pamio; Licensed MIT */ | |
/*global angular:false */ | |
/*global io:false */ | |
/** | |
* Angular service to handle SailsJs resources. | |
* | |
* @author Diego Pamio - Github: diegopamio |