Write a java program to calculate the taxable amount and Tax as per following scenario:
Calculate Taxable amount that will compute and display the taxable amount based on the
following conditions:
If the type of tax is “Sales tax” and the yearly income is greater than 5000 then taxable
amount is twice the yearly income. Otherwise taxable amount is the same as the yearly
income. If the type of tax is “VAT tax” and the yearly income is greater than 5000 then
the taxable amount is 3 times the yearly income. Otherwise, the taxable amount is twice
the yearly income
Calculate tax based on the below given conditions
If type of tax is “Sales tax” and years to pay tax is greater than 1 year, then overall
total tax is 3% of the taxable amount. But if years to pay tax are less than 1 year, then
overall tax is 2% of the taxable amount. If type of tax is “VAT tax” and years to pay tax
is greater than 1 year, then overall total tax is 4% of the taxable amount. But if the years
to pay tax is less than 1 year, then overall total tax is 3% of the taxable amount.
Answers
Answer:
Find solutions for your homework
Find solutions for your homework
engineeringcomputer sciencecomputer science questions and answers10. mdps: micro-blackjack in micro-blackjack, you repeatedly draw a card (with replacement) that is equally likely to be a 2, 3, or 4. you can either draw or stop if the total score of the cards you have drawn is less than 6. otherwise, you must stop. when you stop, your utility is equal to your total score (up to 5), or zero if you get a total of 6 or
Question: 10. MDPs: Micro-Blackjack In Micro-Blackjack, You Repeatedly Draw A Card (With Replacement) That Is Equally Likely To Be A 2, 3, Or 4. You Can Either Draw Or Stop If The Total Score Of The Cards You Have Drawn Is Less Than 6. Otherwise, You Must Stop. When You Stop, Your Utility Is Equal To Your Total Score (Up To 5), Or Zero If You Get A Total Of 6 Or
This problem has been solved!
See the answer
10. MDPs: Micro-Blackjack
In micro-blackjack, you repeatedly draw a card (with replacement) that is equally likely to be
a 2,
Show transcribed image text
Expert Answer
100%
Answer - a) To find : states and the actions for given MDP( stands for Markov Decision Process) ANSWER - The state is the current sum of cards + a terminal state 0, 2, 3, 4, 5, Done The actions given in the problem are {Draw, Stop} b) To find :The tr…
View the full answer
Transcribed image text: 10. MDPs: Micro-Blackjack In micro-blackjack, you repeatedly draw a card (with replacement) that is equally likely to be a 2, 3, or 4. You can either Draw or Stop if the total score of the cards you have drawn is less than 6. Otherwise, you must Stop. When you Stop, your utility is equal to your total score (up to 5), or zero if you get a total of 6 or higher. When you Draw, you receive no utility. There is no discount (gamma = 1). a) What are the states and the actions for this MDP? b) What is the transition function and the reward function for this MDP? c) Give the optimal policy for this MDP. d) What is the smallest number of rounds (k) of value iteration for which this MDP will have its exact values (if val