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
Veseljchak [2.6K]
3 years ago
6

Please help.

Computers and Technology
1 answer:
storchak [24]3 years ago
4 0

Hey mate!

Answer:

import java.util.*;

class Max Min

{

public static void main()

{

int a,b,c,x,y,z,m,n;

Scanner in=new Scanner(System.in);

System.out.println("Enter three unequal numbers:");

a=in.nextInt();

b-in.nextInt();

c=in.nextInt();

x=Math.max(a,b);

y=Math.max(b,c);

z=Math.max(c,a);

m=Math.min(x,y);

n=Math.min(z,m);

System.out.printLn("Second Smallest Number is:"+n);

}

}

Explanation:

  1. here scanner class is used
  2. here java.util package is used

<em><u>h</u></em><em><u>o</u></em><em><u>p</u></em><em><u>e</u></em><em><u> </u></em><em><u>it</u></em><em><u> </u></em><em><u>he</u></em><em><u>lped</u></em><em><u> you</u></em><em><u>:</u></em><em><u>)</u></em>

You might be interested in
#Write a function called hide_and_seek. The function should #have no parameters and return no value; instead, when #called, it s
Arlecino [84]

Answer:

# hide_and_seek function is defined

def hide_and_seek():

# for loop from 1 to 10

# and print each number

for number in range(1, 11):

print(number)

# the last message is displayed on its own line

print("Ready or not, here I come!")

# the function is called

hide_and_seek()

Explanation:

The code is well commented. A sample image of the output when the code is executed is attached.

7 0
3 years ago
Consider the following relation: CAR_SALE (Car#, Date_sold, Salesman#, Commision%, Discount_amt Assume that a car may be sold by
Nady [450]

Answer:

See explaination

Explanation:

The given relation is:

CAR_SALE(Car#, Date_sold, Salesperson#, Commission%, Discount_amt)

Primary key: {Car#,Salesperson#}

We will first check whether the relation is in 1NF.

A relation is said to be in the 1st Normal form(1NF) if all the columns in the relation have atomic values. In this case, the relation is in 1NF.

A relation is said to be in the second normal form(2NF) if it satisfies the condition that all non keys are completely dependent on the primary key and just a part of the primary key.

In the case of the CAR_SALE relation, the Commission% depends only on the Salesperson# and not on the combination of Car# and Salesperson#. This means that the given relation is not in 2NF. To satisfy 2NF, we make two relationships as given below:

SALE_DETAIL(Salesperson#, Commission%)

and CAR_SALE(Car#, Date_sold, Salesperson#, Discount_amt)

Now both the relations are in 2NF.

For a relation to be in 3NF, no non-key should be functionally dependent on another non key.

In the case of the CAR_SALE relation, it is specified that the Date_sold field determines the Discount_amt. Therefore the modified CAR_SALE is not in 3NF.

To satisfy 3NF, we seperate the non key and the dependent non key and create a different table.

Final Relations:

SALE_DETAIL(Salesperson#, Commission%)

Discount_Detail(Date_Sold, Discount_Amt)

CAR_SALE(Car#, Date_sold, Salesperson#)

7 0
3 years ago
How to delay sending an email in office 365
expeople1 [14]
You can’t it’s impossible unless your a hackers
3 0
3 years ago
How does a push system differ from a pull system?
sergeinik [125]
Well if were talking about computer cooling, push system is like it seems pushing air into the computer, pull system is taking out air!! the best systems have both to get the optimal cooling possible!!!
3 0
3 years ago
Tasks you can perform online include which of the following?
nalin [4]

Answer:

k bhaneko hmm where ez the pic????????

8 0
3 years ago
Other questions:
  • What does "WPA" stand for?
    15·2 answers
  • Keep getting the message i failed to sign in to email on my phone but i can open my email. whats going on?
    10·2 answers
  • In which type of market do farmers sell their produce directly to village traders in rural areas?
    14·1 answer
  • Sammy created a new logo for his client enlarged to use on a billboard ad. Now Sammy needs to redo the logo. What should he do t
    5·1 answer
  • witch option in a presentation program contains the formatting and placeholders for all the items that appear on a slide?
    11·2 answers
  • What is a method to exit wordprocessing software
    14·1 answer
  • Which practice is the safest way to sit at a desk while typing on the computer?
    12·1 answer
  • Write an application program in C++ to implement a class Fibonacci to print Fibonacci series upto N using member function series
    9·1 answer
  • Computer memory uses different numbers of bytes to store different data types.
    7·1 answer
  • What read a page on website​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!