Question: Develop a method called print _ FirstName that it must have no argument. It should ask user his / her full name ( Name Surname

Develop a method called print_FirstName that it must have no argument. It should ask user his/her full name (Name Surname) and display only the First Name.(Hint: Use JOptionPane.showMessageDialog() for input)2) Develop a method called print_LastName that it must have a String argument called fullName. It should display only the Last Name.(Hint: Use JOptionPane.showMessageDialog() for input)3) Develop a method called print_FirstLast2Chars that it must have a String argument called str. It should display first two characters and the last two character of the String str.(Hint: Use JOptionPane.showMessageDialog() for input)4) Develop a method called cubeVolume that it must have an argument height as it is double. It should calculate and display the volume of the cube. 5) Develop a method called areaCircle that it must have no arguments. It should ark user the radius of the circle, then it must calculate and display the area of the circle(Hint: Use Scanner object for reading the radius).

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 Programming Questions!