Question: JAVA Programming 2 Similar Functions add Implementation #1. JAVA Convrt numbrs in a string to words //Sampl input - TEST //String str1 = Bring 30
JAVA Programming 2 Similar Functions add Implementation
#1. JAVA
Convrt numbrs in a string to words
//Sampl input - TEST
//String str1 = Bring 30 Appls to my Apt 8A;
//String str2 = Bring 9 Appls to room 1;
public StringBuildr cnvrtWrdNumToDigits(String str){
//RTURN
//should OUPUT
// x. 1.) Bring thirty Appls to my Apt ightA
//x. 2.) Bring nin Appls to room on
}
#2.
Convrt word numbr rp to numbrs
//Sampl input - TEST Cas
// String str3 = Bring nin Appls to room on;
//String str4 = Bring sixty Appls to room fifty ;
//String str5 = Bring twnty Appls to my Apt ight-A;
public StringBuildr cnvrtDigitToStr(String str){
//RTURN //SHOULD OUPUT //x. 3.) Bring 9 Appls to room 1
//x. 4.) Bring 60 Appls to room 50
//x. 5.) Bring 30 Appls to my Apt 8-A
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
