Sample programs in C++ and Java to compare performance for a computer architecture report.