HW9 - /* MAE 9: Homework #9, Fall 2006 Due on Tuesday,...

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

View Full Document Right Arrow Icon
/* MAE 9: Homework #9, Fall 2006 Due on Tuesday, November 28, before 9:00 pm Use the program skeleton below starting with #include <stdio.h>. Add the necessary code to void prob1() and void prob2(). In prob1() (a) print a blank line, a line with the message:"ETHICS RESOURCES:" and a blank line. (b) Print the following message (9 lines) on the screen: The best way to find or locate ethics resources for engineers is 1. Ask your parents 2. Ask your friends who practice engineering 3. In Google type "ethics" 4. Ask your manager or supervisor Choose one from 1-4 to be an answer: When you read an integer from the keyboard, if the answer is 3, print the message: Yes. If the answer is incorrect, print the message: No. and print the correct answer. If the integer is not in 1-4, print the message: Sorry, you entered an invalid number. In prob2() (a) print a blank line, a line with the message: "HOW TO CORRECT UNETHICAL ACTIVITIES:" and a blank line. (b) Print the following message (11 lines) on the screen:
Background image of page 1

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

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

Page1 / 3

HW9 - /* MAE 9: Homework #9, Fall 2006 Due on Tuesday,...

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