#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>

//"Click on a tab at the bottom to see that quality sorted from highest to lowest.", , , , , , , 
//Oil, Hardness, Cleansing, Condition, Bubbly, Creamy, Iodine, INS

struct OILS{
	const char *oil;
	uint8_t hardness;
	uint8_t cleansing;
	uint8_t condition;
	uint8_t bubbly;
	uint8_t creamy;
	uint8_t iodine;
	int16_t ins;

	uint8_t caprylic;
	uint8_t caproic;
	uint8_t capric;
	uint8_t lauric;
	uint8_t myristic;
	uint8_t palmitic;
	uint8_t stearic;
	uint8_t ricinoleic;
	uint8_t oleic;
	uint8_t linoleic;
	uint8_t linolenic;
	uint8_t arachidic;
	uint8_t other;
};

struct OILS oils[107] = {
	{"Myristic acid", 99, 99, 0, 99, 0, 1, 246, 0, 99, 0, 0, 0, 0, 0, 0, 1},
	{"Stearic acid", 99, 0, 0, 0, 99, 2, 196, 0, 0, 0, 99, 0, 0, 0, 0, 1},
	{"Palmitic acid", 98, 0, 0, 0, 98, 2, 213, 0, 0, 99, 0, 0, 0, 0, 0, 1},
	{"Coconut oil, fractionated", 93, 93, 0, 93, 0, 1, 324, 54, 1, 41, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1},
	{"Babassu oil", 85, 70, 10, 70, 15, 15, 230},
	{"Murumuru buttter", 82, 73, 18, 73, 9, 25, 250},
	{"Coconut oil 76 degree", 79, 67, 10, 67, 12, 10, 258, 8, 0, 8, 50, 16, 8, 2, 0, 5, 2, 0, 0, 1},
	{"Tucuma seed butter", 77, 71, 13, 71, 6, 13, 175},
	{"Cohune oil", 75, 64, 21, 64, 11, 30, 175},
	{"Monoi de Tahiti oil", 73, 60, 2, 60, 13, 9, 246},
	{"Palm kernel oil flakes", 70, 61, 18, 61, 9, 20, 183},
	{"Palm stearin", 67, 2, 33, 2, 65, 48, 151},
	{"Illipe butter", 62, 0, 35, 0, 62, 33, 152},
	{"Cocoa butter", 61, 0, 38, 0, 61, 37, 157},
	{"Kokum butter", 60, 0, 37, 0, 60, 35, 155},
	{"Tallow beef", 58, 8, 40, 8, 50, 45, 147},
	{"Ghee, any bovine", 55, 15, 22, 15, 40, 30, 191},
	{"Milk fat, any bovine", 55, 15, 22, 15, 40, 30, 191},
	{"Walmart GV shortening", 54, 5, 44, 5, 49, 49, 151},
	{"Sal palmetto oil", 53, 42, 36, 42, 11, 44, 176},
	{"Tallow sheep", 51, 14, 31, 14, 37, 54, 156},
	{"Kpangnan butter", 50, 0, 50, 0, 50, 42, 149},
	{"Palm oil", 50, 1, 49, 1, 49, 53, 145},
	{"Red palm butter", 50, 1, 49, 1, 49, 53, 145},
	{"Sal butter", 50, 0, 42, 0, 50, 39, 146},
	{"Saw palmetto extract", 50, 40, 40, 40, 10, 45, 185},
	{"Mango seed butter", 49, 0, 48, 0, 49, 45, 146},
	{"Coffee bean oil, green", 46, 0, 50, 0, 46, 85, 100},
	{"Mowrah butter", 46, 0, 51, 0, 46, 62, 132},
	{"Shea butter", 45, 0, 54, 0, 45, 59, 116},
	{"Tallow deer", 45, 1, 48, 1, 44, 31, 166},
	{"Capuaca butter", 42, 0, 44, 0, 42, 38, 155},
	{"Lard, pig tallow", 42, 1, 52, 1, 41, 57, 139},
	{"Coffee bean oil, roasted", 40, 0, 48, 0, 40, 87, 93},
	{"Ostrich oil", 36, 4, 57, 4, 32, 97, 128},
	{"Mango seed oil", 35, 0, 61, 0, 35, 60, 130},
	{"Horse oil", 34, 3, 49, 3, 31, 79, 117},
	{"Chicken fat", 33, 1, 59, 1, 32, 69, 130},
	{"Neem tree oil", 33, 0, 63, 0, 33, 89, 124},
	{"Emu oil", 32, 0, 55, 0, 32, 60, 128},
	{"Avocado butter", 31, 0, 61, 0, 31, 67, 120},
	{"Ucuuba butter", 31, 0, 49, 0, 31, 38, 167},
	{"Baobab oil", 29, 1, 67, 1, 28, 75, 125},
	{"Cottonseed oil", 26, 0, 71, 0, 26, 108, 89},
	{"Crisco, old", 26, 0, 70, 0, 26, 93, 115},
	{"Rice bran oil", 26, 1, 69, 1, 25, 110, 70},
	{"Almond Butter", 25, 1, 74, 1, 24, 70, 118},
	{"Crisco, new with palm", 25, 0, 74, 0, 25, 111, 82},
	{"Tamanu oil, kamani", 25, 0, 73, 0, 25, 111, 82},
	{"Soybean, 27.5% hydro", 24, 0, 49, 0, 24, 78, 113},
	{"Yangu, cape cheasnut", 23, 0, 76, 0, 23, 95, 97},
	{"Avocado oil", 22, 0, 70, 0, 22, 86, 99},
	{"Pumpkin seed oil, virgin", 19, 0, 83, 0, 19, 128, 67},
	{"Wheat germ oil", 19, 0, 75, 0, 19, 128, 58},
	{"Marula Oil", 18, 0, 79, 0, 18, 73, 119},
	{"Olive oil", 17, 0, 82, 0, 17, 85, 105},
	{"Olive oil pomace", 17, 0, 83, 0, 17, 84, 104},
	{"Black cumin seed oil", 16, 0, 83, 0, 16, 133, 62},
	{"Jatropha oil", 16, 0, 78, 0, 16, 102, 91},
	{"Shea oil, fractionated", 16, 0, 84, 0, 16, 83, 102},
	{"Soybean oil", 16, 0, 82, 0, 16, 131, 61},
	{"Argan Oil", 15, 1, 81, 1, 14, 95, 95},
	{"Sesame oil", 15, 0, 83, 0, 15, 110, 81},
	{"Borage oil", 14, 0, 68, 0, 14, 135, 55},
	{"Corn oil", 14, 0, 84, 0, 14, 117, 69},
	{"Macadamina nut oil", 14, 0, 61, 0, 14, 76, 119},
	{"Moringa oil", 14, 0, 73, 0, 14, 68, 124},
	{"Passion fruit seed oil", 13, 0, 86, 0, 13, 136, 47},
	{"Grapeseed oil", 12, 0, 88, 0, 12, 131, 66},
	{"Karanja oil", 12, 0, 73, 0, 12, 85, 98},
	{"Pistachio oil", 12, 0, 88, 0, 12, 95, 92},
	{"Poppy seed oil", 12, 0, 88, 0, 12, 140, 54},
	{"Tallow bear", 12, 2, 79, 2, 10, 92, 100},
	{"Cherry kernel oil avium", 11, 0, 87, 0, 11, 128, 62},
	{"Peanut oil", 11, 0, 82, 0, 11, 92, 99},
	{"Sunflower oil", 11, 0, 87, 0, 11, 133, 63},
	{"Flax oil, linseed", 9, 0, 90, 0, 9, 180, -6},
	{"Linseed oil, flax", 9, 0, 90, 0, 9, 180, -6},
	{"Walnut oil", 9, 0, 78, 0, 9, 154, 45},
	{"Camellia seed oil", 8, 0, 88, 0, 8, 144, 44},
	{"Cranberry seed oil", 8, 0, 92, 0, 8, 150, 40},
	{"Hazelnut oil", 8, 0, 85, 0, 8, 97, 94},
	{"Hemp oil", 8, 0, 90, 0, 8, 165, 39},
	{"Kukui nut oil", 8, 0, 91, 0, 8, 168, 24},
	{"Peach kernel oil", 8, 0, 91, 0, 8, 108, 87},
	{"Perilla seed oil", 8, 0, 87, 0, 8, 196, -6},
	{"Almond Oil", 7, 0, 89, 0, 7, 99, 97},
	{"Safflower oil", 7, 0, 90, 0, 7, 145, 47},
	{"Safflower oil high oleic", 7, 0, 92, 0, 7, 93, 97},
	{"Sunflower oil, high oleic", 7, 0, 88, 0, 7, 83, 106},
	{"Apricot Kernel Oil", 6, 0, 93, 0, 6, 100, 91},
	{"Canola oil, high oleic", 6, 0, 90, 0, 6, 96, 90},
	{"Canola oil, rapeseed", 6, 0, 91, 0, 6, 110, 56},
	{"Rose hip oil", 6, 0, 89, 0, 6, 188, 10},
	{"Mustard oil, kachi gha", 4, 0, 41, 0, 4, 101, 72},
	{"Rapeseed oil", 4, 0, 35, 0, 4, 108, 56},
	{"Plum kernel oil", 3, 0, 91, 0, 3, 98, 96},
	{"Aloe Butter", 0, 0, 0, 0, 0, 0, 249},
	{"Beeswax", 0, 0, 0, 0, 0, 10, 84},
	{"Castor oil", 0, 0, 98, 90, 90, 86, 95},
	{"Evening primrose oil", 0, 0, 89, 0, 0, 160, 30},
	{"Jojoba liquid wax ester", 0, 0, 12, 0, 0, 83, 11},
	{"Lanolin liquid wax", 0, 0, 0, 0, 0, 27, 83},
	{"Meadowfarm oil", 0, 5, 95, 0, 0, 92, 77},
	{"Mink oil", 0, 0, 0, 0, 0, 55, 141},
	{"Oleic acid", 0, 0, 99, 0, 0, 92, 110},
	{"Pine tar", 0, 0, 0, 0, 0, 0, 0}
};

int main(int argc, char **argv){
	int i, j;

	printf("Oil                      Hardness  \tCleansing \tCondition \tBubbly    \tCreamy    \tIodine    \tINS       \n");
	for(i=0; i<107; i++){
		printf("%s", oils[i].oil);
		for(j=strlen(oils[i].oil); j<26; j++)
			printf(" ");
		printf("%u\t\t%u\t\t%u\t\t%u\t\t%u\t\t%u\t\t%d\n", oils[i].hardness, oils[i].cleansing, oils[i].condition, oils[i].bubbly, oils[i].creamy, oils[i].iodine, oils[i].ins);
	}

	return 0;
}
