hw4 - 8 7 6 5 4 3 2...

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

View Full Document Right Arrow Icon
Last Name: ___________________ First Name: ________________ Student ID: _________________ EME5 Introduction to Computer Programming for Engineering Applications , Fall 2005 Homework 4 Due Friday, October 28, 2005 (77 points) 1. (5 points) Problem 12 in Chapter 4. 2. (5 points) Draw the flowchart for the algorithm implemented in Program 4.7 for a multiplication table. 3. (10 points) Draw a flowchart and write a program to print out a multiplication table shown below. 10 9 8 7 6 5 4 3 2 1 ------------------------------------------- 10| 100 9| 90 81 8| 80 72 64 7| 70 63 56 49 6| 60 54 48 42 36 5| 50 45 40 35 30 25 4| 40 36 32 28 24 20 16 3| 30 27 24 21 18 15 12 9 2| 20 18 16 14 12 10 8 6 4 1| 10 9
Background image of page 1

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

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

Unformatted text preview: 8 7 6 5 4 3 2 1-------------------------------------------4. (5 points) Whats the output of the following program? #include <stdio.h> int main() { int i, j; for(i=1; i<= 5; i++) { if(i==3) { continue; } for(j=1; j<=i; j++) { if(j==3) { break; } printf("%d ", i*j); } printf("\n"); } return 0; } 5. (2 points) Problem 1 in Chapter 5. 1 6. (5 points) Problem 7 (a) in Chapter 5. 7. (5 points) Problem 8 (a) in Chapter 5. 8. (5 points) Problem 12 in Chapter 5. 9. (10 points) Problem 14 in Chapter 5. 10. (25 points) Problem 18 in Chapter 5. 2...
View Full Document

This note was uploaded on 10/08/2009 for the course MAE EME 5 taught by Professor Cheng during the Fall '05 term at UC Davis.

Page1 / 2

hw4 - 8 7 6 5 4 3 2...

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

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