SC
Answered
Describe five ways a digital dossier is created. Describe a potential profile that has been created for your life.
On Aug 01, 2024
Surveillance cameras on roads or in buildings, credit card transactions, telephone calls, banking transactions, queries to search engines, government records Potential profile - many schools have cameras and many towns have cameras at intersections to record what students are doing at school or on the road (students may also have ID badges that are required to get into buildings) ; many students already have credit cards so purchases are tracked, all activity on phones can be tracked including phone calls and text messages, many students are already doing online banking, all Internet searching is tracked, students may also talk about traveling, Facebook activity (photo tagging) , etc., basically, everything we do can be tracked
SC
Answered
Create a class to represent a Rectangle.Your class should contain instance variables for length and width,as well as member method to calculate the area and perimeter.
On May 07, 2024
public class Rectangle
{
private double length;
private double width;
public Rectangle)
{
length = 0;
width = 0;
}
public Rectangledouble l,double w)
{
setLengthl);
setWidthw);
}
public void setLengthdouble l)
{
ifl >= 0)
length = l;
else
System.out.println"Fatal error: Length may not be negative!");
}
public void setWidthdouble w)
{
ifw >= 0)
width = w;
else
System.out.println"Fatal error: Width may not be negative!");
}
public double getLength)
{
return length;
}
public double getWidth)
{
return width;
}
public double getArea)
{
return length * width;
}
public double getPerimeter)
{
return 2 * length + width);
}
public String toString)
{
return "Length = " + length + "\nWidth = " + width;
}
public boolean equalsObject o)
{
ifo == null)
return false;
else ifgetClass)!= o.getClass))
return false;
else
{
Rectangle otherRectangle = Rectangle)o;
returnlength == otherRectangle.length)&&
width == otherRectangle.width));
}
}
}