What is a program that determines the english-language word


1. For the following problem statement, explain whether it must be coded with an if/else statement or a switch statement, or if it can be coded with either. (You do not need to write the code.)

What is aprogram that determines the English-language word for a corresponding integer value. For example, given an integer 1, return the string "one"; given an integer 2, return the string "two"; and so on, up through the integer 10.

2. What is a statement to declare a variable called *price* that contains the value 9.99.

3. A video game player earns a bonus of 100 points if their score is greater than 10,000 points. What is if statement that sets the integer field bonus equal to 100 if the player's score (also an integer field) is greater than 10,000, but otherwise sets the field bonus to zero.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: What is a program that determines the english-language word
Reference No:- TGS02709937

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)