Your SlideShare is downloading. ×
  • Like
×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply
Published

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
7
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. HELPIDO.COMCLICK HERE TO GET THE SOLUTION !!!!!!PRG/421 Java Programming II - Week 3DISCUSSION QUESTION # 1Think of a programming task—other than the individual or team assignments in this course—inwhich you would choose to use an exception handler. Write the code for the try-catch block. Explainthe activity and your code.DISCUSSION QUESTION # 2Think of a programming task—other than the individual or team assignments in this course—inwhich you would choose to use a data file. Write the code to read or write the file. Explain theactivity and your code.DISCUSSION QUESTION # 3What are the advantages and disadvantages of sequential and random access files?Provide an example in which a sequential file is a better choice than a random access file. Explainwhy.Provide an example in which a random access file is better than a sequential file. Explain why.LEARNING TEAMCreate a GUI-based program to accept name of donor, name of charity, and amount of pledge fromthe user.Display a list of entries in a JTextArea or JTable.Submit the .java source file for this program.INDIVIDUAL ASSIGNMENTThis is a two-part assignment.Part 1Design, implement, test, and debug a program with a JFrame that allows the user to enter a seriesof contacts’ names, ages, e-mail addresses, and cell phone numbers, and creates a file from the
  • 2. entered data. Validate the age entry to ensure that it is numeric and between 0 and 120. Includeinformation for three to five contacts.Part 2Design, implement, test, and debug a program that reads the file you created by the list in Part 1and displays the records in a JFrame. You may either display all entries in the list at once or displaythem one at a time; the user interface is up to you. Protect against not being able to open the file.CLICK HERE TO GET THE SOLUTION !!!!!!