Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 6.67 Thereis a rumor circulating on the Internet that George Lucas (the creator ofthe Star Wars movies) uses a formula to create the names

Exercise 6.67 Thereis a rumor circulating on the Internet that George Lucas (the creator ofthe Star Wars movies) uses a formula to create the names for the characters in his stories (JarJar Binks, ObiWanKenobi, etc.). The formulaallegedlyis this:Your Star Wars first name:1 Take the first three letters of your last name.2 Add to that the first two letters of your first name.Your Star Wars last name:1 Take the first two letters of your mothers maiden name.2 Add to this the first three letters of the name of the town or city where you were born.And now your task: Create a new BlueJ project namedHW03-2Weissman[use your name!]. In it create a class namedNameGenerator. This class should have a method named generateStarWarsName()thatgenerates a Star Wars name, following the method described above. You will need to investigatea method of the String class that generates a substring.

please show code the above in bluej

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: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

Explain the major control roles in organisations.

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago