0% found this document useful (0 votes)
23 views

Midterm Exam: 5 Points Design Code Inside The Convert Button (5pts)

This document outlines the requirements for a midterm exam involving number to word conversion. It is worth 5 points to code the conversion for numbers 0 to 19. An additional 40 points is awarded for expanding the conversion to: numbers with 2 digits (10 points), 3 digits (10 points), 4 digits (10 points), and 5 digits (10 points). The final requirement is worth 50 points and involves creating a simple add, edit, delete form using a tutorial found online.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Midterm Exam: 5 Points Design Code Inside The Convert Button (5pts)

This document outlines the requirements for a midterm exam involving number to word conversion. It is worth 5 points to code the conversion for numbers 0 to 19. An additional 40 points is awarded for expanding the conversion to: numbers with 2 digits (10 points), 3 digits (10 points), 4 digits (10 points), and 5 digits (10 points). The final requirement is worth 50 points and involves creating a simple add, edit, delete form using a tutorial found online.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like