Question: I am using Eclipse for java coding. I am confused on how to do these problems. Please JavaDoc the code so I can understand it
Problem 2: Write a program, DateConverter, that reads a date from the user in format mm/ddlyyyy and converts it to m dd, yyyy Example input: 10/07/2017 Example output: October 07, 2017 Write and use a method: public static String convertMonthToString (int mm) that given a month as an integer returns the String representation of that month. To achieve this use only switch statement inside the methood. Problem 3: Write a program, TaylorSeries, that implements two methods one for calculating sin(x) and one for calculating cos(x) using the Taylor series expansion. The method signatures should be: public static double sin (double x) public static double cos (double x) For this problem use only while loops. Terminate calculation when the term, (-1)" 1 and (-1)T, respectively, reaches 0. The Taylor series for sin(x) and cos(x) can be found here: Commonly Used Taylor Series Hint: You can compare your results against the methods Math.cos(x) and Math.sin(x) from the Math library
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
