Simple Rock Paper Scissors game with JAVA language : Code: import java . util . Random ; import java . util . Scanner ; // Rock Paper Scissor game in java // Sk Elaf Ahmed public class RockPaper { public static void main ( String [] args ) { //Rock = 0 Paper = 1 Scissor = 2 Scanner sc = new Scanner ( System . in ); int playerScore = 0 , compScore = 0 ; for ( int i = 0 ; i < 3 ; i ++){ System . out . println ( "Enter...
Hi guys the problem I am going to discuss in this blog is about some problem that you may face while doing C programme in your VS code. There are various methods to install VS code and MinGW(C compiler) but when you use them to run a code it may show you some error in output or in VS code terminal. But if you think your installation process is wrong, wait that may be not the reason, it's because of your system's anti virus that is blocking your VS code to get access of your MinGW's bin folder. This problem mostly seen when you buy a new Laptop or PC & they give you a trial of anti virus software (McAfee). Solution : All you need to do is when you gonna run a programme in your system simply 1>Open your McAfee anti virus application 2>Now find the settings option then click on it and then click on "Real Time Scanning" 3>Now last step is click on the "Turn Off" button and turn it off as long as you want. With these simple steps you can e...
Objective Today, we're learning about Key-Value pair mappings using a Map or Dictionary data structure. Check out the Tutorial tab for learning materials and an instructional video! Task Given names and phone numbers, assemble a phone book that maps friends' names to their respective phone numbers. You will then be given an unknown number of names to query your phone book for. For each queried, print the associated entry from your phone book on a new line in the form name=phoneNumber ; if an entry for is not found, print Not found instead. Note: Your phone book should be a Dictionary/Map/HashMap data structure. Input Format The first line contains an integer, , denoting the number of entries in the phone book. Each of the subsequent lines describes an entry in the form of space-separated values on a single line. The first value is a friend's name, and the ...
Comments
Post a Comment