2 small Java programs and 1 applet
Q1. Student output (4 students) and averaging their marks from a text file that needs to be input.
Q2. A program which will find the file locations (the parameter for the src field, not the name field) for all images in an html page.
Q3. Convert the program for Q2 to an applet which looks for hyperlinks
Write java programs to satisfy the following requirements for Q1 and Q2 and an applet and html file for Q3. There is no need to compile or run the code during submission.
Submit only the three java files and one html file (nothing else is required).
Marking System is based around
* a program which doesn't compile gets - no payment
* a program which compiles (and looks reasonably complete) but doesn't run - no payment
* a program which terminates correctly with correct output of the program will ensure payment
* the programming style is needs to be considered
The file [url removed, login to view] contains student names and results for English, Chinese, Mathematics and History in that order. Each mark is out of 100. The mark in the report has to be rounded to the nearest integer and the grade, using the scheme HD=>80 - 100, D=>70 - 79, C=>60 - 69, P=>50 - 59, N=>0 - 49, has to be shown for the rounded mark. The average is calculated from the unrounded, raw marks and the average, once calculated, is rounded. Read the file and print individual student reports in the format below.
English 63 C
Chinese 38 N
Mathematics 56 P
History 51 P
All the output reports must be in the same file but they should be printing on separate pages.
Write a program which will find the file locations (the parameter for the src field, not the name field) for all images in an html page. Test your program on www.deakin.edu.au. Collect the list in an array and display the results in a TextArea.
Convert the program for Q2 to an applet which looks for hyperlinks. Allow it to then look for hyperlinks on each of the links which it found and then down another level. Present the output as
on a TextArea with scrollbars. This program is the basis of a webcrawler. Be careful your program does not "get away" from you. Test it thoroughly at level 1 then at level 2 before extending it to a quantity coming in as a parameter.
Must be able run in a PC environment