Méthode | Description | |
---|---|---|
BestSalesOption ( ) : string |
Not yet implemented
|
|
CalcualteExpectedProfit ( ) : double |
A simple calculation that gives the difference between selling and buying price
|
|
CalculateTotalProductPrice ( ) : double |
Calculates the buying price for creating the products, by using a method placed in weeklyproduct.cs. This method gets the price for the ingredients from product.cs and times it with the weight given in the WeeklyProduct.cs.
|
|
CalculateTotalSellingPrice ( ) : double |
Calculates the selling price for selling all the products, by using a method placed in weeklyproduct.cs. This method gets selling price for the products times with their weight given in the weeklyproduct.cs.
|
|
Order ( double weeklyBudget ) : System |
Constructor that takes 1 parameter, and fills in the rest of information using the calculations within the class, and get the ID from the List
|
|
ToString ( ) : string |
public CalcualteExpectedProfit ( ) : double | ||
Résultat | double |
public CalculateTotalProductPrice ( ) : double | ||
Résultat | double |
public CalculateTotalSellingPrice ( ) : double | ||
Résultat | double |
public Order ( double weeklyBudget ) : System | ||
weeklyBudget | double | |
Résultat | System |