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
Aneli [31]
3 years ago
8

Write a method that takes two arguments: two integers. The integers are then squared, added and the result printed on the screen

. Write a simple program to invoke this method. ( Java )
Computers and Technology
1 answer:
diamong [38]3 years ago
6 0

Answer:

import java.util.Scanner;

class Main

{

   

     public static void main(String[] args)  

     {

     System.out.println(" Enter the the two numbers:");

     Scanner input = new Scanner(System.in);

     int a = input.nextInt();

     int b = input.nextInt();

     int c = sumsquareFunction(a, b);

     System.out.println("Sum of Square of two numbers are:" + c);

     }

public static int sumsquareFunction(int n1, int n2) {

     int c= n1*n1 + n2*n2;

     return c;  

  }

}

Explanation:

Please check the answer.

You might be interested in
Give me a code that draws a house with a roof in python. Please Answer!!!
Varvara68 [4.7K]

import turtle

window = turtle.Screen()

tr = turtle.Turtle()

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.left(90)

tr.forward(100)

tr.back(100)

tr.left(120)

tr.forward(75)

tr.right(78)

tr.forward(60)

window.mainloop()

In my code, we use the turtle module for the graphics to draw the house with a roof.

8 0
3 years ago
Do you think Google has an unfair advantage as a social media marketing platform? Explain.
Bond [772]
In some aspects, yes but these have recently been outweighed with the ad boycott youtube has not to mention google plus wasn't the most popular, to begin with, but in an overall sense yes as the name google is more often used than Facebook or twitter
3 0
3 years ago
Read 2 more answers
Rita used information from a blog that someone else wrote. What should she do?
Shkiper50 [21]

Answer:

rita should either ask the original author for permission to use her blog, but the best answer woyuld be that she should site her sources.

Explanation:

7 0
3 years ago
3. Which icon image is greater in file size? (Show your working) [2]
kipiarov [429]

Answer:

I would go with b. A 16 colour icon with dimensions of 100 x 100 pixels.

Explanation:

Even though the first colour icon has more colours, the second has double the pizels in the both the height and width.

Hope this answer helps!

5 0
3 years ago
In which of the following stages of the development process is a team MOST likely to interview a potential user of an app?
choli [55]

Answer: C. Prototyping

Explanation:

The Prototyping phase of App development involves making a prototype of the app in question and then releasing it to a few potential users so that they can experience the concept of the app and its workability.

The potential user is then interviewed to find out their thoughts on the direction that the app is taking to find out if it is the right one. The prototype will obviously be rudimentary but it is a great opportunity to find out how potential users view the app's concept.

4 0
3 years ago
Other questions:
  • The set of specific, sequential steps that describe exactly what a computer program must do to complete the work is called a(n)
    10·2 answers
  • All of the following are methods of communication
    8·2 answers
  • What is the ribbon in the word document
    5·1 answer
  • A writing team wants to present the six-month sales figures for its company's 14 sales representatives in a report. Because mana
    11·1 answer
  • Consider the following declaration.int[] alpha = new int[3];Which of the following input statements correctly input values into
    12·1 answer
  • What type of activities are performed with the help of the software used in hospitals?
    7·2 answers
  • Your friend really likes talking about owls. Write a function owl_count that takes a block of text and counts how many words the
    9·1 answer
  • 3. Touch screens are both input and output devices. Describe one application where a touch screen is used as an output device. (
    7·2 answers
  • Select the correct answer.
    14·1 answer
  • A timer is set after each frame is sent before waiting an ACK for that frame, how long does the timer take to be expired?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!