The Fibonacci word may be represented as a fractal as described here: For F_wordm start with F_wordCharn=1 Draw a segment forward If curren
Continue ReadingC++: I Before E Except After C
The phrase "I before E, except after C" is a widely known mnemonic which is supposed to help when spelling English words. Task Description
Continue ReadingC++: Letter Frequency
Open a text file and count the occurrences of each letter. Some of these programs count all characters (including punctuation), but some only count
Continue ReadingC++: Minesweeper Game
There is an n by m grid that has a random number (between 10% to 20% of the total number of tiles, though older implementations may use 20%..60% inste
Continue ReadingC++: Discordian Date
Convert a given date from the Gregorian calendar to the Discordian calendar. #include <iostream> #include <algorithm> #include <
Continue ReadingC++: Mutex
A mutex (abbreviated Mutually Exclusive access) is a synchronization object, a variant of semaphore with k=1. A mutex is said to be seized by a task d
Continue ReadingC++: Fractran
FRACTRAN is a Turing-complete esoteric programming language invented by the mathematician John Horton Conway. A FRACTRAN program is an ordered list
Continue ReadingC++: Middle Three Digits
The task is to: “Write a function/procedure/subroutine that is called with an integer value and returns the middle three digits of the integer
Continue ReadingC++: Guess the Number With Feedback (Vs Player)
The task is to write a player for the game that follows the following rules: The scorer will choose a number between set limits. The computer pla
Continue ReadingC++: Find the Last Sunday of Each Month
Write a program or a script that returns the last Sundays of each month of a given year. The year may be given through any simple input method in your
Continue Reading