Numbers
Find PI to the Nth Digit
Status: Incomplete
Enter a number and have the program generate PI up to that many decimal places. Keep a limit to how far the program will go.
Find e to the Nth Digit
Status: Incomplete
Just like the previous problem, but with e instead of PI. Enter a number and have the program generate e up to that many decimal places. Keep a limit to how far the program will go.
Fibonacci Sequence
Status: Complete
Enter a number and have the program generate the Fibonacci sequence to that number or to the Nth number.
Prime Factorization
Status: Incomplete
Have the user enter a number and find all Prime Factors (if there are any) and display them.
Next Prime Number
Status: Incomplete
Have the program find prime numbers until the user chooses to stop asking for the next one.
Find Cost of Tile to Cover W x H Floor
Status: Incomplete
Calculate the total cost of tile it would take to cover a floor plan of width and height, using a cost entered by the user.
Mortgage Calculator
Status: Incomplete
Calculate the monthly payments of a fixed term mortgage over given Nth terms at a given interest rate. Also figure out how long it will take the user to pay back the loan. For added complexity, add an option for users to select the compounding interval (Monthly, Weekly, Daily, Continually).
Change Return Program
Status: Incomplete
The user enters a cost and then the amount of money given. The program will figure out the change and the number of quarters, dimes, nickels, pennies needed for the change.
Binary to Decimal and Back Converter
Status: Incomplete
Develop a converter to convert a decimal number to binary or a binary number to its decimal equivalent.
Calculator
Status: Incomplete
A simple calculator to do basic operators. Make it a scientific calculator for added complexity.
Unit Converter (temp, currency, volume, mass and more)
Status: Incomplete
Converts various units between one another. The user enters the type of unit being entered, the type of unit they want to convert to and then the value. The program will then make the conversion.
Alarm Clock
Status: Incomplete
A simple clock where it plays a sound after X number of minutes/seconds or at a particular time.
Distance Between Two Cities
Status: Incomplete
Calculates the distance between two cities and allows the user to specify a unit of distance. This program may require finding coordinates for the cities like latitude and longitude.
Credit Card Validator
Status: Incomplete
Takes in a credit card number from a common credit card vendor (Visa, MasterCard, American Express, Discoverer) and validates it to make sure that it is a valid number (look into how credit cards use a checksum).
Tax Calculator
Status: Incomplete
Asks the user to enter a cost and either a country or state tax. It then returns the tax plus the total cost with tax.
Factorial Finder
Status: Incomplete
The Factorial of a positive integer, n, is defined as the product of the sequence n, n-1, n-2, ...1 and the factorial of zero, 0, is defined as being 1. Solve this using both loops and recursion.
Complex Number Algebra
Status: Incomplete
Show addition, multiplication, negation, and inversion of complex numbers in separate functions. (Subtraction and division operations can be made with pairs of these operations.) Print the results for each operation tested.
Happy Numbers
Status: Incomplete
A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which this process ends in 1 are happy numbers, while those that do not end in 1 are unhappy numbers. Display an example of your output here. Find first 8 happy numbers.
Number Names
Status: Incomplete
Show how to spell out a number in English. You can use a preexisting implementation or roll your own, but you should support inputs up to at least one million (or the maximum value of your language's default bounded integer type, if that's less). Optional: Support for inputs other than positive integers (like zero, negative integers, and floating-point numbers).
Coin Flip Simulation
Status: Incomplete
Write some code that simulates flipping a single coin however many times the user decides. The code should record the outcomes and count the number of tails and heads.
Limit Calculator
Status: Incomplete
Ask the user to enter f(x) and the limit value, then return the value of the limit statement Optional: Make the calculator capable of supporting infinite limits.
Fast Exponentiation
Status: Incomplete
Ask the user to enter 2 integers a and b and output a^b (i.e. pow(a,b)) in O(lg n) time complexity.