Lecture11 - Engineering 101 Engineering 101 Lecture 11...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Engineering 101 Engineering 101 Lecture 11 Lecture 11 Exam 1 Review Exam 1 Review Prof. Michael Falk University of Michigan, College of Engineering Announcements Announcements No Office Hours 4-5pm today. Office Hours will be held Tuesday from 4-5pm in CSE 2636. Announcements Announcements Exam 1 Wednesday 10/4 at 7pm. Room Assignment by First Letter of Last Name – A-G IOE 1610 – H-O FXB 1109 – P-U CSE 1670 – V-Z CSE 1690 Announcements Announcements Alternate Administration Today, 3-5pm in Dow 1017 Alfred Chung Zac Evans-Golden MaryAnn Winsemius Alexandra Holbel Taylor Santiago Jeffery Mortimer Ruixuan Wang Ramsey Hilton Derek Geiger Ashley Jones Kyle Polack Randy Tin Dave Retterath Rob Keim Joseph Kirby Edward Wagner Ben Sutton Marcus Lewis Hong Yoon Kim Announcements Announcements You may bring your book, notes, or any other materials you desire. You may bring a calculator. If you have questions about the exam ask the proctor (me or a GSI). You may not communicate with each other or anyone other than the proctor during the exam. Work on Problem 1 From Practice Work on Problem 1 From Practice Exam Handout Exam Handout Work on your own for 10 minutes. I will announce when you can discuss your answer with your group. Problems Problems 1 #include <iostream> 2 #include <cmath> 3 4 void breakdown(double &tsec, int d, int h, int m, int s); 5 6 int main(){ 7 8 int totsec; 9 10 cout << "Input the number of seconds that have elapsed:" << endl; 11 cin >> totsec; 12 13 breakdown(totsec, days, hours, mins, secs); 14 15 cout << "This corresponds to "; 16 cout << days << " days "; 17 cout << hours << " hours "; 18 cout << mins << " minutes and "; 19 cout << secs << " seconds."<<endl; 20 21 return 0 22 } 23 24 void breakdown(double &tsec, int d, int h, int m, int s){ 25 26 s = tsec%60; 27 tsec = (tsec-s)/60; 28 m = tsec%60; 29 tsec = (tsec-m)/60; 30 h = tsec%24; 31 d = (tsec-h)/24; 32 return; 33 } Problems Problems 1 #include <iostream> 2 #include <cmath> 3 using namespace std; 4 void breakdown(double &tsec, int d, int h, int m, int s); 5 6 int main(){ 7 8 int totsec; 9 10 cout << "Input the number of seconds that have elapsed:" << endl; 11 cin >> totsec; 12...
View Full Document

This note was uploaded on 04/02/2008 for the course ENGR 101 taught by Professor Ringenberg during the Fall '07 term at University of Michigan.

Page1 / 22

Lecture11 - Engineering 101 Engineering 101 Lecture 11...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online