Look, my first C++ project! Just look at the lines that are 196 characters long and improper indentation. Isn’t it adorable?

//<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\\ // Brian Schrameck \\ // COMP 115 \\ // Started: September 15, 2004 \\ // Last Modified: September 26, 2004 \\ // \\ // SchrameckProject1.cpp: A program that takes a user-input dollar amount \\ // and maximizes the amount of candy able to be bought with it. It will \\ // buy as much of the favorite candy as possible, and then buy as much \\ // of the next favorite, etc., until no more candy is able to be bought. \\ // It then displays the candy bought, the amount, and the price, as well \\ // as the total price and the leftover money in a table, with decimal points \\ // lined-up appropriately. \\ // \\ // I have abided by the Wheaton Honor Code in this work. \\ // - Brian A. Schrameck \\ //<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\\ #include <iomanip> #include <iostream> using namespace std; // Declare the price of the candies as constants in CENTS. const int TURTLE = 225; // Ton o' Chocolate Turtles const int CUPS = 90; // Nutty Cups const int TRUFFLE = 55; // Death by Chocolate Truffles const int TWISTER = 7; // Twisters int main() { double cash; // How much money the person has to start out with. int cents; // How much money the person has in CENTS. int turtles; // How many Ton o' Chocolate Turtles the person will be able to buy. int cashafterturtle; // How much money the person has in cents after buying the turtles. int cups; // How many Nutty Cups the person will be able to buy. int cashaftercups; // How much money the person has in cents after buying the cups. int truffles; // How many Death by Chocolate Truffles the person will be able to buy. int cashaftertruffles; // How much money the person has in cents after buying the truffles. int twisters; // How many Twisters the person will be able to buy. int cashaftertwisters; // How much money the person has in cents after buying the twisters. float turtlescost; // How much money the turtles cost total in dollars. float cupscost; // How much money the cups cost total in dollars. float trufflescost; // How much money the truffles cost total in dollars. float twisterscost; // How much money the twisters cost total in dollars. float total; // How much money is spent total. float change; // How much money is leftover. // Ask the user how much money they have to spend. cout << "How much money do you have to spend on the candy?" << endl; cin >> cash; // If the user provides 0 as their cash amount, they will be asked to go get some money. while (cash == 0) { cout << "You can't buy something for nothing! Get some money, silly!" << endl; cout << "How much money do you have to spend, now?" << endl; cin >> cash; } // Convert the amount of money from dollars into cents. cents = 100.0 * cash; // Find out how many of each candy you will be able to buy, then find out how much change you have leftover after each. turtles = cents / TURTLE; cashafterturtle = cents % TURTLE; cups = cashafterturtle / CUPS; cashaftercups = cashafterturtle % CUPS; truffles = cashaftercups / TRUFFLE; cashaftertruffles = cashaftercups % TRUFFLE; twisters = cashaftercups / TWISTER; cashaftertwisters = cashaftercups % TWISTER; // Find out how much the total amount of each batch of candy cost. turtlescost = (TURTLE / 100.0) * turtles; cupscost = (CUPS / 100.0) * cups; trufflescost = (TRUFFLE / 100.0) * truffles; twisterscost = (TWISTER / 100.0) * twisters; // Find out the total cost. total = turtlescost + cupscost + trufflescost + twisterscost; // Find out how much money will be leftover. change = cash - total; // Display the "receipt". cout << endl; cout << "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" << endl; cout << "| |" << endl; cout << "| Brian's Candy Shop |" << endl; cout << "| Your Receipt |" << endl; cout << "| |" << endl; cout << "| |" << endl; cout << "| Candy Amount Price |" << endl; cout << "| ------------------------------------------------- |" << endl; cout << "| " << setprecision (2) << fixed << "Ton o' Chocolate Turtles" << setw (6) << "| " << setw (4) << turtles << " |" << setw (5) << "$" << setw (6) << turtlescost << " |" << endl; cout << "| " << "Nutty Cups" << setw (20) << "| " << setw (4) << cups << " |" << setw (5) << "$" << setw (6) << cupscost << " |" << endl; cout << "| " << "Death by Chocolate Truffles" << setw (3) << "| " << setw (4) << truffles << " |" << setw (5) << "$" << setw (6) << trufflescost << " |" << endl; cout << "| " << "Twisters" << setw (22) << "| " << setw (4) << twisters << " |" << setw (5) << "$" << setw (6) << twisterscost << " |" << endl; cout << "| ------------------------------------------------- |" << endl; cout << "| TOTAL:" << setw (35) << "$" << setw (6) << total << " |" << endl; cout << "| ------------------------------------------------- |" << endl; cout << "| Leftover:" << setw (32) << "$" << setw (6) << change << " |" << endl; cout << "| |" << endl; cout << "| |" << endl; cout << "| Thank you! |" << endl; cout << "| Please come again! |" << endl; cout << "| |" << endl; cout << "| |" << endl; cout << "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" << endl; return 0; }

Sample output with an input of $50.00

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | Brian's Candy Shop | | Your Receipt | | | | | | Candy Amount Price | | ------------------------------------------------- | | Ton o' Chocolate Turtles | 22 | $ 49.50 | | Nutty Cups | 0 | $ 0.00 | | Death by Chocolate Truffles | 0 | $ 0.00 | | Twisters | 7 | $ 0.49 | | ------------------------------------------------- | | TOTAL: $ 49.99 | | ------------------------------------------------- | | Leftover: $ 0.01 | | | | | | Thank you! | | Please come again! | | | | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^