Question: CHALLENGE ACTIVITY 2 . 6 . 2 : Type casting: Reading and adding values. Strings num _ owls _ A and num _ owls _
CHALLENGE ACTIVITY
: Type casting: Reading and adding values.
Strings numowlsA and numowlsB are read from input. Assign totalowls with the sum of numowlsA and numowlsB
Ex: If the input is:
then the output is:
Number of owls:
Note:
Use the appropriate conversion function for each input.
The input values like or should not explicitly be written in the code, since the values of numowlsA and numowlsB are randomly generated.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
