Friday, February 8, 2019

Java Homeworks #1

Homework 1-1 Conditionals
  1. Convert Gallons to Liters
  2. Convert temperature from Fahrenheit to Celsius
  3. Convert number to names
  4. Create a help menu providing phone numbers for agents, institutions.
  5. Read from command line, or user input, or from file
  6. Process multiple input data set until user quit.
  7. Output different phrases or greetings depends on the input data.
  8. Handle user input errors using exceptions or conditionals.
Homework 1-2 Lists, Loops, Files
  1. Write a program that will print A to F vertically on each new line.
  2. Create an array or list of numbers and calculate all.
  3. Make it interactive and take inputs from users until 'q' or 'Q' is presssed.
  4. Take inputs from file and print output to a file.
Homework 1-3 Numbers and Type Conversions
  1. Compute the circumference area of a circle given the radius.
  2. Take two numbers and calculate their GCD.
  3. Take two numbers and output the max / min / mean / sum of both.
  4. Convert Coins to currency amount
Fix it!
class FirstFix
{
    System.out.print( "If this text" );
    System.out.println "is what you see on your screen, ";
    print( "Then your program is working" );
)

No comments:

Post a Comment