I think its c I hope I'm not wrong about this If I am I'm sorry
Answer:
the data are continuous because the data can take any value in an interval.
Answer:
The solution code is written in Python:
- class Carpet:
- def __init__(self, rect, cost):
- self.size = rect
- self.costPerSqFoot = cost
-
- def cost(self):
- carpetCost = self.size.area() * self.costPerSqFoot
- return carpetCost
Explanation:
Presume that there is existence of Rectangle class as given in the question, Carpet class is written. The Carpet constructor is defined that take Rectangle object,<em> rect</em>, and <em>cost</em> as parameter (Line 2). To create data member of Carpet class, keyword "self" is used to precede with the name of the data members, <em>size </em>and <em>costPerSqFoot </em>(Line 3-4).<em> </em>The data members are initialized with the parameter <em>rect </em>and <em>cost</em>, respectively.
Next, cost method is defined (Line6 - 8). Within the <em>cost </em>method, the area method of Rectangle object is invoked by expression, <em>self.size.area() </em>and<em> </em>this will return the area value and multiplied with the costPerSqFoot to get the carpet cost and return it as output (Line 8).
Answer:
The correct answer to this question is: "this program give an error".
int i = 7; //declare a variable(i) and assign value.
while (i>=2) //use loop and check condition.i greater then equal to 2.
{
System.out.print (i +""); //print value of i.
if ((i%3) == 0) //hold remainder
{
i +2; //error.
}
else
{
i/=2; //hold Quotient
}
}
Explanation:
In the above program, there is an error in the if block because it is not the correct way to declare. To use the variable from the correct output we use a variable like this.
Example
int i = 7;
//declare a variable(i) and assign value.
while (i>=2)
//use loop and check condition.i greater then equal to 2.
{
System.out.print (i +""); //print value of i.
if ((i%3) == 0) //hold remainder
{
i =i+2;
}
else
{
i/=2; //hold Quotient
}
}
Output: 732
Answer:
software
Explanation:
A software program consists of a set of related instructions which are executed by the computer to carry out the intended operations.
Communities are used for social networking and sharing of information.
Storage utilities are used for storing of data and content.
GUIs or Graphic User Interface is used to provide a intuitive interface for the end user to facilitate ease of interaction.