SRT 3 - Pace 1 (This material was from first quarter.)

Day Lesson and Assignments
1 - September 26
  • Introduction to Computation Science
2 - September 28
  • Intro to programming with C
  • 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…
    • …uses and some sort of input.
    • …makes a calculation.
    • …output text and your input to a text file.
    • Email the file with the .c extension, and the working executable.
    • Email to evans@scienceandmathacademy.com
    • The file names must be YourLastNameHW1.c and YourLastNameHW1.exe
  • Resources
3 - October 4
  • Loops and Conditional Statements
  • Here is a link to the code for the two programs written in class.
4 - October 6
  • 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 “program1yourlastname.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
  • Due: October 10, 2006 (before class starts)
5 - October 10
  • Write a program that does the following
    • Makes a table of values of exponential growth
    • Inputs: growth rate, initial population, increment
    • Outputs to a file: time, population
    • Only output populations < 5 times the initial population
    • In the comments, include your name
  • Use the following
    • <math.h>
    • While statement
  • Print the C code and turn into Mr. Evans.
6 - October 12
  • Write a C program that includes the following and is saved as “program1yourlastname.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
  • Due: October 16, 2006 (before class starts)

7 - October 16
  • Collect data from the path of a real golf ball.
  • Homework: Complete the data tables
  • Due: October 23, 2006
  • You may use the following program.
8 - October 23

For comparison you can compare your output to the program I wrote. Here is the executable.

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 “yourlastnameprogram3.c”
  • Input
    • Initial height
    • Initial velocity
    • Initial angle
    • Time interval (time between successive times within the table)
    • Surface area of object
    • Drag coefficient
    • Mass of object
  • Output to a file titled “YourlastnameProgram3.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 “yourlastnameprogram3.exe”
  • Email
    • Email Mr. Evans the following
    • Yourlastnameprogram3.c
    • Yourlastnameprogram3.exe
    • Email to evans@scienceandmathacademy.com
  • Due: October 27, 2006 (before class starts)
9 - October 31
  • Complete the data sheet from class.
  • Here is a modification of the program above which allows density to be an input.


Site Map Email the SMA