Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need all of the java files/ classes used for this project to fully compile and run at the command line Homework #3 ITEC 3150

image text in transcribedimage text in transcribed

I need all of the java files/ classes used for this project to fully compile and run at the command line

Homework #3 ITEC 3150 Spring, 2021 Homework #3 - Multithreading Due Date: 3/13/2021 at 11pm Late submissions will get a points! No exception. Problem: Implement a multithreaded solution to finding the sum of 9,000,000 double values. Description: Begin by creating a method that creates an array (not an arrayList) of 9000000 double's and populates each index with a random number. Create a class to hold the sum of all the numbers in the array. Protect access to that sum by using a ReentrantLock appropriately. Make sure you use good object oriented techniques in creating this class. Then, create a Runnable that can sum an array of any length and add that sumri to a shared total. Separate the array o a minimum of 10 pieces and launch a thread to sum each of the pieces. You probably want more threads, but experiment to find the number of threads that seems to sum the quickest. When all threads are done summing their pieces show the combined sum of all 9,000,000 pleces Extra credit (up to 15 points out of 100) for creating a JavaFX GUI that graphically shows the percentage of the array summed and the growing sumn. Other important requirements. To receive full credit for the program, pragrarri must use appropriate methodology Coding standards: The coding standards are in folder on the D2L module titled Coding Standards. Remove all packages required by your IDE. and run with crrors at the Check it before submission to make sure. Submission. Submit on D2L: All Java files should be zipped in an archive named hmwk_3_yourownName.zip You can ask questions about the homework on Discord. Grading Criteria Criteria Creates Runnable class sums an array Appropriately launches at least 10 separate threads - more is fine Updates the sum correctly Appropriately protects shared data (sum) with lock(s) Prints total sum in a readable fashion Meets coding standards Deductions Meets coding standards Code does NOT compile at command line Code does NOT run at command line Incorrectly submitting files not archived into zip file Main method includes more than variables, method calls and print out statements Points 25 15 15 20 15 10 20 100 90 10 10 Homework #3 ITEC 3150 Spring, 2021 Homework #3 - Multithreading Due Date: 3/13/2021 at 11pm Late submissions will get a points! No exception. Problem: Implement a multithreaded solution to finding the sum of 9,000,000 double values. Description: Begin by creating a method that creates an array (not an arrayList) of 9000000 double's and populates each index with a random number. Create a class to hold the sum of all the numbers in the array. Protect access to that sum by using a ReentrantLock appropriately. Make sure you use good object oriented techniques in creating this class. Then, create a Runnable that can sum an array of any length and add that sumri to a shared total. Separate the array o a minimum of 10 pieces and launch a thread to sum each of the pieces. You probably want more threads, but experiment to find the number of threads that seems to sum the quickest. When all threads are done summing their pieces show the combined sum of all 9,000,000 pleces Extra credit (up to 15 points out of 100) for creating a JavaFX GUI that graphically shows the percentage of the array summed and the growing sumn. Other important requirements. To receive full credit for the program, pragrarri must use appropriate methodology Coding standards: The coding standards are in folder on the D2L module titled Coding Standards. Remove all packages required by your IDE. and run with crrors at the Check it before submission to make sure. Submission. Submit on D2L: All Java files should be zipped in an archive named hmwk_3_yourownName.zip You can ask questions about the homework on Discord. Grading Criteria Criteria Creates Runnable class sums an array Appropriately launches at least 10 separate threads - more is fine Updates the sum correctly Appropriately protects shared data (sum) with lock(s) Prints total sum in a readable fashion Meets coding standards Deductions Meets coding standards Code does NOT compile at command line Code does NOT run at command line Incorrectly submitting files not archived into zip file Main method includes more than variables, method calls and print out statements Points 25 15 15 20 15 10 20 100 90 10 10

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_2

Step: 3

blur-text-image_3

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

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

What is a higher-order derivative?

Answered: 1 week ago

Question

Recognize the power of service guarantees.

Answered: 1 week ago