Students, please be sure to log in. This site does not use cookies and cannot store work submitted when not signed in.

Unit 1 Problems

red

The following code should return "Your name is Carly and your favorite color is red"without the quotes. Finish the code to return the output correctly using the variables provided. 

Make sure you only have one return line per branch. In these introductory unit 1 problems, there is only one flow for the program so there should only be one return line which ends the execution of the method. 

In this problem, you are practicing concatenating Strings and String literals. Even though you can return it as a full string, knowing you can concatenate is important.

Type your solution        
Skills Practiced:
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.