Write a program that reads 2 strings


Write a program that reads 2 strings, age (as a 4 bit binary number) followed by a first name from the keyboard then converts the age from binary to decimal and prints out the age in decimal followed by the first name in lower case letters.
You need to use keyboard.next(); method to read a word from the keyboard where this method returns a string. Need to know how to convert a char to an int. Use int n = (int) c - 48;

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program that reads 2 strings
Reference No:- TGS0145072

Expected delivery within 24 Hours