Define method headers for computeAverageSales() and computeShipping Charges() according to the following requirements. Develop pseudocode for two new methods to be added to your product class:

To define the method headers for `computeAverageSales()` and `computeShippingCharges()`, you need to consider the inputs and outputs of these methods, as well as any necessary parameters.

1. `computeAverageSales()` method header:
- Description: This method calculates the average sales of a product.
- Input: The sales data for the product, such as an array of sales values.
- Output: The average sales value.
- Method header: Assuming the programming language is Java, the method header would look like this:
```
public double computeAverageSales(double[] salesData)
```
In this example, the method is public, named `computeAverageSales`, and it takes a parameter named `salesData` of type `double[]` (an array of doubles). The return type of the method is `double`.

2. `computeShippingCharges()` method header:
- Description: This method calculates the shipping charges for a product.
- Input: The weight of the product to be shipped, and possibly other parameters like the shipping method or destination.
- Output: The shipping charges for the product.
- Method header: Assuming the programming language is Java, the method header would look like this:
```
public double computeShippingCharges(double weight)
```
In this example, the method is public, named `computeShippingCharges`, and it takes a parameter named `weight` of type `double`. The return type of the method is `double`.

Now, let's develop pseudocode for two new methods to be added to a product class:

1. `computeDiscountedPrice(discountRate)`
- Description: This method calculates the discounted price of a product based on a given discount rate.
- Input: The discount rate as a percentage (e.g., 10%).
- Output: The discounted price of the product.
- Pseudocode:
```
method computeDiscountedPrice(discountRate):
discountedPrice = regularPrice - (regularPrice * discountRate)
return discountedPrice
```

2. `updateQuantitySold(quantitySold)`
- Description: This method updates the quantity sold for a product by adding the newly sold quantity to the existing quantity sold.
- Input: The quantity of the product sold in the current transaction.
- Output: None
- Pseudocode:
```
method updateQuantitySold(quantitySold):
quantitySold = quantitySold + quantitySold
```