Computer Science, asked by siakhan714, 1 month ago

Question 6.
[15]
A company has 4 machines available for assignment to 4 tasks. Any machine
can be assigned to any task, and each task requires processing by one
machine. The time required to set up each machine for the processing of each
task is given in the table below.
Sample input-TIME (Hours)
Machine / Task Task 1 Task 2 Task 3 Task 4
Machine 1 13 4 7 6
Machine 2 1 11 5 4
Machine 3 6 7 2 8
Machine 4 1 3 5 9
Write a program in Java that accepts the above data from the user using the
Terminal window and stores it in a DDA (Double dimensional array) or a 2D
array of size 4,4. Calculate the total time taken to perform a particular task as
well as the total time consumed by each machine to perform all the tasks.
Sample output -
Time to perform -
Task 1 = 21 hours
Task 2 = 25 hours
Task 3 = 19 hours
Task 4 = 27 hours
Time taken by -
Machine 1 = 30 hours
Machine 2 = 21 hours
Machine 3 = 23 hours
Machine 4 = 18 hours​

Answers

Answered by jaswinderkalrajk
0

Answer:

too long but it's answer is 3263

Similar questions