Answer:
ahhh it is the code wee need to fogure out right?? help me to help yuh
Explanation:
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
}
}
Answer:
b. template<classT>.
Explanation:
Template functions are that can work with generic types. Template lets us to create a function so that more than 1 type or class can adapt the functionality of that function.
We can write the template function as following:-
template<class typename>.
It matches to the option b.
Answer:
Screenshot
Explanation:
If what Abby wants is a simple snapshot then her best option would be to take a Screenshot of her calendar. A Screenshot is basically a snapshot/photo of the exact screen that is displayed to you on your personal computer. This is done by pressing the windows key and prtsc key on the keyboard at the same time. The screen will go dark-grey for a second and a snapshot of your screen will be saved in the Windows Pictures folder. She can then grab this picture and send it to whoever she wants.