Fwd:TAMU and UTT are both now requiring engineering majors take ENGL 2311 in lieu of ENGL 1302. ECON 2302 and PHIL 2316 are dictated core classes for engineering majors at both institutions. TAMU: check their program for transferability of any ENGR coursework Next semester there will be a SPCH 1321 for Engineers and SPCH 1315 for Education majors. Both sections are late starts and online sections.
If you have trouble loading the newest versions, try loading the 2014, or 2013 versions. (Anything older the 2013 is no good, but 2013+ are all similar)
The more times you use a neural pathway, the larger that pathway becomes, and the easier it is to use - ie - the more time you spend studying, the more practice problems you solve, the easier it gets, the better established your neural pathways become.
Exam Schedule: http://www.lonestar.edu/examschedule.htm Mon 1201 → Final on Mon Dec 8th @ 5:30-7:20 Tu/Th1201→Final on Tues Dec 9th @ 8:00-9:50 Fri 9:00 → Final on Fri Dec 12th@ 9:00-10:50 Fri 11:00 → Final on Fri Dec 12th @ 11:00-12:50
For the Upcoming Test & Team evaluation:
Come prepared (be there early, with pencil and calculator. You will not be allowed to use the computers.)
Skim through entire test before starting
Do the easy problems first
keep track of the time
Go for partial credit - don't leave anything blank - if you know it's wrong, explain that you know it is wrong, and write down your thinking process.
Show all of your work.
Don't erase your work - just put a single line through it (you might get more partial credit)
Check over your answers, and re-check them. Don't leave early.
Warning: To prevent cheating, each test will be slightly different, so don't copy what your neighbor is doing!
iostream - input and output program, lets you use "cin" and "cout" to allow a user to imput data into the program, and for the program to output data back to the user.
int main () the first function, where the program actually begins.
{} Surrounds the function { start end} int birthmonth,birthyear; - defining your variable types. int = integer, tells it that "birthmonth" is going to be a whole number like "6" not "6.34915" (Float = if you want to use something like 6.34915...)
if statements - if (x) then do (y) cout <<"Hello World"<<endl;Outputs "Hello World" to the user ; C++ syntax, ends the command system("PAUSE"); or getch(), Pauses the screen "press any key to continue"
return 0;error check, if you get to the "0" it means the main function has executed and ended
Commenting // HW.cpp : Defines the entry point for the console application.
//
For the test - study the age calculator code - if I changed it, could you figure out what the code is doing? what does it output?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Example #1:
1. If the user inputs:
birthmonth = 14
birthyear = 2000
currentmonth = -2
currentyear = 1972
output = ???
2. If the user inputs:
birthmonth = 10
birthyear = 2000
currentmonth = -2
currentyear = 1972
output = ???
// Age Calc.cpp : Program to calculate someone's exact age.
Can you name an engineering disaster, and briefly discuss:
What happened
Why it happened
How it could have been prevented
Knowing "there can never be enough rules to anticipate and cover every situation, and even if there were, enforcement would be impossibly expensive and burdensome."
What is needed to uphold and maintain ethical practices?
Engineer’s Obligation to Society, to their employer, to clients, and to other engineers: - only approve designs that safeguard life, health, welfare, and property of the public - if an engineer’s professional judgment is overruled resulting in a safety concern, it is their responsibility to notify employers, clients, authority figures, the public, and all involved. - Engineers should be objective, truthful, and unbiased. - Engineers should not express opinions in areas they are not qualified in, - Engineers should not associate with anyone or anything that is unethical
Last questions on test, start thinking about your answer now! What did you like most about 1201? What can we do to improve 1201 in future semesters?
Email me / call me if you need help understanding or studying for any of it, I hope you've had fun!!
~~~~~~~~~~
C++ Ans from 1st prog: Try to solve it on your own first!!
The output in both cases is an error message about the variables not being initialized correctly - extra credit to anyone who can find the errors in the code that does not allow it to compile!
If the variables were used correctly, the output would be: