SRT 3 - Pace 1

Link to quarter 1 assignments.

Day Lesson and Assignments
1 - 12/11/06
  • Mr. Steve Thompson was a guest lecturer. He gave a lecture describing why we need high performance computers to solve many real life problems.
2 - 12/13/06
  • Intro to programming with C
  • Instructions for starting a new project, click here.
  • Source code for the 3 programs we wrote in class.
  • You can download Pelles C here.
  • Homework Assignment
    • Write a program that includes the following…
      • Input
        • Name
        • Age in years
      • Output - Writes the following to a text file (the name of the file will be YourLastName.txt)
        • Tell who you are
        • Tell how old your are in following units: years, months, days, minutes, and seconds. The age for each unit needs to be on a seperate line.
    • Email instructions
      • Email the file with the .c extension and the working executable.
      • Email to evans@scienceandmathacademy.com
      • Subject: "YourLastName HW1"
      • Send a copy to yourself as proof that you sent it to me, do not delete this until your grade has been posted!
      • The file names must be YourLastNameHW1.c and YourLastNameHW1.exe
  • Resources
3 - 12/15/06
  • Conditional statement (If...Then...Else...)
  • Loops
    • For statements
    • While statements
  • Additional information with printf and fprintf
  • For the code to the programs that we wrote in class click here.
  • There is no homework.
12/19/06
  • Decompression Day
4 - 12/21/06
  • Objective: Write a program in C, which will create a table of values for a projectile launched horizontally.
  • Background Information: Below is the equation for the horizontal displacement and vertical displacement of an object fired horizontally with an initial velocity of v0 and initial height of y0. We will be working in the mks systems so, assume g = 9.81 m/s2.
    • x(t) = v0 * t
    • y(t) = -0.5gt^2 + y0
  • Directions:
    • Write a C program that includes the following and is saved as “program1yourlastname.c”
      • Input
        • Initial height
        • Initial velocity
        • Time interval (time between successive times within the table)
      • Output to a file titled “yourlastnameprojectile1.xls”
        • Initial conditions
        • Author and name of program
        • Short description of what the data is from
        • Time (column 1)
        • Horizontal displacement (column 2)
        • Vertical displacement (column 3)
        • The output must stop where the y(t) becomes negative
      • What else to include
        • Appropriate comments in the code
        • Appropriate variable declarations
        • Proper indentation in the code
  • Compile the program as “yourlastnameprojectile1.exe”
  • Email
    • Email Mr. Evans the following
      • Subject Line: “Your last name – Projectile 1”
      • yourlastnameprojectile1.c
      • yourlastnameprojectile1.exe
    • Email to evans@scienceandmathacademy.com
  • Due: December 22, 2006 by 2:10 P.M.
5 - 1/2/07
  • Write a C program that includes the following and is saved as “Yourlastnameprogram2.c”
  • Input
    • Initial height
    • Initial velocity
    • Initial angle
    • Time interval (time between successive times within the table)
  • Output to a file titled “YourlastnameProgram2.xls”
    • Initial conditions
    • Author and name of program
    • Time (column 1)
    • Horizontal displacement (column 2)
    • Vertical displacement (column 3)
    • The output must stop where the y(t) become negative
  • What else to include
    • Appropriate comments in the code
    • Appropriate variable declarations
  • Compile the program as “program1yourlastname.exe”
  • Email
    • Email Mr. Evans the following
    • Subject: “Yourlastname Projectile #2”
    • Yourlastnameprogram2.c
    • Yourlastnameprogram2.exe
    • Email to evans@scienceandmathacademy.com
  • Due: January 3, 2007 (before the start of class)
6 - 1/4/07
  • The class learned about the drag coefficients and the equations for acceleration for projectile motion concidering drag.
7 - 1/8/07

Objective: Write a program in C, which will create a table of values for a projectile launched at an angle, accounting for drag.    

Background Information:

              

  Directions:

  • Write a C program that includes the following and is saved as “yourlastnameprojectile3.c”
  • Input
    • Initial height
    • Initial velocity
    • Initial angle
    • Time interval (time between successive times within the table)
    • Surface area of object (optional)
    • Drag coefficient
    • Mass of object (optional)
  • Output to a file titled “YourlastnameProjectile3.xls”
    • Initial conditions
    • Author and name of program
    • Time (column 1)
    • Horizontal acceleration (column 2)
    • Vertical acceleration (column 3)
    • Horizontal velocity (column 4)
    • Vertical velocity (column 5)
    • Horizontal displacement (column 6)
    • Vertical displacement (column 7)
    • The output must stop where the y(t) becomes negative
  • What else to include
    • Appropriate comments in the code
    • Appropriate variable declarations
    • Compile the program as “yourlastnameprojectile3.exe”
  • Email
    • Subject: Yourlastname Projectile #3
    • Email Mr. Evans the following
    • Yourlastnameprojectile3.c
    • Yourlastnameprojectile3.exe
    • Email to evans@scienceandmathacademy.com
  • Due: January 10, 2007 (before class starts)
8 - 1/10/07

Contact | Site Map | Search
© Science and Mathematics Academy. All rights reserved. Aberdeen, MD 21001. (410) 273-5500