The Biotech start-up you are working for is developing new drugs quicker than you can say Certain Fungal Infections. You have been loaned to the marketing department to develop an application that can generate candidate names for these new medications. After some initial market research, your business users have come up with the following criteria for a brand name:
- It must have at least 6 letters but no more than 12.
- The letters at odd positions (1, 3, 5, ) must be consonants (bcdfghjklmnprstvwxz).
- The letters at even positions (2, 4, 6, ) must be vowels (aeiou).
- The letters Q and Y did not resonate positively with the focus group and should be avoided.
- The first letter should be capitalized, the rest lowercase.
- Notes:
- You must create a method which generates one new drug name, as follows:
String generateName(int size) { your code here }
The size parameter will be used to create a generated name of the given length.
- Every time the application is run, it should generate 10 unique new brand names. Therefore, your main() method will call the generateName() method 10 times, printing the result each time. Your list should be numbered (see example below).
- Turn in only your source files.
- Do not use a package.
- When the requirements refer to odd positions (e.g. 1, 3, 5), this is the position as a business user sees it. We know that the first position is really numbered 0. Careful with this distinction.
- Want to read more about this? https://www.chicagotribune.com/business/ct-confusingdrug-names-0323-biz-20150320-story.html
- Required Main Class:
BrandName
- Required Input:
None
- Required Output:
Your output should look something like the following example; your brand names will be different. It must include your name.
Brand Name Generator E. Eckert
- Sogefakipa
- Sokilupi
- Tikezefabe
- Dikubimanu
- Gizumuxox
- Meviwive
- Xunacum
- Palusoxoro
- Bekajo
- Guvowi
Reviews
There are no reviews yet.