opload answer sheet Create an interface, Stock derivatives, with two attributes viz., delta=0.5 and vega 0.2 which are used to determine option premium of a stock. Also add an abstract method Find...


Please answer. Asap


.



opload answer sheet<br>Create an interface, Stock derivatives, with two attributes viz., delta=0.5 and vega 0.2 which are<br>used to determine option premium of a stock.<br>Also add an abstract method Find Premium).<br>Write a class Options which implements interface Stock derivatives. Options class also contains two<br>attributes called stock price and option premium.<br>This class contains a constructor to initialize stock price. Implement Find Premium) which<br>determines option premium based on stock price. By using following formula<br>option premium= stock price*delta*vega.<br>Besides implementation of Find Premium0, add another method called cal op0 which changes<br>stock price randomly between 0 and 9 for 10 times and each time display updated option premium<br>using Find Premium). To generate random number use inbuilt method Math.random).<br>Write a main) method that tests in another class named Stock.<br>

Extracted text: opload answer sheet Create an interface, Stock derivatives, with two attributes viz., delta=0.5 and vega 0.2 which are used to determine option premium of a stock. Also add an abstract method Find Premium). Write a class Options which implements interface Stock derivatives. Options class also contains two attributes called stock price and option premium. This class contains a constructor to initialize stock price. Implement Find Premium) which determines option premium based on stock price. By using following formula option premium= stock price*delta*vega. Besides implementation of Find Premium0, add another method called cal op0 which changes stock price randomly between 0 and 9 for 10 times and each time display updated option premium using Find Premium). To generate random number use inbuilt method Math.random). Write a main) method that tests in another class named Stock.

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here