C Programming - Week 3 Model answers

Answers to week 3

Code used in these answers.

Question 1

Printing to maple program

Maple work sheet for sin wave

Maple work sheet for sin and cos wave

Maple work sheet for two sin waves


Question 2

Stats program

Alternative version


Question 3

Sim Ball program

Sim Ball version 2

Bouncing with c_ref=0.9

Same with larger time step

Same with correction and larger time