Archived entries for Projects

Polynomial Graphing Software

This is another project that I created for school. It can be used to graph any polynomial in terms of a single variable with an integer degree. The plotter allows the user to input a polynomial, the variable the polynomial is in terms of and the range they wish to model the given polynomial over. The software also automatically graphs the first and second derivatives of the given polynomial.

Users can specify polynomials using integer operands and the operators: +, – , *, (multiple * operators for exponentiation)

For example:

(x*x)-6

x*x*x*x+4*x-4

(x-3)*(x+4)

0

4*x

-x

etc…

You can download the jar file here.

Feel free to try it out, suggest improvements and identify any bugs! Feedback can be left below.

Java BigInteger Calculator

This is a project I made for school. It is very similar to the windows calculator and supports the following operations on objects of the Java BigInteger class: addition, subtraction, multiplication, division, factorial, remainder, negation.

You can download the .jar file here.

You can leave a comment below!

A Java Class For Rational Numbers

I thought I would post a Java Class I made for part of a project that deals with rational numbers. Pretty simple, yet sturdy implementation of rational numbers if needed. The code is pretty self explanatory. This implementation can create a Rational object given a string “a/b” where a, b are integers. It can also create a rational object given integers for the numerator and denominator directly. This class also supports methods to print, rationalize and compare Rational objects, as well as preform addition (add), subtraction (sub), multiplication (mul) and division of Rational objects.

You can take a look/download it here.

C# Palindrome Analysis

What is a palindrome you ask? It is a word spelled the same way forwards and backwards. Racecar and civic are examples of palindromes. In my lengthy and interesting quest to learn c#, I created a nifty little program that recursively determines if a given string is a palindrome. Pretty damn cool!

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter a string  to preform palindrome check: ");
string mystring = Console.ReadLine();

bool result = palindrome(mystring);

Console.WriteLine("{0} is a palindrome: {1}", mystring, result);

}

static bool palindrome(string mystring)
{
bool is_palindrome = true;

if (mystring.Length == 1)
{
is_palindrome = true;
}

else if (mystring[0] == mystring[mystring.Length - 1])
{
is_palindrome = palindrome(mystring.Substring(1, mystring.Length - 2));
}

else
{
is_palindrome = false;
}

return is_palindrome;
}
}
}

A little bit of Python

I made a quick game of hangman while studying for my university finals, and I thought I would post it for download. Feel free to try it out, modify the code and make changes as you wish. Most of all, don’t be afraid the leave a comment below. After downloading, simply unzip the file and import the project into eclipse (or your choice of IDE)  and run the ‘main.py’ pydev module. Take a look in the ‘word_to_guess.txt” file, where you can add words to the game.

Python Hangman Game

As you can see,  its nothing special,  but demonstrates the incredible power of Python, and the standard library alone. More interesting projects to come.

Kinda cool :)

DesiCrypt – Super Simple Encryption

DesiCrypt (named after my cat in case anyone was wondering) is an encryption project I have been working on for a little while now. It’s not extremely powerful, but defiantly gets the job done for simple encryption tasks. Probably not something you would use for anything serious, but great if you want fast, on the go encryption. The software can be downloaded below and it totally 100% open source. Source code is included, along with a precompiled executable. DesiCrypt is only available to a few lucky Linux users for now, but I hope to port the project over to Windows (as soon as I get Code::Blocks configured on my Windows machine).

Downloads:
Linux – Click Here
Windows – As soon as I overcome my extreme laziness
Mac – Never happening! (evil laughter goes here)



Copyright © 2013. All rights reserved.

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.