Application that determines and prints the number of odd


DigitAnalyst
Design and implement an application that determines and prints the number of odd, even, and zero digits in an integer value read from the keyboard.

SPECIFICATION OF PROMPTS, LABELS AND OUTPUT : Your code should not have any prompt at all. The input to this program is a single integer . After the integer is read, the output consists of three lines. The first line consists of the number of odd digits in the integer followed by the label "odd digits". The second line consists of the number of even digits in the integer followed by the label "even digits". The third line consists of the number of zero digits in the integer followed by the label "zero digits". For example, if 173048 were read in, the output would be:
3 odd digits
3 even digits
1 zero digits
SPECIFICATION OF NAMES: Your application class should be called DigitAnalyst

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Application that determines and prints the number of odd
Reference No:- TGS084338

Expected delivery within 24 Hours