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
Luda [366]
3 years ago
10

Java’s class Color has a constructor that takes three integers as parameters: the red, green, and blue components of the color.

A class Balloon has two fields: double radius and Color color. Write a constructor for the Balloon class that takes no parameters and sets the balloon’s radius to 10 and its color to "sky blue" (with RGB values 135, 206, and 250).
Computers and Technology
1 answer:
lys-0071 [83]3 years ago
7 0

Answer:

public Balloon () {

    this.radius = 10;

    this.color = new Color(135,206,250);

}

Explanation:

To solve this problem you need to use the constructor from the Color class to create an object with the sky blue RGB ints (Dont forget import the Color class)

class Balloon

{

private double radius;

       private Color color;

public Balloon() {

  this.radius =10;

               this.color = new Color(135,206,250);

 }

}

You might be interested in
What does Falstaff do to protect himself in battle? ​
notka56 [123]
Bark bark bark bark bark bark bark bark bark bark bark bark bark bark bark bark bark bark bark bark bark bark bark
3 0
3 years ago
Help please I would really appreciate <br>​
Dafna1 [17]

Answer:

the answer is address bar

3 0
4 years ago
Read 2 more answers
In a study of 1228 randomly selected medical malpractice​ lawsuits, it was found that 856 of them were dropped or dismissed. Use
ale4655 [162]

Answer:

<u>Hypothesis</u><u> </u>

H o : No difference between proportions

H 1 : There is a significant difference between proportions

n = 1228

b = 1228 - 856

b = 375

Since n ≥ 25

b = {( a + 0.5 ) - n/2 }\  ( √n )/2

   = {( 372 + 0.5 ) - 1228/2 }\ ( √1228 )/2

   = - 13.789

  • from table : A-2
  • p-value is 0.000
  • given significance level is α = 0.01
  • p-value is less than significance level hence there is enough evidence to reject null hypothesis
  • Which means there is a significance difference between the proportion of lawsuits that go to trail which should be dismissed
4 0
4 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
One of the main reasons for copyright law is to encourage creators to share their work for the benefit of the general public. Pl
irina [24]

Answer:

ewatuqhfuyerhjf

Explanation:

true

8 0
3 years ago
Other questions:
  • What prefix describes a mass that is 1000 times smaller than a gram
    5·2 answers
  • When does kernel panic occur?
    14·1 answer
  • Explain 5 service provided by Internet​
    6·1 answer
  • 9. True False
    8·1 answer
  • Suppose we want to adjust the page numbering for our Works Cited section so that it starts over at page 1. Is this possible to d
    12·2 answers
  • You need to design online to form in which users have to type their name and password to log into an application. The password c
    6·1 answer
  • How can using Prezi software for a presentation allow the presenter to better respond to audience needs?
    10·1 answer
  • ¿Cómo afecta negativamente a las relaciones familiares el uso de la tecnología?
    7·1 answer
  • Consider the key success factors of B2C. Is it only IT? What is most important?​
    8·1 answer
  • In the earliest stages of human history, what was the only medium?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!