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

 

abraskin@mbusd.org 2019_units1-4_practice > collegeLength
prev  |  next  |  chance

It's Graduation Day! You and your friends are Juniors that want to show support for one of your Senior friends, so you decide to paint one letter of their college of choice on your backs, arranging yourselves so that together, you all form their college name. Write a method that determines if their college of choice will fit on your combined backs, given that you convinced 8 of your friends to do it with you. Do not worry about a college having too few characters; the other backs can be used for exclamation points.


collegeLength("Princeton") → "This college's name will fit on your backs."
collegeLength("Swarthmore") → "You need 1 more back(s)."
collegeLength("Yale") → "This college's name will fit on your backs."

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

public String collegeLength(String college) { }

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

Difficulty: 100

Copyright Nick Parlante 2017 - privacy