Thursday, November 27, 2014

Final Exam Review

Cramming for tests, vs. learning the material:

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!   

Final Team Evaluation:

Finish this BEFORE coming to the test. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Review:


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~

Intro to C++ : link

What is in your program?

#include "StdAfx.h"
#include "iostream" 
#include instructs the pre-processor to include another file (the file SrdAfx.h, and iostream or in out stream in this case)

C++ has a library of many codes like "iostream" you can use to save yourself time & hassle.
http://www.cplusplus.com/reference/iostream/

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.

StdAfx.h namespace, reduces compile & processing time
http://www.cplusplus.com/articles/1TUq5Di1/


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.

//

#include "stdafx.h"
#include<iostream>
#include<conio.h>


using namespace std;


int main(int argc, _TCHAR* argv[])

{

       int birthmonth,birthyear;

       int currentmonth,currentyear;
       int agey,agem;
       cout << "\n\n\t\t\t Age Calculator\n\n";
       cout<<"Enter Your Birth Year(Eg:1989):";
       cin>>Birthyear;
       cout<<"\n\nEnter Your Birth Month(Eg:7):";
       cin>>birthmonth;
       if(birthmonth > 12 || birthmonth < 1)
       return 1;
      
       cout<<"\nEnter The Current Month(Eg:7):";
       cin>>currentmonth;
       cout<<"\nEnter The CurrentYear(Eg:2010):";
       cin>>currentyear;

       agey=currentyear-birthyear;
       agem=12-birthmonth;

       cout<<"\n\n\t\tYour Age is "<<Agem<<" Years And "<<agey<<" Months ";

       getch();
       return 0;
}


Ans at end of page - try to solve it on your own before checking your answers though!!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Example #2:
1. If the user inputs:
birthmonth = 12
birthyear = 2000
currentmonth = 10
currentyear = 2014
output = ???


2. If the user inputs:
birthmonth = 10
birthyear = 2000
currentmonth = 12
currentyear = 2014
output = ???


// AgeCalc.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include<iostream>
#include<conio.h>

using namespace std;

int main(int argc, _TCHAR* argv[])
{
       int birthmonth,birthyear;
       int currentmonth,currentyear;
       int agey,agem;

       cout << "\n\n\t\t\t Age Calculator\n\n";
       cout<<"Enter Your Birth Year(Eg:1985):";
       cin>>birthyear;

       cout<<"\n\nEnter Your Birth Month(Eg:9):";
       cin>>birthmonth;

       if(birthmonth > 12 || birthmonth < 1)
       return 1;
      
       cout<<"\nEnter The Current Month(Eg:7):";
       cin>>currentmonth;

       cout<<"\nEnter The Current Year(Eg:2013):";
       cin>>currentyear;
       //if(birthmonth > currentmonth) you have not had your birthday yet
       if(birthmonth > currentmonth)
              {agey=currentyear-birthyear-1;
              agem=12-birthmonth;}

       //     if(birthmonth < currentmonth) then you have had your birthday
       if(birthmonth < currentmonth)
       {agey=currentyear-birthyear;
       agem=currentmonth-birthmonth;}

       agey=currentyear-birthyear;
       agem=currentmonth-birthmonth;

       cout<<"\n\n\t\tYour Age is "<<agey<<" Years And "<<agem<<" Months ";

       getch();
       return 0;

}

- answers at end of page, solve it on your own first!!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Mathematica - link

How to input data:

Function[square bracket, arguments separated with commas]

Sin[2.3]
Plus[2,2] = 2+2
Mean[{30, 34, 29, 15}]
Solve:
use "==" - two equal symbols

Solve[x^2-5x+6==0, x]  (shift + enter)
{{x-2}, {x-3}}

Solve[x^2+x+1==0, x]//N
//N - gives answer in numerical form
{{x-.5-.86i},{x-.5+.86i}}

Solve[a*x^2 + b*x + c==0, x]
x = quadratic formula

Solve system of equations - use {}
Solve[{3 x + 2 y ==15, 3*x - 3*y == 12}, {x, y}]//N

Graphing:


Points:
ListLinePlot[{{1,2}, {3, 4}, {5,3}}]


Plot[Sin[x]/x , {x, -9.4, 9.4}]
Plot3D[Sin[x*y], {x, -Sqrt[3*Pi], Sqrt[3*Pi]}, {y, -Sqrt[3*Pi], Sqrt[3*Pi]}]


*** Mathematica "help" resources - 


help - documentation center- 10,000 pages of info on all the functions and examples and tutorials on how to use them


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

8 main parts of a computer - link

If I give you picts of the parts in a computer, can you tell me what it is, and what it does?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Engineering Ethics - link

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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Dynamics



Given some variation of one of the three below graphs, could you figure out the general shape of the other two graphs?


Think about the graphs & how they relate to one another.

position vs. time graph → velocity = slope = ds/dt = change in position / change in time

Velocity vs. time graph →position =  vel * time = (mph*hours = miles) = area under curve

Velocity vs. time graph → acceleration = dV/dt = change in velocity / change in time = slope of V-t line

Acceleration vs. time graph → adt = dv  (a = dv/dt)


Examples:




Can you sketch in the general shape of the missing graphs?
 

1.


 2.


3.




Ans: Don't look until you try it on your own!








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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:


1.
if(birthmonth > 12 || birthmonth < 1)
return 1;

Error! the birthmonth is > 12!



2.
agey=currentyear-birthyear = 1972-2000=-28
agem=12-birthmonth; = 12-(-2) = -14

cout<<"\n\n\t\tYour Age is "<<Agem<<" Years And "<<agey<<" Months ";

again, notice that agem and agey are switched in the output, so what is on the screen is:
Your age is -14_ years and _-28 months.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Ans:C++ Ans from 2nd prog: 

The last lines before cout are:
       agey=currentyear-birthyear;
       agem=currentmonth-birthmonth;

so the output for agey and agem did not come from the if statements, it comes from whatever was calculated last.


1.  
birthmonth = 12
birthyear = 2000
currentmonth = 10
currentyear = 2014
output = ???
       agey=currentyear-birthyear = 2014-2000=14
       agem=currentmonth-birthmonth = 10-12=-2

2. If the user inputs: 
birthmonth = 10
birthyear = 2000
currentmonth = 12
currentyear = 2014
output = ???
       agey=currentyear-birthyear = 2014-2000 = 14
       agem=currentmonth-birthmonth = 12-10 = 2




Thursday, November 20, 2014

Final Project Report & Presentation

Week after Thanksgiving - Project presentations & Review for the final
 
 
  • Tu/Th 8:30-9:30   Test is Tu Dec 9th from 8:00-9:50 
  • Mon night              Test is Wed the 10th from 5:30-7:20
  • Friday 9:00           Test is Wed the 10th from 9-10:50
  • Friday 11:00         Test is Wed the 10th from 11-12:50
 
 
 Project Report:
 
Review “Writing as an Engineer”

http://e1201.blogspot.com/2014/07/hw1-communicating-as-engineer.html

Use the writing center to proofread your report:
LIB 219, designed for students that have writing assignments in any class, has several computers where you can work on your assignments. 




Your project report should have the following sections:





Heading:
Centered on page: Name of your product (pick a catchy name!)
List team member names with their responsibilities, with date, and" LSC ENGR Project".




The No Totter Water Potter
Jack  – Research and Design, written report.
Jill – Construction & Testing
Mary –  Construction & Testing
Joe – Compiled data, created graphs, tables, and diagrams.

1. Introduction (5 points)Briefly state the product you decided to create, what need it will fill, who it will be marketed to, and why you chose this product.

ie – Jack and Jill have refused to go up the hill, so we created a clean drinking water  transportation and containment system to deliver and store fresh hill spring water right inside their own house.

2. Research and Background information (10 points)
As can be seen on the map in figure 2.1, on top of High Hill, at the headwater of Slippery Stream, lies Clearwater Spring.   The spring water is purified through a natural filtration process where the groundwater seeps through rocks and soil (see ref #1).  Etc. etc.  This water was last tested on Nov 28, 2012 by AAAEnviroWet and was found to be exceptionally pure (2).


Notice -

  • figures are referred to and discussed within text.
  • Figures have figure captions with a short description of what the figure is on.
  • References are #'d, full reference at the very end of the report, in the order that they appear in the report.


Just format everything like your textbooks are formatted - with sections, subsections, figures, tables, etc.
.
3. Product specifications, diagrams, pictures, and user instructions. (25 points)

Older lead pipes on the High Hill property will need to be removed, and replaced with insulated polyvinyl chloride piping installed according to rhyme building code specifications (2).   A splitter valve will divide the water flow into an above ground black solar hot water pot, and an underground cold water pot where it is stored until needed as shown in figure 3.1.  

4. Testing ,  testing methods, 
modifications, and operation procedures.   (25 points)
Water purity, pressure, and temperatures were tested throughout the system at various weather conditions as shown in table 4.1.  After consideration of the data, a pressure relief valve was installed to prevent rupture of the solar heater during hot summer months, and an air injection line was installed to blow water out of lines susceptible to freeze in the winter.   Operating procedures for both summer, and winter months are presented below….
.
5. Observations, Results and Discussion (25 points)The variable water flow rates resulting from seasonal weather changes in table 5.1 were used to calculate the storage tank size needed to ensure a constant water supply through the entire year.   Seasons weather changes also affected the solar water heater temperatures, and additional  gas or electric heating may be required in winter months.
.
6. Conclusions, suggestions for future work. (10 points)Jack and Jill’s new “No Totter Water Potter” network is a vast improvement over the previous bucket and muddy path water transportation  system.  Although this new system has many advantages, the spring snowmelt water runoff poses a possible threat to the water purity in late April and May, and future mitigation for this is strongly suggested.  Etc.


Reference Section
Correctly formatted, and numbered.





Presentation:
Bring in what you made, if you cannot demonstrate it in class, make a video of it!

Short, sweet, simple, entertaining.


Total presentation should be no longer than 10 minutes.  Bring a USB drive with diagrams, slides, videos of your diagram, etc. to share.  Presentations will be graded by your class peers on enthusiasm, clarity, organization, body language, voice projection, visual aids, content, etc.








Group: __________________       
Grader: _______________________



PRESENCE                                                                               5          4          3          2          1          0
      -body language & eye contact
      -poise
-enthusiasm

LANGUAGE SKILLS                                                             5          4          3          2          1          0
      -correct usage
      -appropriate vocabulary and grammar
      -understandable (rhythm, intonation, accent)
      -spoken loud enough to hear easily

ORGANIZATION                                                                    5          4          3          2          1          0
      -clear objectives
      -logical structure
      -signposting ( the way they explain the path that was taken)

MASTERY OF THE SUBJECT                                             5          4          3          2          1          0
      -pertinence
      -depth of commentary
      -spoken, not read
      -able to answer questions

VISUAL AIDS                                                                          5          4          3          2          1          0
      - Clear and understandable
      - Demonstrates proficiency in CAD
     

OVERALL IMPRESSION                                                      5          4          3          2          1          0
      -very interesting / very boring
      -pleasant / unpleasant to listen to
      -very good / poor communication

                                                                                                     TOTAL SCORE  _______ / 30


List Strengths:

List at least one area for improvement:









Chapt 19. 20, 21

Project Presentations December 1-5th



Ch 19: The Campus Experience:


19.4 Ask lots of questions
Active questioners are the ones who learn the most.




Etiquette for asking lots of questions:

Explain your misunderstanding:
  • "I'm sorry, I think I misheard you..."
  • "I don't quite understand that explanation..."
  • "I'm sorry, I was distracted - can you say that again?"

    Explain what you understand:
  •   I understand _____ where I get confused is _____.

  • Be confident
    • It might not be your fault you don't get it, it might be their fault for not explaining it clearly enough - so don't feel bad that you are having to ask!
    Research as much as you can beforehand
    If you can't find an answer in class, use the internet! 
    .
    19.5 The People Issue
    Meeting people:
      Join the "I talk to Strangers" movement!






    Work in groups, know the email/phone/names of 3-4 other people in each of your classes.


    Networking:Think about all of the different jobs you have had so far, how may of them were a result of knowing someone who worked there?

    Jobs often come through people you know.




    Adviser:
    Find an adviser that is in your department, who understands the requirements for your degree. 




    Shelley.Caraway@lonestar.edu


    Before you register, go over your schedule with Shelley to make sure you are not taking classes you don't need, or that you are not missing anything.


    Investigating Instructors:
    http://www.ratemyprofessors.com/
    You don't always have a choice, but if you do, might as well choose wisely!




    Know and use your Campus Resources:
    Events Calendar: link

    Financial Aid: link

    Career Services: link

    Career Fairs: link

    Tutoring: link

    Library hours: link

    Fitness Center: link

    Food: link


    Can you name all of the buildings on your campus? 
    Take the campus tour - link



    Time management
    :

    "If you haven't got the time to do it right, when will you have the time to do it over?" - Jeffrey Mayer



    It's worth it to read your book!

    1st preview it:
    • take 30 seconds to look over titles and headings. 
    • look at any pictures, charts, examples. 
    • Get general idea of the main idea

    Speed-reading:

    Use your eyes & brain, don't talk to yourself!  Hooked on Phoenix taught us all to talk to ourselves when we read, but talking is slow, you can read faster if you don't say it in your head to yourself. 

    Read in phrases, rather than individual words.

    Skim through & read easy material quickly, slow down for harder material.  If your reading speed is right, you should not have to re-read anything to make sense of it.

    Highlight key sentences & ideas.

    Check out some of the speed reading apps:
    http://www.spreeder.com/




    Fulfilling Duties:
    Take pride in being part of academia,
    Get involved,  you get out of things what you put into them.


    Use the Web!

    Use wiki, youtube, Forums, email your instructors.

    Learn how to type:
    http://www.typingweb.com/


    Study, Take notes,

    Stress management -
    Balance & moderation in all things.
    Find people to vent to.

    http://www.listeningear.com/

    If you don't know anyone you feel comfortable venting to, just get online somewhere to vent.


    Chapter 20: Financial Aid






    Financial Aid: link

    There are several types of financial aid available: link









    http://www.youtube.com/watch?v=r98yqbkcn6U


    How many of you have a summer job lined up?

    How many of you have family / friends who know of job openings?

    How many of you need a letter of recommendation?
    You can use me (and other members in your group) to write you up letters of recommendation if you need them.



    Chapter 22: Liberal Arts and Engineering



    What's up with the HIST, GOVT, and ENGL requirements?  ....



    Aren't liberal arts classes the joke classes for people who aren't smart enough to do math??? Why do we have to take these classes again????   ...




    Take a second to remember:
    What is the point of engineering?
       A - To make the world a better place for everyone.

    What do you need to know in order to better serve others?
      A - you need to understand people, society, government, history.

    ENGL Composition classes???
       This is the information age, you need to know how to create & communicate information.  The age of technology is a result of the age of information, we have advanced as far as we have because of our increased ability to learn and communicate with one another.

    Take your lib arts classes seriously, they are not a joke!!!


    Chapter 3: Profiles of Engineers

    1 pg long bios of engineers talking about their job & life - worth reading!!!!

    Week after Thanksgiving -
    Project Presentations, Final review, turn in mousetrap car graphs.

    Need help?  email me, come by my office M/W 8:30-2:50

    Just a couple more weeks!!!!
    You're almost there!!!!