Knowee
Questions
Features
Study Tools

can you make a program of game which tells the score when given a choice like a and b where a and b are famous celebrities or influencers. we have to guess out of a and b which has more followers. a and b are randomly generated from already prepared people list which has there name, follower count, description and country (we must display name, description and country). the game continues until a wrong choice is guessed. with every guess it must ask the user again to guess who has more instagram followers and clear the screen after the answer is given untill the user enters the wrong answer the screen must be cleared and said sorry you lost and print there score final . i will provide the peoples list

Question

can you make a program of game which tells the score when given a choice like a and b where a and b are famous celebrities or influencers. we have to guess out of a and b which has more followers. a and b are randomly generated from already prepared people list which has there name, follower count, description and country (we must display name, description and country). the game continues until a wrong choice is guessed. with every guess it must ask the user again to guess who has more instagram followers and clear the screen after the answer is given untill the user enters the wrong answer the screen must be cleared and said sorry you lost and print there score final . i will provide the peoples list

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

I'm sorry, but you didn't provide any text for me to respond to. Could you please provide the text?

Similar Questions

Write a two player guessing game. Players must guess a secret number (an integer) which is given as a command line argument.The program will begin by asking players for their name.The program will alternate, asking each player in the following style: <player>, what is your guess? When the player inputs a guess, 3 possible outcomes are possible.The secret number is higher than the player's guess. The program will then output Higher and go to the next player.The secret number is lower than the player's guess. The program will then output Lower and go to the next player.The secret number is equal to the player's guess. The program will print <player> wins! and the program will end.Assume all inputs are valid

Write a Python program that simulates a guessing game. The program should be structured as follows:1.   Define a function called guessing_game() that implements the game logic.2.   Inside the guessing_game() function:·         Generate a random number between 1 and 100 as the secret number.·         Prompt the user to guess the secret number within ten attempts; this should be done using a while loop.·         Provide hints to the user after each guess, indicating whether the guess is too high or too low.·         Count the number of guesses made by the user.·         If the user correctly guesses the number within ten attempts, print a congratulatory message along with the number of attempts.·         If the user exceeds the maximum number of guesses without guessing the correct number, print a message informing them that they have run out of guesses and reveal the correct number.3.   Call the guessing_game() function to start the game.

You are tasked with creating a Java program that simulates a simple quiz game. The program should prompt the user with a series of questions and allow them to enter their answers. After the user has answered all the questions, the program should compute and display the final score based on the number of correct answers.For this assignment, write a Java program that implements the functionality described in the scenario. Ensure that your program is error-free, compiles successfully, and produces the expected output. Test your program with different inputs to verify its correctness.Make sure the following requirements are met:The program should include five multiple-choice questions with four options.The four options should be labeled A, B, C, and D.The program should prompt the user to enter their answer by typing the corresponding letter (A, B, C, or D).After the user has entered their answer for each question, the program should compare it to the correct answer and keep track of the number of correct responses.The program should compute and display the final score as a percentage of the total number of questions.Use if and switch case statements to handle user input and compare it to the correct answers.Include comments to explain the purpose of each section of code and enhance code readability.

If you needed to randomly select one friend out of your 5 best friends to go to the football with you, a method to simulate this would be:

For this assignment you will write the first part of a program that will play a simple "Guess the Number" game. In the full version of this game (which you will write for this week's project) the program will randomly generate an integer between 1 and 200 inclusive and then will repeatedly ask the user for a guess. If they guess a number that is less than 1 or more than 200 an error message will be printed as a part of this loop. For this lab you will write the piece of the code that checks for this error and ends if the user picks the right number.Sample Output This is a sample transcript of what your program should do. Items in bold are user input and should not be put on the screen by your program. Note that the code for this lab includes a "debugging" output that starts with the word "DEBUG: " that tells you the number that was randomly chosen. In the full version of this program that will be removed, but for this incremental piece your lab submission should include it. (You should get used to having this kind of debugging output in your code that isn't part of the final program but is crucial to ensuring that each incremental piece is working properly before you move onto the next part of the program).If the user enters an invalid choice, your code should inform them that their choice was invalid and ask them to guess again.Enter a random seed: 99DEBUG: The number picked is: 188Enter a guess between 1 and 200: 259Your guess is out of range. Pick a number between 1 and 200.That is not the number.Enter a guess between 1 and 200: -1Your guess is out of range. Pick a number between 1 and 200.That is not the number.Enter a guess between 1 and 200: 88That is not the number.Enter a guess between 1 and 200: 188Congratulations! Your guess was correct!I had chosen 188 as the target number.You guessed it in 4 tries.Random numbers: Just like in the FunWithBranching programming assignment, you must use the Random class to generate numbers between 1 and 200. Make sure you are using int values and not doubles for this assignment! Look back at your submitted code for that project and reuse what you can here - reusing code from old assignments isn't only allowed, it's ENCOURAGED! If you've solved a problem once you should remind yourself how you solved it when asked to do something similar!

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.