Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a java applet that allows the user to draw his/her data in the form of a chart. First, the user is prompted to enter

image text in transcribed

image text in transcribedimage text in transcribed

Write a java applet that allows the user to draw his/her data in the form of a chart. First, the user is prompted to enter his/her data (maximum of 64 integer values) and then he/she will be asked to choose the type of chart to draw (bar chart or line chart). The program will then execute the user's request. Additional Requirements 1. The chart should always occupy an area of (height 300 and width- 400) 2. The chart title should be displayed on top of the chart. 3. The bars in the bar chart should be displayed in different colors (e.g. randomly generated). The actual data should be displayed on top of each bar.(See Fig. 1) 4. The line chart should be displayed in a single color (e.g. red). The actual data and a character indicating the actual position of each point should be displayed on top of the point. Besides, the two axes showing the limits of the area occupied by the chart, should be displayed in different color (e.g. black). (See Fig.2) Note: Perform all the calculations in init0. Paint0 should be used only for drawing

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

=+1 What would you do if you were the IHR manager?

Answered: 1 week ago