Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone help me with this program ? first name : Tom Last name : Damerji Mother's maiden name : White Town i was born

can someone help me with this program ?

first name : Tom

Last name : Damerji

Mother's maiden name : White

Town i was born in : Beirut

Write a new method that determines your Star Wars name.

The method will have 4 parameters, your first name, last name, mothers maiden name, and the town you were born. (1 point)

The method will return one String object, your Star Wars name. (1 point)

Your Star Wars name is created as per the instructions in blue below: (2 point)

Your Star Wars First Name: 1. Take the first 3 letters of your last name. 2. Add to that, the first 2 letters of your first name. Your Star Wars Last Name: 1. Take the first 2 letters of your mother's maiden name. 2. Add the first 3 letters of the name of the town in which you were born.

In the main method:

Ask the user to enter their first name, last name, mothers maiden name, and town they were born. Store all this data as different Strings. (1 point)

Pass all this data to your method, and the method should generate and return the users Star Wars name. (1 point)

Get the return value of the method, and display it to the screen. (1 point)

Hint: See the SubstringDemo.java file in the Examples section for how to parse a String

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Outline the employee's role in the succession management process.

Answered: 1 week ago