Question: 4 . Write a bargining script. MATLAB will act as a seller. Original price is 1 0 0 TL and MATLAB may decrease it down
Write a bargining script. MATLAB will act as a seller. Original price is TL and MATLAB may decrease it down to TL If the buyer user does not accept the price AND MATLAB als XE o want to do so MATLAB will decrease the price by TL User can buy the product any time. MATLAB will flip a coin to decide if the price will decrease. Below you see three possible stories: Story: Buy it for TL Matlab asks for tl YN and user should accept V or decline N user declines Buy it for TL matlab decreases by tl YN N N Sorry, I cannot decrease more. randomly decides not to sell. Story : Buy it for TL YN N Buy it for TL Matlab asks for tl and user should accept V or decline N user declines matlab decreases by tl YN N Sorry, I cannot decrease more. minimum price is t Story : Buy it for TL YN and user should accept V or decline N user acce at some Sold! Good deal! is sold. Y
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
