answersLogoWhite

0


Best Answer

Without much context you can create a static class variable and add 10 to it the first time and add 2 to it every other time.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

Assuming you have a variable numWords for the total number of words, something like this:if (numWords == 0) score = 0;

else score = 10 + (numWords - 1) * 2;

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you calculate a Hangman score in Java if the first word is 10 points and each additional word is 2 more points?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is produced first current or voltage?

current flows as a result of potential difference i.e. in a circuit if there is no voltage difference between two points, no current can flow between those two points. So voltage has to be produced first.


Program in 'c' to find the LCM of any given five numbers?

Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.


How many triangles are there within a nonagon?

if you need to know how many triangles are in a polygon ... just take the number of its sides and subtract for example. nonagon has 9 sides so it will be 9-2=7 so, a nonagon has 7 triangles


How do you find execution time of a program in java?

You can have the below line as the first and last line of the program and find out the difference in time taken to calculate the execution time. This will print the system time in the console which can be used to calculate execution time.System.currentTimeMillis();


What is the first step in the technology?

Technology can be simplified down to the use of environmental objects in way they were never intended. That is how the first tool were made, like stone hand axes, spears, and projectile points.

Related questions

What Do You After You Get The Mirror On Poptropica?

on the beach and ask the women but first you have to do a hangman problem


Help on the hangman game on mtyholoy on poptropica?

first is arest then Hermes


What are the letters you should pick for hangman?

s,t, e, or i is always my first choice


When was the game known as Hang Man first played in the United States?

Hangman is a paper and pencil game that was speculated to be first played in Victorian times. The game is mentioned in 1984 by Alice Bertha, under the name "Birds, Beasts and Fishes." Hangman was introduced into the U.S as a 1978 video game titled Speak & Spell.


Poptropica big nate how to get the dog buscuits?

first they are not dog buscuits they are peanut butter crackers you have to beat nate in a hangman game


Where do you put the carkers in big nates island?

First you go to the tree house, then you win a game of hangman, then you feed spitsy the crackers.


If postage costs .54 for the first ounce and .22 for each additional ounce calculate the cost of mailing a 10-ounce envelope.?

Calculate the answer this way: $0.54 + (9 X $0.22) = X 9 X .22 = 1.98 + .54 = $2.52


If postage costs $.54 for the first ounce and $.22 for each additional ounce calculate the cost of mailing a 10-ounce envelope.?

Calculate the answer this way: $0.54 + (9 X $0.22) = X 9 X .22 = 1.98 + .54 = $2.52


If points M N O and P are arranged in such a way that three of them line how many lines are there?

The three points on a line form ONE line; the fourth point forms THREE additional lines, one with each of the first three points. So, four in total.


What what was the first song called?

The first song they released was Beat Again


Why must you first calculate a discount price on an item before calculating the total sales tax on the item?

The discount must be calculated first to get the base price of the item, then the tax percentage would be taken into consideration, otherwise you would be charging additional tax on an item which should be discounted in the first place. If you were to calculate tax first then the discount price, your total would be incorrect.


How many points does a driver get for winning a Nascar race?

The winner of a Nascar race earns 47 points and can receive a maximum of 48 points for the win.A first place finish earns 43 points.The race winner receives 3 bonus points.Leading a lap - 1 bonus pointDriver who leads the most laps in the race - 1 bonus point