Knowee
Questions
Features
Study Tools

Raja is designing a simple game where players earn points based on their performance. Each player starts with a default score of 100. If a player completes a level, they earn 20 points. However, for each unsuccessful attempt, they lose 10 points. Additionally, if a player's score drops below 50, they are disqualified.

Question

Raja is designing a simple game where players earn points based on their performance. Each player starts with a default score of 100. If a player completes a level, they earn 20 points. However, for each unsuccessful attempt, they lose 10 points. Additionally, if a player's score drops below 50, they are disqualified.

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

Solution

Sure, but you haven't asked a question yet. Could you please provide the question related to the game Raja is designing?

Similar Questions

Single File Programming QuestionProblem statementRaja is designing a simple game where players earn points based on their performance. Each player starts with a default score of 100. If a player completes a level, they earn 20 points. However, for each unsuccessful attempt, they lose 10 points. Additionally, if a player's score drops below 50, they are disqualified. Write a program that takes the number of successful and unsuccessful attempts from the user and calculates the player's final score using the Relational and Ternary operators.ExamplesInput215OutputThe player is disqualified.Explanation: In this case, the player has 2 successful attempts and 15 unsuccessful attempts.finalScore = 100 + (2 * 20) - (15 * 10) = 100 + 40 - 150 = -10Since the final score is below 50, the player is disqualified.Input5010OutputThe player's final score is 1000.Explanation: In this case, the player has 50 successful attempts and 10 unsuccessful attempts.finalScore = 100 + (50 * 20) - (10 * 10) = 100 + 1000 - 100 = 1000The final score is 1000, and it is greater than or equal to 50, so the player is not disqualified.Input format :The first line of input consists of an integer value 'n', representing the number of successful attempts.The second line of input consists of an integer value 'n1', representing the number of unsuccessful attempts.Output format :If the player is disqualified it displays as: "The player is disqualified."If the player is qualified, the final score is displayed in the format "The player's final score is [score]."Refer to the sample output for the formatting specifications.Code constraints :In this scenario, the test cases fall under the following constraints:1 ≤ n ≤ 501 ≤ n1 ≤ 30Sample test cases :Input 1 :215Output 1 :The player is disqualified.Input 2 :1030Output 2 :The player is disqualified.Input 3 :5010Output 3 :The player's final score is 1000.Note :The program will be evaluated only after the “Submit Code” is clicked.Extra spaces and new line characters in the program output will result in the failure of the test case.

You throw a dart at the board shown. Your dart is equally likely to hit any point inside the square board. Are you most likely to get 5 points, 10 points, or 20 points?You are most likely to get points.

A video game awards 18 points for defeating a monster and 70 additional points for getting to the end of a stage.Let m represent the number of monsters a player defeated in a stage and p represent the total number of points the player earned after finishing the stage.Complete the table using the relationship between m and p.m p1 2 7 9

Batas lapisan pertama penghasilan kena pajak sesuai Pasal 17 Ayat (1) huruf a Undang-Undang Pajak Penghasilan adalah ....*25 pointsRp 100.000.000Rp 50.000.000Rp 60.000.000

In a badminton singles game, if both the players are on 29 points then at what point Will one of them win the game?

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.