Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Guess my ID game: Use python while loops to make your friends guess your ID. 


Store your ID in a variable called myID. 


After students run your code, they will guess what your ID. Is. 


Those who don't guess the number will be stuck in an endless loop!  


Those who guess the number will end the loop and get a congratulations message!  


Start your code with the following message: 


Hi, my name is your name. Welcome to my game. 


Guess my number 


If the number chosen by the user is different than your ID, the user should see the message “You're stuck in my loop!" and be prompted to enter a number again.  


If the number entered by the user matches your ID, the number should be printed to the screen, and you should say the following words: "Well done! You are free now." 



What kind of network related attacks can be possible for university networks? How can we

achieve security to prevent those security loopholes? Share your thoughts.




Do you ever see Denial of Service attacks while using the internet? If yes, share your event where you face this. If no, what is the possible event, where you would be facing this attack?


write a java program that assigns grades


To evaluate the following equation A=B%3, where A and B are two objects of the same class. Develop a C++ program to implement this using operator overloading with friend function.


Let us consider a guessing game in which the computer picks a random two- digit number in the range from 0 to 99 and asks the user to guess the number. After each guess, the computer lets the player know how many digits of guessed numbers match the correct number. If the guessed number matches the correct number, the computer lets the player know the number of guesses the player made.

Question1. Each function should be tested as soon as it is written. To do that, write the intro- duction and write the main() function and call the intro function.

Question 2. To test the digitMatches() function, just call only that function with different inputs by giving two numbers. The function must work for any number in the range from 0 to 99.

Question 3. You test the getInt() for non-numeric input first and then the guessNumber() function for the value of the number in the correct range.


Let us consider a guessing game in which the computer picks a random two- digit number in the range from 0 to 99 and asks the user to guess the number. After each guess, the computer lets the player know how many digits of guessed numbers match the correct number. If the guessed number matches the correct number, the computer lets the player know the number of guesses the player made.

1. The program accepts only the positive numbers, i.e., the acceptable range of numbers is 0 to 99 inclusive.

2. The player tries to guess the number computer picked.

3.The program should be robust against both incorrect numbers and non-numeric char- acter (tokens) input.

4.The program must keep count of number of guesses.

5.When user enters the correct guess, the program reports the number of guesses the player made.


Let us consider a guessing game in which the computer picks a random two- digit number in the range from 0 to 99 and asks the user to guess the number. After each guess, the computer lets the player know how many digits of guessed numbers match the correct number. If the guessed number matches the correct number, the computer lets the player know the number of guesses the player made.

Questiona1: If the player enters an incorrect guess, the computer lets the player know how many digits from the guess are also in the correct number. The order of digits doesn’t affect the number of digits that match. For example, if the correct number is 21 and the player guessed 1, the computer reports one digit because the player’s guess contains 1. If the guess contains two digits that match, the computer reports two digits. The user still needs to come up with the correct order of those digits to arrive at the correct number.


Husna Dental is a personal dental clinic that recently operated on 1st January 2015. The payment for dentistry services at Husna Dental is different based on the type of treatment and patient status.


 Patient Status

Restoration (1)

Extraction(2)

Scaling(3)

Children(C)

RM6.00

RM15.50

RM4.00

Adult(A)

RM7.50

RM18.00

RM5.00

   

       Due to the opening ceremony, the discount of 20% will be given for children’s treatment and 15% discount for adult’s treatment.

Write a C++ program that performs the following.

· · · ·

a) Reads the patient's name, patient status, and type of treatment.

b) Displays the appropriate message when the user enters an invalid status.

c) Calculates the payment before and after discount.


At the end of the program, displays receipt that contain patient’s name and her/his total payment after discount.


write in selection method.


Husna Dental is a personal dental clinic that recently operated on 1st January 2015. The payment for dentistry services at Husna Dental is different based on the type of treatment and patient status.


 Patient Status

Restoration (1)

Extraction(2)

Scaling(3)

Children(C)

RM6.00

RM15.50

RM4.00

Adult(A)

RM7.50

RM18.00

RM5.00

   

       Due to the opening ceremony, the discount of 20% will be given for children’s treatment and 15% discount for adult’s treatment.

Write a C++ program that performs the following.

· · · ·

a) Reads the patient's name, patient status, and type of treatment.


b) Displays the appropriate message when the user enters an invalid status.


c) Calculates the payment before and after discount.


At the end of the program, displays receipt that contain patient’s name and her/his total payment after discount.


write in switch case method.




LATEST TUTORIALS
APPROVED BY CLIENTS