CodeWorkout - X1-10 - a Smattering of review exercises for discussion

Score: 0 / 10.0

Experimenting- this would be some branchin/decision exercises


Exercises

0 / 1.0

Write a function in Java that implements the following logic: Given 2 ints, a and b, return their sum. However, sums in the range 10..19...

0 / 1.0

Write a function in Java that implements the following logic: Given three ints, a b c, return true if one of them is 10 or more less than...

0 / 1.0

Write a function in Java that implements the following logic: Given a number n, return true if n is in the range 1..10, inclusive. Unless...

0 / 1.0

Write a function in Java that implements the following logic: We are having a party with amounts of tea and candy. Return the int outcome...

0 / 1.0

Write a function in Java that implements the following logic: Your cell phone rings. Return true if you should answer it. Normally you...

0 / 1.0

Write a function in Java that implements the following logic: Given a string name, e.g. "Bob", return a greeting of the form "Hello...

0 / 1.0

Write a function in Java that implements the following logic: Given a string, if the string begins with "red" or "blue" return that color...