This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:rrichar8:portfolio:project3 [2011/12/03 21:33] – [Prerequisites] rrichar8 | user:rrichar8:portfolio:project3 [2011/12/03 23:15] (current) – [Reflection] rrichar8 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Project: | ||
+ | |||
+ | A project in C++ Programming by RICH during the FALL SEMESTER OF 2011. | ||
+ | |||
+ | This project was begun on November 15 and was anticipated to take only a few days, but I've been working on it for the past 3 weeks now. (Upon completion you can correct this with the actual length) | ||
+ | |||
+ | =====Objectives===== | ||
+ | To better understand C++ programming syntax and implementation. I began this program as a very large program and have filter out everything possible to make it run efficiently and with minimum code. I was having an enormous amount of error messages with the original program when compiling it. As I began to investigate the error messages, I found that much of the code was redundant and unnecessary to accomplish what should be a very easy task in arithmetic. Seems that simplicity sometimes works better. | ||
+ | =====Prerequisites===== | ||
+ | In order to successfully accomplish/ | ||
+ | |||
+ | * The first resource used was the C++ Pocket reference that contains syntax and fundamentals. | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | =====Background===== | ||
+ | This will be the first project I've compiled in C++..I' | ||
+ | |||
+ | |||
+ | =====Scope===== | ||
+ | I'm a attempting to do this project and another project using class. I'm am attempting this one first because it has a simple code and I want to make sure that I understand the exact syntax necessary to code and compile the program and make it WORK too. | ||
+ | =====Attributes===== | ||
+ | State and justify the attributes you'd like to receive upon successful approval and completion of this project. | ||
+ | |||
+ | * attribute1: why you feel your pursuit of this project will gain you this attribute | ||
+ | * attribute2: why you feel your pursuit of this project will gain you this attribute | ||
+ | * etc... | ||
+ | |||
+ | =====Procedure===== | ||
+ | The actual steps taken to accomplish the project. Include images, code snippets, command-line excerpts; whatever is useful for intuitively communicating important information for accomplishing the project. | ||
+ | |||
+ | =====Code===== | ||
+ | Upon completion of the project, if there is an applicable collection of created code, place a copy of your finished code within < | ||
+ | |||
+ | <code c> | ||
+ | /* | ||
+ | * compile with: | ||
+ | | ||
+ | | ||
+ | * execute with: | ||
+ | | ||
+ | */ | ||
+ | #include < | ||
+ | |||
+ | using namespace std; | ||
+ | |||
+ | int main() | ||
+ | |||
+ | { | ||
+ | double miles; | ||
+ | double kilometers; | ||
+ | const double kilometersPerMile = 1.609; | ||
+ | |||
+ | cout << "Input miles: " << endl; | ||
+ | cin >> miles; | ||
+ | |||
+ | kilometers = kilometersPerMile * miles; | ||
+ | |||
+ | cout << " | ||
+ | |||
+ | return 0; | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Execution===== | ||
+ | Again, if there is associated code with the project, and you haven' | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | lab46: | ||
+ | lab46: | ||
+ | Input miles: | ||
+ | 654 | ||
+ | Kilometers = 1052.29 | ||
+ | |||
+ | lab46: | ||
+ | </ | ||
+ | |||
+ | =====Reflection===== | ||
+ | I've learned that C++ programming is actually easier to use than C programming ONCE you learn the proper syntax and procedures to compile properly. There is a wealth of good information available to help learning the usage and syntax online. | ||
+ | =====References===== | ||
+ | In performing this project, the following resources were referenced: | ||
+ | |||
+ | * http: | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | |||
+ | |||