Class Journal of November 17, 2005
Menu1. Review last class problem- We could not run the program
* Frustrations- everything was right, programming was correct but not results
It could of been security overprotection.
Original program that you write was Hello.cpp, Hello.exe,
Hello.java- means the language was java
The program is overprotected because people will try and put viruses in the computer
virus.exe- the computer is trying to protect it from exe viruses
There are different algorithms that you should try to solve your problems, we will go back in try a different approach
If your selling a book and your just sitting there then they will say that its not a good business, there's always something to do
Movement creates activities- therefore it would look like you have something to do.
*************************************************************
Most universities use Linux: Linux is free and open source (you can see the program, add to it and subtract from it)- its written in c++
Microsoft has the security but it has a lot of holes already.
Cost of computer errors are a lot of money
*************************************************************
Is the year 20 is a leap year? -400 is a leap year -1600 is a leap year
But not every four hundred years are a leap year
Why is 20 a leap year and 1900 is not? -The algorithm is the book.
What does IDE stand for? --IDE- Interactive Department Environment
**************************************************************
This is the program that we compiled today
#include <iostream>
using namespace std;
main()
{
char name[15];
char answer;
while(1){
cout<<"HELLO WHAT IS YOUR NAME ";
cin>>name;
cout<<"I AM HAPPY TO MEET YOU "<<name<<endl;
cout<<" Would you like to have lunch with me ";
cin>> answer;
if(answer=='Y')cout<<"I AM SO HAPPY THAT YOU ACCEPT MY INVITATION ";
else cout<<" WE WILL TRY TO MEET ANOTHER TIME"<<endl;
cout<<" NEXT PERSON PLEASE";
}
return 0;
}