Assignment 4

Score: 0 / 15.0


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: 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: Given a string, if the string begins with "red" or "blue" return that color...

0 / 1.0

Given an array of ints, return true if the sum of all the 2's in the array is exactly 8.

0 / 1.0

Given an array of integers, swap each pair of adjacent elements starting with the first two. For example, if the array contains the...