Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

you will draw grades of students as a horizontal bar chart, as shown in Figure 1 and 2. Your program will load input data from

you will draw grades of students as a horizontal bar chart, as shown in Figure 1 and 2. Your program will load input data from a text file. Input data contains student names and exam grades for students. Sample input data files (student_info1.txt and student_info2.txt) are shown in Box 1 and Box 2. Input data files start with an integer value denoting the number of exams. For instance, for the first data file -student_info1.txt-, there are five exam grades. In the second file, there are three exams. Total grade of each student can be maximum 100. Your program will read a single file at each run, and plot grades for all students found in the input data file. Design your algorithm in such a way that if you change the input file, it should adjust the parameters of the bar charts so that all student data fits into a figure window. For instance, you need to compute the height of rectangles according to the number of students in the input files. As can be seen from Figures 1 and 2, rectangle heights are bigger for nine students found in the second data file. In these examples, figure dimensions are W:1500xH:800. You may adjust figure dimensions according to your screen resolution. You should store students in a Student array. The UML class diagram of Student class is shown in Figure 3. Name data field is private. Student grades are stored in the public grades array. You should automatically create grades array according to the number of exams, provided in the input data files. Note that in each data file, exam numbers are different. Tip: Create grades array in the second constructor.

Fig1

image text in transcribed

Fig2

image text in transcribed

FIGURE 3 image text in transcribed

Please help me about this assignment. if you attach mentioned java classes it will mean so much to me. Thanks

I NEED MAIN CLASS ABOUT THIS ASSIGNMENT ( WHICH INCLUDES READING FILE FROM A TXT FILE CODE, PLACING IT TO A ARRAY and others.. ) TXT FILES ATTACHED AS A IMAGE IN !!!FIGURE 3!!!

IMPORTANT NOTE : Its second time asking this question. The other answer was so weak and it was only including a particilar part of the student class (not the main class).

Code will and should look like Fig 2 or Fig 1. you can decide which one you want to do.

Student Grades 51 100 Joselyn 73 Genevieve 53 Marcos Hendrix 57 Kinsley 95 Evie 62 Carlos Chace 27 51 Scarlett 69 Ben Jayden Morgan Pamela 38 70 Student Grades 51 100 Joselyn 73 Genevieve 53 Marcos Hendrix 57 Kinsley 95 Evie 62 Carlos Chace 27 51 Scarlett 69 Ben Jayden Morgan Pamela 38 70

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

Semantics Of A Networked World Semantics For Grid Databases First International Ifip Conference Icsnw 2004 Paris France June 2004 Revised Selected Papers Lncs 3226

Authors: Mokrane Bouzeghoub ,Carole Goble ,Vipul Kashyap ,Stefano Spaccapietra

2004 Edition

3540236090, 978-3540236092

More Books

Students also viewed these Databases questions

Question

Describe how language reflects, builds on, and determines context?

Answered: 1 week ago