1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tatiana [17]
3 years ago
5

How will you identify a file type on your computer?

Computers and Technology
1 answer:
Andru [333]3 years ago
5 0

You use the extension on the end of the file to tell you the type of a file

The extension is the .whatever in the name of the file

You might be interested in
The Double.parseDouble() method requires a String argument, but it fails if the String cannot be converted to a floating-point n
Andrei [34K]

Answer:

  1. import java.util.Scanner;
  2. public class Main {
  3.    public static void main(String[] args) {
  4.        Scanner input = new Scanner(System.in);
  5.        String numStr = input.nextLine();
  6.        double num;
  7.        try{
  8.            num = Double.parseDouble(numStr);
  9.        }
  10.        catch(NumberFormatException e){
  11.            num = 0;
  12.            System.out.println("Value entered cannot be converted to a floating point number.");
  13.        }
  14.    }
  15. }

Explanation:

The solution code is written in Java.

Firstly, we create a Scanner object and prompt user to input a number (Line 5-6). Next, we create a try -catch block and place the parseDouble inside the try block. If the input is invalid (e.g. "abc"), a NumberFormatException error will be thrown and captured and set the num to 0 and display the error message (Line 11 - 13).  

3 0
3 years ago
What makes a computer a computer?​
MrMuchimi

Answer:

A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and process data. You may already know that you can use a computer to type documents, send email, play games, and browse the Web.

8 0
3 years ago
Read 2 more answers
Which describes an operating system that is multitasking?
tatuchka [14]
The answer is b. because A is using one at a time. C is trying to use 1 at a time.
7 0
3 years ago
Read 2 more answers
When you call one of the Scanner class's methods to read a primitive value, such as nextInt or nextDouble, and then call the nex
Rzqust [24]

The answer is true.

Explanation:

The scanner class's methods are the methods in java.util, which allows the user to read values of various types. If the nextLine is issued after a numeric read and the numeric value is at the end of the line, nextLine returns the empty string.

The problem occurs when you click the enter key which is a new line \n character. nextInt() has only the integer but skips the new line \n.

To solve this problem, you have to add the input.nextLine() after reading the int it will consume the \n.

Hence, make input.nextLine(); call after input.nextint(); which reads till end of life.

5 0
3 years ago
Which enables the computer to store data information and instruction​
amid [387]

Answer: The memory card

Explanation: If it is broken then you might lose all your data. AND I SAID MIGHT

6 0
3 years ago
Read 2 more answers
Other questions:
  • Lance has three tables in his database he wants to generate a report to show the data from the three table so he decides to link
    6·2 answers
  • A company moves a popular website to a new web host. Which of the following will change as a result?
    15·1 answer
  • Select the correct answer.
    12·2 answers
  • To make a drop shadow larger what should you change about the drop shadow in gimp
    12·1 answer
  • Based on a Supreme Court ruling, an Internet-based merchant needs to charge sales tax only when _____.
    9·1 answer
  • A consumer is the name for:
    6·2 answers
  • Write a function sample_median(n,P) that generates n random values using distribution P and returns the median of the collected
    7·1 answer
  • Write a java program.
    5·1 answer
  • While storms could be a cause, power______ are more likely to be caused by disturbances from high-demand equipment in a home or
    8·1 answer
  • Which one of the following is malicious software that denies you access to your files or your organization's files unless you pa
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!