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
zzz [600]
4 years ago
6

8.Arun wrote a program to divide two numbers by accepting from user. But he was not getting the intended result when the divisor

was entered as zero.What could this be?
Computers and Technology
1 answer:
Kryger [21]4 years ago
4 0
Kakapo our new generation is a lot more work
You might be interested in
In the main function, define five variables of type int, named: first, second, third, fourth, and total. Also in the main functi
fiasKO [112]

Answer:

  1. import java.util.Scanner;
  2. public class num8 {
  3.    public static void main(String[] args) {
  4.    int first, second, third, fourth,total;
  5.    double decimalOne, decimalTwo, decimalTotal;
  6.    }
  7.    public static void getData(int first, int second, int third, int fourth, double decimalOne, double decimalTwo){
  8.        System.out.println("Enter the Values");
  9.        Scanner in = new Scanner(System.in);
  10.        first=in.nextInt();
  11.        second=in.nextInt();
  12.        third=in.nextInt();
  13.        fourth=in.nextInt();
  14.        decimalOne = in.nextDouble();
  15.        decimalTwo = in.nextDouble();
  16.    }
  17.    public static int computeTotal(int first, int second, int third){
  18.        return first+second+third;
  19.    }
  20.    public static int computeTotal(int first, int second, int third, int fourth){
  21.        return first+second+third+fourth;
  22.    }
  23.   public static double computeTotal(double decimalOne, double decimalTwo){
  24.        return decimalOne+decimalTwo;
  25.    }
  26.    public static void printAll( int first, int second, int third){
  27.        System.out.println("Number one, two and three are: "+first+" "+second+" "+third);
  28.    }
  29.    public static void printAll( int first, int second, int third, int fourth){
  30.        System.out.println("Number one, two and three and four are: "+first+" "+second+
  31.                " "+third+" "+fourth);
  32.    }
  33.   public static void printAll( int first, int second, int third, int fourth, int fifth){
  34.        System.out.println("Number one, two and three and four are: "+first+" "+second+
  35.                " "+third+" "+fourth+" "+fifth);
  36.    }
  37.    public static void printAll( double first, double second, double third){
  38.        System.out.println("Number one, two and three and four are: "+first+" "+second+
  39.                " "+third);
  40.    }
  41. }

Explanation:

This solution is provided in Java:

All the variable declarations are done in the main method (lines 3-6)

Eight methods as specified in the question are created (Lines 7, 17, 20, 23, 26, 29, 33 and 37).

Observe the concept of Method Overloading (i.e. methods with same name and return types but different parameter list)

8 0
4 years ago
What is filter in computer​
Inessa [10]

Answer:

hope it helped you a little

4 0
3 years ago
A software engineer is developing a new operating system. The operating system has to make a decision when it sees an applicatio
anyanavicka [17]

Answer:

No.

Be patient. Wait a bit longer to see if the application succeeds, and if it does not, force quit and debug the operating system to figure out what's wrong.

7 0
3 years ago
QUESTION 5
Zepler [3.9K]

Answer:

allows users to accomplish tasks such as create text documents.

Explanation:

8 0
2 years ago
Which letters appear in the home row on a keyboard?
weqwewe [10]
A, S, D, F, G, H, J, K, L, <semi colon ( ; ) and apostrophe ( ' ) as the last two on the right, in front of enter>  
8 0
3 years ago
Other questions:
  • LinkedIn uses the ________ because regular users access LinkedIn for free but you can upgrade individual upgrades range from $29
    6·1 answer
  • Abby is creating a professional development plan to advance in her current career. She has identified what job she wants and wha
    14·1 answer
  • Which tab provide text formatting features
    11·1 answer
  • In addition to standard numerical entries, you can also specify appointment dates using ____ language.
    5·1 answer
  • Write a program that, for four points A, B, C and P, which a) Draws a triangle formed by ABC and a small cross showing the posit
    15·1 answer
  • What is a device that connects to the system unit and is controlled by the processor in the computer called !
    15·1 answer
  • In filmmaking, who is ultimately responsible for the creative process?
    15·1 answer
  • Difference between server and a client computer
    7·1 answer
  • What is the text output by the program?
    6·2 answers
  • A(n) _____ is a local connection point-of-presence that connects a variety of high-performance networks, and its main function i
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!