|
|
Visual C++
|
C++ Command Line Programs
(You have to run them from the command prompt)
Character Recognition
The purpose of this program is to take a single character
through the keyboard as an argument, return a non-zero
integer if the letter is lowercase, or a zero if the letter
is uppercase.
[
Source Code ]
[
Download Compiled Program ]
Craps Game
This program simulates playing of a game of Craps. Our job
here was to modify the code to add some chatter to the code
so that depending on the outcome of the roll of dice, the
player is prompted a different set of randomly generated
chatter text to make the game more fun. We have also added
wagering to this program, to allow the player to bet on the
rolling of dice. Depending on if the player looses or wins,
the betting amount is added or subtracted from the total
available balance. The game ends when the player looses all
of his or her money. The program has also been modified to
randomize the outcome of the rolling of dice to make the
game more fair. If a player bets more then he or she has
in the bank, the program will prompt the player to enter
a new betting amount, since there would not be enough money
available in his bank to place that bet.
[ Source Code ]
[ Download Compiled Program ]
Desk Cost Calculator
The purpose of this program is to calculate the cost
of building a Desk using four functions. The first
function will ask the user for the number of drawers
the desired desk should have, the second function asks
for the type of wood to be used, the third function
will calculate the cost of the order, and a fourth
function will display the actual cost of the customers
order on the computer screen.
[
Source Code ]
[
Download Compiled Program ]
Desk Cost Calculator 2
The purpose of this program is to calculate the cost
of building a Desk using four functions. The first
function will ask the user for the number of drawers
the desired desk should have, the second function asks
for the type of wood to be used, the third function
will calculate the cost of the order, and a fourth
function will display the actual cost of the customers
order on the computer screen.
[
Source Code ]
[
Download Compiled Program ]
Fraction Addition
The purpose of this program is to create an interface
through which users can add two fractional numbers
together. For this, program to function, the user is
first prompted to enter the first fraction in the form
of a/b, then the second fraction in the form of c/d.
The program then calculates the addition of these two
fractions using the equation ((a*d)+(b*c))/(b*d).
The divisor and the divident are assigned to two
different variables, which are then displayed on the
screen as the result of the calculation.
[
Source Code ]
[
Download Compiled Program ]
Fraction Average Calculator
The purpose of this program is to allow a user to
enter a number of fractions through the keyboard. These
fractional numbers, will then be added together to obtain a total
for all the fractions entered by the user. The total is then
divided by the number of fractions entered by the user to
calculate the Average of these sets of fractions.
This program has been constructed through multiple files. In
other words, there is a seperate file for the class definition,
one for the members functions, and another for the driver of it.
[
Source Code 1 -
2 -
3
]
[
Download Compiled Program ]
Fraction Calculator Using Structures
The purpose of this program is to create an interface
through which users can add, subtract, divide, and
multiply two fractional numbers together. For this
program to function, the user is prompted to enter
the operation that is to be calculated in the format
(a/b + c/d) on the keyboard, where the sign '+' can
be replaced with either a '-', '*' or a '/' to perform
the respective mathematical operation. The program then
calculates the results from one of the following equations:
a/b + c/d = (a*d + b*c) / (b*d)
a/b - c/d = (a*d - b*c) / (b*d)
a/b * c/d = (a*c) / (b*d)
a/b / c/d = (a*d) / (b*c)
The divisor and the divident of the result are then assigned
to two different variables, which are displayed on the
screen as the result of the calculation.
[
Source Code ]
[
Download Compiled Program ]
Fraction Calculator
The purpose of this program is to create an interface
through which users can add, subtract, divide, and
multiply two fractional numbers together. For this
program to function, the user is prompted to enter
the operation that is to be calculated in the format
(a/b + c/d) on the keyboard, where the sign '+' can
be replaced with either a '-', '*' or a '/' to perform
the respective mathematical operation. The program then
calculates the results from one of the following equations:
a/b + c/d = (a*d + b*c) / (b*d)
a/b - c/d = (a*d - b*c) / (b*d)
a/b * c/d = (a*c) / (b*d)
a/b / c/d = (a*d) / (b*c)
The divisor and the divident of the result are then assigned
to two different variables, which are displayed on the
screen as the result of the calculation.
[
Source Code ]
[
Download Compiled Program ]
Fraction Calculator Using Classes
The purpose of this program is to create an interface
through which users can add, subtract, divide, and
multiply two fractional numbers together. For this
program to function, the user is prompted to enter
the operation that is to be calculated in the format
(a/b + c/d) on the keyboard, where the sign '+' can
be replaced with either a '-', '*' or a '/' to perform
the respective mathematical operation. The program then
calculates the results from one of the following equations:
a/b + c/d = (a*d + b*c) / (b*d)
a/b - c/d = (a*d - b*c) / (b*d)
a/b * c/d = (a*c) / (b*d)
a/b / c/d = (a*d) / (b*c)
The divisor and the divident of the result are then assigned
to two different variables. Those values are then simplified
to the lowest terms, which are then displayed on the screen
as the result of the calculation.
[
Source Code ]
[
Download Compiled Program ]
Fraction Multiplication Table Generator
The purpose of this program is to generate a table of multiplication
given a specific denominator of a fraction.
This program has been constructed through multiple files. In
other words, there is a seperate file for the class definition,
one for the members functions, and another for the driver of it.
[
Source Code 1 -
2 -
3
]
[
Download Compiled Program ]
Integer Comparison
The purpose of this program is to compare several integers
with each other and print the smallest of them to the screen.
The number of integers to be compared will be entered by the
user along with the first integer. The remaining integers will
then be entered from the inside of an if statement one by one
and compared to the previous integer to find the smallest of
each pair.
[
Source Code ]
[
Download Compiled Program ]
Math Operations
The purpose of this program is to take two numeric variables
through the keyboard and return the sum, product, difference
and quotient of the two numbers to the screen.
[
Source Code ]
[
Download Compiled Program ]
Order Value Calculator
The purpose of this program is to process the mail order house 5
given product orders in the quantities specified by the user. The
user will first enter a product number, and a quantity for that
product through the keyboard. The program will then calculate the
total value of the order for that specific product, and ask the
user if he/she wishes to add more products to this value. If the
user response positive to this question by entering a "Y", the
program will take the user through the loop again, and allow them
to enter another product through the keyboard.
Once the user is finished entering all the products in the quantity
desired, the total value of orders is displayed on the screen, when
the user responds to the question to continue entering a value with
an "N" (standing for No).
[
Source Code ]
[
Download Compiled Program ]
Penny Accumulator
The purpose of this program is to calculate the accumulated
value of pennies after each day, if we were to be given one
penny to start the first day, and double each previous day
thereafter for a certain number of days specified by the user.
We would also like to know after how many days will we make at
least $1,000,000.
[
Source Code ]
[
Download Compiled Program ]
Pig Latin String Converter
The purpose of this program is to obtain an array string
(word) from the user through the keyboard, and display the
first and last letter of the word on the screen. If the first
letter in the word entered by the user begins with a consonant,
the first character of the word is moved to the last position
and append "ay" is added to the end of it. However, if the
word begins with a vowel, the program simply adds an "ay" to
the end of the word.
[
Source Code ]
[
Download Compiled Program ]
|
|
|
|
Visitor Info
|
Visitors: 5 Your IP: 38.103.63.17
|
|
|
|
Support Forum
|
|
|
|
Programming
|
Need a website or custom programming for your business? We can help you create Windows based Programs to help you with
such tasks as generating sales reports, timesheets, client database and more. Our programmers use a variety of
programming languages to help you design your ideal business or home application.
 
[ Contact Us Now! ]
|
|
|
Current Calendar
|
|
July 2008
|
Sun
|
Mon
|
Tue
|
Wed
|
Thu
|
Fri
|
Sat
|
|
|
1
|
2
|
3
|
4
|
5
|
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
|
27
|
28
|
29
|
30
|
31
|
|
|
|
|
|