Question: Write a Java applet which will construct a bar table which compares the lengths of four bridges. You will need 8 items of input (from

Write a Java applet which will construct a bar table which compares the lengths of four bridges.

You will need 8 items of input (from html file to applet file):

The name of each bridge

The length of each bridge

Here is an example of possible input:

Bridge Name

Longest Span(ft)

Golden Gate

4200

Brooklyn

1595

Delaware Memorial

2150

Mackinac

3800

Requirements:

A set of parameters given in the html file.

Use different colors for different bars.

Bars are bottom justified, -- their bottoms are in same horizontal line.

One bar for one bridge.

Bars labeled by name and longest span.

Height of a bar must be proportional to the longest span it represents.

Bars must be fully visible.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!