id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

james.shockey@austinisd.org > nameConvention
prev  |  next  |  chance

/**
* nameConvention
* Given a string and period number, create a correctly fromed String
* with the LASA naming convention for codingbat exercises
* count words that are greater than or equal to a given length.
*
*
* @param period - an integer with a students period number
* @param name - a string with a student’s full name in form of “First Last” name.
* @return a string with a correctly form naming convention sequence
*
*/


nameConvention(5, "Paul McCartney") → "(P5) McCartney, Paul"
nameConvention(2, "John Lennon") → "(P2) Lennon, John"
nameConvention(4, "George Harrison") → "(P4) Harrison, George"

...Save, Compile, Run (ctrl-enter)

String nameConvention(int period, String name){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy