Question: Fix this code to make it calculate the effeciency of tasks performed per hour import java.util.Scanner; public class Robot { public static void main (
Fix this code to make it calculate the effeciency of tasks performed per hour import java.util.Scanner;
public class Robot
public static void mainString args
Scanner input new ScannerSystemin;
int totalTasks ;
String robotNames new String;
int tasksPerHour new int;
for int i ; i ; i
System.out.printlnEnter details for Robot i :;
System.out.printRobot Identification: ;
robotNamesi input.nextLine;
System.out.printNumber of Tasks Performed per Hour: ;
tasksPerHouri input.nextInt;
input.nextLine; consume newline leftover
input.close;
System.out.println;
System.out.printlnRobot Details:";
for int i ; i ; i
System.out.printlnRobot i ID: robotNamesi Tasks per Hour: tasksPerHouri;
double efficiency totalTasks ;
System.out.printlnOverall Efficiency: efficiency tasks per robot";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
