A method named changedPercentage that returns the percentage changed from previousPrice to todayPrice. The return type should be double. code example
Example: how to create a function that returns in java
// a method for computing the area of the rectangle
public int getArea() {
return width * height;
}