Midterm Exam
5 points Design
Code inside the Convert Button (5pts)
int numb=Integer.parseInt(txtNum.getText());
String[]
ones={"zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fo
urteen","fifteen","sixteen","seventeen","eighteen","nineteen"};
String[] tens={"","","twenty","thirty","fourty","fifty","sixty","seventy","eighty","ninety"};
if(numb >=0 && numb<=19){
String x=ones[numb];
lblResult.setText(x);
}
Continuation of the Program(40pts)
Two Digits(example: 43 Fourty Three) = +10pts
Three Digits(example: 512 Five Hundred Twelve) = +10pts
Four Digits(example: 6041 Six Thousand Fourty One ) = +10pts
Five Digits(example:82313 Eghty Two Thousand Three Hundred Thirteen) = +10pts
For your Final Requirement Create a simple add edit delete. Tutorial in the Internet.(50pts)
Sample Form