Question: Lesson 3 Assignment 1. Evaluate the expression Math sqrt{1+2+3+4) 2. Evaluate the expression Math.expl-Math.pow(Math.sin(1), 0.25)) 3. Write a Java expression to calculate the area of

 Lesson 3 Assignment 1. Evaluate the expression Math sqrt{1+2+3+4) 2. Evaluate

Lesson 3 Assignment 1. Evaluate the expression Math sqrt{1+2+3+4) 2. Evaluate the expression Math.expl-Math.pow(Math.sin(1), 0.25)) 3. Write a Java expression to calculate the area of a triangle, given three sides a, b, c (Heron's formula) 4. Write a Java expression for the mathematical formula. 5. The monthly payment of a mortgage of n months with monthly interest rater for a principal p is given by the mathematical formula. pr (1 + r)" (1 + r) - 1 Write a Java expression to calculate the monthly payment. 6. Lets be a string of odd length. Write a Java expression to give a substring of s with the center character removed. For example, if sis "Program", the expression should give "Proram". 7. Lets be a string of length at least 2. Write a Java expression to give a string with the first and last characters of s swapped. For example, ifs is "dog, the expression should give "god". 8. Let si and s2 be two strings of even lengths. Write a lava expression to combine the first half of si and the second half of s2, ifsi is Computer and s2's "Programmer", the expression should give "CompProgr" 9. A string variable fullNome represents a full name such as "Doe, John". Write a Java expression to give a string of first initial and last name, eg."). Doe

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!