touque.ca > Education Commons > Java > Assignments > IO

Input/Output

  1. read two integers from a file and display, with appropriate formatting and labels, their sum, difference, product, quotient, and power
  2. read two doubles from a file and display, with appropriate formatting and labels, their sum, difference, product, quotient, and power
  3. read from a file two numbers and a character code identifying the numbers as integers or doubles; display the sum, difference, product, quotient, and power of the numbers with appropriate formatting and labels
  4. read pairs of integers from a file, one pair per line, and write to a second file, with appropriate formatting and labels, the sum, difference, product, quotient, and power of each pair
  5. read pairs of doubles from a file, one pair per line, and write to a second file, with appropriate formatting and labels, the sum, difference, product, quotient, and power of each pair
  6. read from a file two integers representing, respectively, the number of following lines which contain pairs of integers and the number of succeeding lines which contain pairs of doubles, and write to a second file, with appropriate formatting and labels, the sum, difference, product, quotient, and power, of each pair
  7. read from a file lines containing pairs of numbers; for each pair, write to a second file, with appropriate formatting and labels, the sum, difference, product, quotient, and power
  8. read lines from a file; if the lines contain pairs of numbers, for each pair, write to a second file, with appropriate formatting and labels, the sum, difference, product, quotient, and power

touque.ca > Education Commons > Java > Assignments > IO

[This page last updated 2020-12-23 at 12h12 Toronto local time.]