practical01_sol

practical01_sol - Practical Session 1 Solutions 2 First...

This preview shows pages 1–2. Sign up to view the full content.

2. First steps in C Exercises 1. Agreement occurs at a temperature x where x = (5 / 9)( x - 32) . Solving this equation gives x = - 40 , so the scales agree at -40 degrees C or -40 degrees F. Annual mean temperatures are less than this for a large part of Antarctica. 2. The ﬁrst few lines should look like 0 -17.78 255.37 459.67 10 -12.22 260.93 469.67 ... The temperature 60 F corresponds to about 288 . 7 K , and about 520 Rankine. 3. My code is below. I get 17.7 m, 20.8 m, and 49.2 m for 60 km/h, 65 km/h, and 100 km/h. The RTA numbers are more than three times larger — presumably they are being conservative and taking into account the possibility of skidding (the μ is for static friction), wet conditions etc., which involve a smaller μ . / * stopping.c * Program to calculate the stopping distance of a car. * / #include <stdio.h> #define MU 0.8 #define G 9.8 int main() { float d, ukph, umps; printf("Initial speed in km/h? "); scanf("%f", &ukph); umps = ukph

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

practical01_sol - Practical Session 1 Solutions 2 First...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online