/** * Assignment #2, Program 1 * Program to print my initials in block letters * Author: Mark Allen Weiss * SSN: 000-00-0000 * Course: COP-2210 Section 8 * Date: September 28, 1998 * * CERTIFICATION OF SOLE AUTHORSHIP * I certify that this work is solely my own and * that none if it is the work of any other person. * I further certify that I have not provided any * assistance to other students enrolled in COP-2210 that * would render their CERTIFICATION OF SOLE AUTHORSHIP * invalid. I understand that violations of this pledge * may result in severe sanctions. * * * * ----------------------------------- * (Mark Allen Weiss) <--- Put your name here, and sign above */ #include // Function declarations void print_M( ); void print_A( ); void print_W( ); void print_separator( ); int main( ) { // Print the initials print_M( ); print_separator( ); print_A( ); print_separator( ); print_W( ); return 0; } /** * Print M in 7x7 block letter. */ void print_M( ) { cout << "M M" << endl; cout << "MM MM" << endl; cout << "M M M M" << endl; cout << "M M M" << endl; cout << "M M" << endl; cout << "M M" << endl; cout << "M M" << endl; } /** * Print A in 7x7 block letter. */ void print_A( ) { cout << " AAA " << endl; cout << " A A " << endl; cout << "A A" << endl; cout << "AAAAAAA" << endl; cout << "A A" << endl; cout << "A A" << endl; cout << "A A" << endl; } /** * Print W in 7x7 block letter. */ void print_W( ) { cout << "W W" << endl; cout << "W W" << endl; cout << "W W" << endl; cout << "W W W" << endl; cout << "W W W" << endl; cout << "W W W W" << endl; cout << " W W " << endl; } /** * Print blank lines between the block letters. */ void print_separator( ) { cout << endl << endl; }