<< Chapter < Page | Chapter >> Page > |
With 100% accuracy during a: memory building activity, exercises, lab assignment, problems, or timed quiz/exam; the student is expected to:
Link to: MBA 05
None at this time.
Depending on your compiler/IDE, you should decide where to download and store source code files for processing. Prudence dictates that you create these folders as needed prior to downloading source code files. A suggested sub-folder for the Bloodshed Dev-C++ 5 compiler/IDE might be named:
If you have not done so, please create the folder(s) and/or sub-folder(s) as appropriate.
Download and store the following file(s) to your storage device in the appropriate folder(s). You may need to right click on the link and select "Save Target As" in order to download the file.
Download from Connexions: Solution_Lab_02_Pseudocode.txt
Download from Connexions: Solution_Lab_02_Test_Data.txt
Read and follow the directions below carefully, and perform the steps in the order listed.
List and describe what might cause the four (4) types of errors encountered in a program using an Integrated Development Environment software product.
Identify four (4) problems with this code listing (HINT: The four (4) types of errors encountered in a program using an Integrated Development Environment software product).
//******************************************************
// Filename: Compiler_Test.cpp// Purpose: Average the ages of two people
// Author: Ken Busbee; © Kenneth Leroy Busbee// Date: Jan 5, 2009
// Comment: Main idea is to be able to
// debug and run a program on your compiler.//******************************************************
// Headers and Other Technical Items#include<iostrern>using namespace std;// Function Prototypes
void pause(void);// Variables
int age1;int age2;
double answear;//******************************************************
// main//******************************************************
int main(void){
// Inputcout<<"\nEnter the age of the first person --->: ";
cin>>age1;
cout<<"\nEnter the age of the second person -->: ";
cin>>age2;
// Processanswer = (age1 + age2) / 3.0;
// Outputcout<<"\nThe average of their ages is -------->: ";
cout<<answer;
pause();return 0;
}//******************************************************
// End of Program//******************************************************
Notification Switch
Would you like to follow the 'Programming fundamentals - a modular structured approach using c++' conversation and receive update notifications?