Category Archives: Uncategorized

The Book Of Not by Tsitsi Dangarembwa – a review

I bought The Book Of Not in 2010. I waited 3 years to read it. The first time I opened the book, I felt overwhelmed with anticipation. I was not sure that if I read the book in between my … Continue reading

Posted in Uncategorized | Leave a comment

Nonrecursive Factorial Algorithm and Implementation in python

Algorithm fact(n)     input: Nonegative integer n     output: Fibonacci value of n     if n = 0         return 1     m ← 1     k ← 1      while n ≥ k do           m ← … Continue reading

Posted in Uncategorized | Leave a comment

How to translate Shona to English.

Shona to English translation is not easy. So is any translation, because no language is one to one with another language no matter how unrelated or related they are. Shona for one, does not share any roots with English, other … Continue reading

Posted in Uncategorized | Leave a comment

Get fibonacci numbers using JavaScript function

//Returns a Fibonnaci number//@param n is an integerfunction fibonacci(n){ if(n < 0) { return 0; } else if(n

Posted in Uncategorized | Leave a comment

Using Python to visualize the div, mod and remainder of a number.

def divTheory(a,b): n = a; d = b; q = n // d; r = n % d; print(n,” = number n”,d,” = divisor n”,q,” = quotient n”,r, ” = remaindern”);

Posted in Uncategorized | Leave a comment

Chocolate cup cake

http://thepioneerwoman.com/tasty-kitchen/recipes/desserts/molten-chocolate-cake/ 4 pieces (squares) Semi-sweet Baking Chocolate ½ cups Butter 1 cup Powdered Sugar 2 whole Eggs 2 whole Egg Yolks 6 Tablespoons Flour 2 cups Real Whipping Cream (seriously It’s So Much Better!) 2 Tablespoons Sugar Preparation Instructions Preheat … Continue reading

Posted in Uncategorized | Leave a comment

Array sort && lowest || highest number return.

int recursiveMinimum(vector &vArray){ for(size_t i = 1; i < vArray.size(); i++){ int dummy = vArray[i]; unsigned index = i; for(;(index > 0)&&(vArray[index-1]>dummy);) { vArray[index] = vArray[index -1]; index–; } vArray[index] = dummy; } return vArray[0];}

Posted in Uncategorized | Leave a comment

Ion

An ion is an elecrically charged atom.

Posted in Uncategorized | Leave a comment

template

templ ate < cl ass T > // or templ ate< typename T > T maxi mum( T val ue1, T val ue2, T val ue3 ) { T maxi mumVal ue = value1; // assume val ue1 i s … Continue reading

Posted in Uncategorized | Leave a comment

Storage categories

Keywords auto and register are used to declare variables ofthe automatic storage class

Posted in Uncategorized | Leave a comment