### Open Source Code

### Resources

### Search

### Who Is Online

We have 46 guests and no members online

### Login Form

## C++

## 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.## 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).## 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.## 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.## 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.## 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.

## 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.

## 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.