Question: Given a variable howMany , declared as int and assigned a value, write out a message that shows how many bananas we have. For example

 Given a variable howMany , declared as int and assigned a

Given a variable howMany , declared as int and assigned a value, write out a message that shows how many bananas we have. For example We have 0 bananas We have 1 banana We have 13 bananas Use a ternary operator to add or omit the "s" for the singular or plural form of "banana(s). End with a newline Submit History: X (23 of 23) 02/22/19 07:24:45 char x- (howMany 1) 's

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!