{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

assignment2

# assignment2 - EECS 10 Homework 2 Prof Rainer Doemer October...

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

EECS 10: Homework 2 Prof. Rainer Doemer October 3, 2008 Due Monday, October 13, 2008 at 12:00pm 1 Part 1: Exercise 2.16, page 59 [10 points] When you run your program, it should look like this: Please enter two numbers. Number 1: 5 The first number is 5. Number 2: 2 The second number is 2. The sum is 7. The product is 10. The difference is 3. The quotient is 2. The remainder is 1. The files that you should submit for this part of the assignment are: numbers.c : the source code file. numbers.txt : the brief text file to explain what the program does and why you chose your method of implemen- tation ( no more than 5 sentences ). numbers.script : the typescript file to show that your program works with the numbers shown above, as well as with 27 and 42. 2 Part 2: Adding Liquid Volumes [30 Points] Write a C program that computes the sum of two liquid volumes specified in US measures. In particular, your program should prompt for the number of gallons, quarts, pints, cups, fluid ounces, table spoons, and tea spoons for 2 liquid vol- ume ”tuples”, then display the sume of the two as result. In addition, display each liquid value after it has been entered. When you run your program, it should look like this:

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

assignment2 - EECS 10 Homework 2 Prof Rainer Doemer October...

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

View Full Document
Ask a homework question - tutors are online