Skip to content

Instantly share code, notes, and snippets.

View oskaryil's full-sized avatar
🛠️
Building things

Oskar Yildiz oskaryil

🛠️
Building things
View GitHub Profile
@oskaryil
oskaryil / main.cpp
Created August 28, 2016 07:59
Calculate VAT upon entering the price of a product before VAT(25%) has been applied.
#include <iostream>
using namespace std;
/*
* TITLE: VAT PRICE CALCULATOR
* DESCRIPTION: A calculator that applies VAT(25%) to the price of a product.
* AUTHOR: OSKAR YILDIZ
*/
@oskaryil
oskaryil / main.cpp
Last active August 28, 2016 07:31
Circle Area Calculator Assignment
#include <iostream>
#include <cmath>
using namespace std;
/*
Title: CIRCLE AREA CALCULATOR
Description: Calculates the area of a circle upon user input of the circle's radius.
AUTHOR: OSKAR YILDIZ
*/
@oskaryil
oskaryil / main.cpp
Created August 22, 2016 15:54
po.kattis.com cookies practice problem
#include <iostream>
#include <vector>
using namespace std;
int cookies(int N, vector<int> A) {
int totalCookies;
for(int i = 0; i < A.size(); i++) {
totalCookies += A[i]; // Add the amount of each type of cookie to the total.
}
@oskaryil
oskaryil / main.cpp
Created August 19, 2016 17:09
Odd and even number sorter.
#include <iostream>
#include <vector>
using namespace std;
// User inputs 10 integers which get sorted between odd and even numbers.
int main() {
cout << "Enter 10 numbers please:" << endl;