Ths page contains samples of my current research and work within my major, Computer Science. This page contains downloadable source code files of my current programming work, which includes programs written in C++ and Visual Basic.
Warning
All of the downloadable files
below have been scanned with Symantec
Norton Antivirus 2002, and I have made a great effort in ensuring that
the downloadable files remain uncorrupted and virus-free. However there
is no 100% guarantee that files when downloaded will remain uncorrupted
and virus-free. It may be beneficial to scan the files with an antivirus
program after downloading.
C / C++
- Call Calculator
This program recieves the day of the week, time a call was placed, and the length of
the call, then calculates how much the call will cost.
View Source
Download C++ Source File
- Case Changer
This program takes a text file and changes all the lower case letter to upper case, all the uppercase values to lower case, and replaces '+' with spaces
View Source
Download C++ Source File
- Cellphone Class
This is a class that holds cellphone account information
View Source
Download C++ Source File
- Change Calculator
This program reads the user inputed amount due and the amount received by the cashier,
and should compute and display for the cashier how to give the change
(how many quarters, how many dimes, etc).
View Source
Download C++ Source File
- Equilateral Triangle
This program uses 2 sets of very complex nested for loops containing complex nested
conditional statements to output a hollow equilateral triangle, with its outline consists
of a symbol chosen by the user, except for every third row where the fixed symbol '!'
is outputted instead; the height of the triangle is determined through user input.
This program also uses a do while loop to validate that the user inputted value for
the height is between 1 and 10.
View Source
Download C++ Source File
- Food Class
This class holds nutritional information for a food type.
View Source
Download C++ Source File
- Fraction Library
This program utilizes various functions from a programmer-developed library of fraction
manipulation functions. The program recieves two fractions from the user, along with an
arithmetic operator, performs desired arithmetic operation, and then outputs the simplified
fractional result.
View Source
Download C++ Source File
- Insertion Sort
This program utilizes a sorting function, which applies the insertion sort method to sort any sized
vector of integers into ascending order.
View Source
Download C++ Source File
- Integer Stream
This program reads an integer from a file, and prints out a multiplication table from 1 to 12 times that number.
View Source
Download C++ Source File
- Menu Choices
This program presents the user with an interactive menu of options to perform some common computations. For a list of these computations, see the code of function displayMenu.
View Source
Download C++ Source File
- Miles Per Gallon
This program recieves liters of gas consumed by the user's car and the number of
miles traveled by the car. It then converts the inputted liters to gallons and
calculates the miles per gallon (MPG) used by the car.
View Source
Download C++ Source File
- Nim
This program is a text-based game based on the well-known game Nim. The game is with
a number of stones, in which each player takes a turn removing either 1 or 2 of the
stones. The player who takes the last stone has lost the game.programemd
built-in strategies to make the game more challenging.
View Source
Download C++ Source File
- Palendrome
This program utilizes the string class to recieve a string from a user and then determine
whether it is a palendrome or not.
View Source
Download C++ Source File
- Parking Meter
This program reads how long a person is going to park their car at a parking meter, and calculates the cost.
View Source
Download C++ Source File
- Perfect Number
This program calculates perfect numbers
View Source
Download C++ Source File
- Salary Calculator with Overtime
This program calculates the weekly salary of an employee using an inputed value
for hours and pay rate, and it calculate overtime for hours worked past 40.
View Source
Download C++ Source File
- Simplify Fractions
This program takes a numerator and denominator from the user, ensures that the denominator is nonzero;
then displays the fraction and its simplest form.
View Source
Download C++ Source File
- Time Class
This class will hold valid time in 12-hour am/pm notation. The Time class will hold
the time data in hh:mm:ss am/pm format, however it will only display value for seconds
if it is requested.
View Source
Download C++ Source File
Visual Basic
- Bouncy Ball
This simple Win32 application consists of a bouncing ball, whose direction can be changed by pressing a directional button.
Download VB Form File
- Computer Information
This simple Win32 application uses Windows API controls to display current system configuration settings.
Download VB Form File
- Simple Form
This Win32 application is a simple file output program, where a user can input data into a textbox and it is saved to an external file.
Download VB Form File
E-Mail Me
Return to Home