Answer:
hope this helps.
Explanation:
import java.util.*;
class Timeconvert{ //class nane
public static String convertTime(int totalSeconds) /* fn to convert seconds to hh:mm:ss format */
{
int sec = totalSeconds; // a copy of totalSeconds is stored in sec
int m=sec/60; //to find the total min which obtained by doing sec/60
int psec=sec%60; //psec store remaining seconds
int hrs=m/60; //stores hr value obtained by doing m/60
int min=m%60; //stores min value obtained by m%60
return (hrs + ":" + min+ ":" +psec);// returning that string
}
}
public class Main
{
public static void main(String[] args) {
Timeconvert t = new Timeconvert();
Scanner in = new Scanner(System.in); //Scanner class
System.out.println("Enter the number of seconds:");
int sec = in.nextInt(); //to input number of seconds
System.out.println("hours:minutes:seconds is " + t.convertTime(sec)); //result
}
}
The data format would be best for you to receive is Spreadsheet.
<h3>What is spreadsheet?</h3>
A spreadsheet is a computer program that allows you to compute, organize, analyze, and store data in tabular form. Spreadsheets were created as electronic counterparts to paper accounting spreadsheets. The software runs on data entered into table cells. Each cell can include numeric or text data, as well as the results of formulas that calculate and display a value dependent on the contents of other cells. One such electronic document may also be referred to as a spreadsheet.
Spreadsheet users can change any recorded value and see how it affects calculated numbers. Because of this, the spreadsheet is ideal for "what-if" analysis because many situations may be studied quickly without human recalculation. Modern spreadsheet software can include numerous interacting sheets and display data as text and numbers or as graphics.
To learn more about spreadsheet visit:
brainly.com/question/8284022
#SPJ4
Answer: Samsung is from South Korea.