Home Segments Index Top Previous Next

154: Practice

Write a method that displays a message such as The weight change is 1 kilogram or The weight change is 2 kilograms when sent to a number representing a change in weight. Be sure that the word kilogram is in the singular only if the receiver is 1.