Code for a lucky 7 game. Initial balance is 100 Rs. User will get option to click on Play button. If he clicks play, 10 Rs. will get deducted from balance. Then he can select his bet from 3 options : Below 7, Lucky 7, Above 7. Then he can click Roll Dice option. Two dice should get rolled, and total of outcome of both dice should be below 7. Suppose I got 3 on one die and 2 on another die. Then total is 5 which is below 7, So I should get message "Congratulations! You Win!" if outcome is above 7 then user loses game. If user wins, 20Rs will get credited to his balance. Suppose user bet is Lucky 7 and dice total outcome is also 7, then 30Rs will get added to his balance. Also below win or loss message, he should get two options: "Continue" or "Reset and Continue". Continue will keep current balance intact and provide option to bet and roll again. "Reset and Continue" will reset Balance back to 100Rs and provide option to bet and roll again.
Web Engineer Interview Questions
16,676 web engineer interview questions shared by candidates
Write Anagrams Detection Function
SQL queries and joining tables
Explain the project. I worked on
What is the difference between an interface and abstract class?
What is an overloaded method?
What is separation of concern?
Difference between array and dictionary.
Difference between relational and non relational db?
-What are double $$ in PHP?
Viewing 2211 - 2220 interview questions