I l @ ve RuBoard |
For each assignment, follow the software life cycle from specification through release. Exercise 7-1: Write a program to convert English units to metric (e.g., miles to kilometers, gallons to liters, etc.). Include a specification and a code design. Exercise 7-2: Write a program to perform date arithmetic, such as how many days there are between 6/1/90 and 8/3/92. Include a specification and a code design. Exercise 7-3: A serial transmission line can transmit 960 characters per second. Write a program that will calculate how long it will take to send a file, given the file's size . Try it on a 400MB (419,430,400 byte) file. Use appropriate units. (A 400MB file takes days.) Exercise 7-4: Write a program to add an 8% sales tax to a given amount and round the result to the nearest penny. Exercise 7-5: Write a program to tell whether a number is prime. Exercise 7-6: Write a program that takes a series of numbers and counts the number of positive and negative values. |
I l @ ve RuBoard |