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

 

jebbert@volusia.k12.fl.us > practiceQuiz2023_09_05_P1SLHL_add
prev  |  next  |  chance

Write a method that accepts a course name 'course'. If the name of the course is "AP" return "Required for AP.". If the name of the course is "P1", "SL", or "HL" return "BONUS for AP.". If the name of the course is anything else return "NOT one of my programming courses." Look at the test data for examples.


practiceQuiz2023_09_05_P1SLHL_add("AP") → "Required for AP."
practiceQuiz2023_09_05_P1SLHL_add("SL") → "BONUS for AP."
practiceQuiz2023_09_05_P1SLHL_add("HL") → "BONUS for AP."

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

public String practiceQuiz2023_09_05_P1SLHL_add(String course) { }

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

Copyright Nick Parlante 2017 - privacy