akosiraff

Download ShowEscapeSequences Circle PracticeArithmeticOperat

Nov 13th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/showescapesequences-circle-practicearithmeticoperators/
  3. STEP 1: ShowEscapeSequences (10 points)
  4. Write a Java program named ShowEscapeSequences.java that displays the following.
  5. I really like
  6. CIS355A
  7. “Business Application Programming with Lab using JAVA”
  8. STEP 2: Circle (15 points)
  9. Back to Top
  10. Write an application called Circle.java that inputs from the user the radius of a circle as an integer and prints the circle’s diameter, circumference, and area. Use the example program and GUI technique message dialog box shown in the Week 1 Lecture.
  11. Use the following formulas.
  12. diameter = 2 * radius
  13. circumference = 2 * Math.PI * radius
  14. area = Math.PI * radius * radius
  15. Use the predefined constant Math.PI for your calculation. This constant is more precise than the value 3.14159. Class Math is defined in the java.lang package so you do not need to import it.
  16. STEP 3: PracticeArithmeticOperators (15 points)
  17. Back to Top
  18. Write an application called PracticeArithmeticOperators.java that asks the user to enter two numbers. The program is to convert these numbers from String to type int and then print in a tabular format the sum, the difference, the product, and the quotient of the two numbers entered. Use the example program shown in the Week 1 Lecture. For example, if the user enters 25 and 5, the following should be displayed.
  19. Operation Result
  20. 25 + 5 30
  21. 25 – 5 20
  22. 25 * 5 125
  23. 25 / 5 5
  24.  
  25. Download: http://solutionzip.com/downloads/showescapesequences-circle-practicearithmeticoperators/
Add Comment
Please, Sign In to add comment