Question: Help me I got 13 errors need code corrected O This lab will be available until September 10th, 5:00 PM EDT Given the time in
Help me I got 13 errors need code corrected

O This lab will be available until September 10th, 5:00 PM EDT Given the time in hours, minutes and seconds, calculate the time in seconds only Output the value of total seconds. Use integer variables Sample input / output: Enter number of hours 2 Enter number of minutes Enter number of seconds 5 Total seconds: 7445 LAB ACTIVITY 1.20 1: LAB TEST 1 0 / 10 LabProgram .java / /Mikayla Jones 9/16/2024 import. java. util. Scanner; public class LabProgram. javaf public static void main (string args} Scanner sncr = new Scanner ( System. In); int numHours; 8 int numMinutes; 9 int totalseconds; 10 numHours = sncr.nextInt( ); 11 numMinutes = sncr. nextInt( ) ; 12 numSeconds= sncr. nextInt( ); 15 system. out. printIn("Enter number of hours") 14 sytem. out. printIn( "Enter number of minutes") 15 system. out. printIn("Enter number of seconds") 16 int totalseconds + (hours*3600) + (mintues * 60) + seconds; 17 System. out. printIn("Totalseconds;" + totalseconds); 18 } Run your program as often as you'd like, before submitting for grading. Below, type any needed Develop mode Submit mode nput values in the first box, then click Run program and observe the program's output in the second box Enter program input (optional)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
