1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Verdich [7]
3 years ago
6

In Java

Computers and Technology
1 answer:
liubo4ka [24]3 years ago
5 0

Answer:

class Main {

 public static String numToText(int digit) {

   String[] numbers = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};

   return numbers[digit % 10];

 }

 public static void main(String[] args) {

   for(int i=0; i<10; i++) {

     System.out.println(i+" = "+numToText(i));

   }

 }

}

Explanation:

I clip the input on being 0-9 by taking it modulo 10. You could also create error handling for that if desired.

You might be interested in
Ryan needs to see the space available to insert content on a slide in his presentation. Which feature of a presentation program
Sav [38]

The feature that Ryan should take advantage is Layout, which is available in his presentation, to insert the content he wants, be it a graph, picture, paragraph, bullet points, video, etc. Assuming this is a Microsoft PowerPoint, Ryan can right-click the slide he wants to put the content in, where an option window would appear. He should click on the ‘Layout’ option and several types of layouts available for him to put content on would appear: Title & Content, Two Content, Comparison, and Content with Caption.

3 0
3 years ago
Why does your e-learning course need a title slide?
aev [14]

Answer:

You've probably noticed that many e-learning courses start with a title slide. ... Your title slide is important because it's the first impression users get of your course—and learners do judge e-learning courses within moments of launching them! So take the opportunity to captivate them with a great-looking title slide.

5 0
3 years ago
Read 2 more answers
the php function that is executed is a connection to a database cannot be made is the____ function. die | isset| end | connect.
Pepsi [2]

The PHP function that is executed is a connection to a database that cannot be made is the die() function.

An error is an undesirable programming outcome. The mistake is a subset of the error. Error management is a vital component of any website or programme.

Error handling is a mechanism for identifying errors that a programme makes and taking appropriate corrective action. This can be done by utilising die() method.

When a programming problem occurs, the software will halt further code execution and display the appropriate error message to the user. The die() function displays a message and terminates the running of the programme.

The connect() function in PHP is one that is used to establish a connection to a database.

The end() method in PHP is used to locate the final element of the specified array. The end() function updates an array's internal pointer to refer to the final element and returns that element's value.

The isset() function examines whether a variable is set, which implies that it has to be declared and is not NULL. If the variable is present and not NULL, this function will return true; otherwise, it will return false.

To learn more about PHP click here:

brainly.com/question/29740624

#SPJ4

4 0
1 year ago
To have a set of command
GalinKa [24]

Every program that interacts with people responds to a specific set of commands. The set of commands and the syntax for entering them is called the user interface and varies from one program to another. The DOS operating system makes a distinction between internal and external commands.

3 0
3 years ago
Fifty part-time students were asked how many courses they were taking this term. The (incomplete) results are shown below. Need
Ne4ueva [31]

Answer:

The answer for B is 10% and for C is 40%.

Explanation:

To get the percentage for B you take the the frequecy of students taking 2 courses (5) and multiply it by 100 then you divide it by whole number of students.

For C you do the after adding the number of students taking 1 or 2 courses (20).

5 0
3 years ago
Other questions:
  • What does a first line indent look like
    13·1 answer
  • If a 120 V appliance requires 15 A to operate, what is the resistance of the appliance?
    10·1 answer
  • the id selector uses the id attribute of an html element to select a specific element give Example ?​
    11·1 answer
  • Add and multiply
    10·1 answer
  • I need help with this question!!
    8·1 answer
  • NEED IT ASAP. Jack is an accountant. He cant access the spreadsheet software, which is installed on the server. what should jack
    13·1 answer
  • Anyone want to talk? it can honestly be about any subject :)
    5·1 answer
  • This software application can be used to organize, analyze, and illustrate data?
    12·2 answers
  • Consider the following code segment. How many unique new (do not count the starting process) processes are created? (you may wan
    6·1 answer
  • are there any hexadecimal digits that cannot be created using 4 bits? how many bits would you need to represent the hexadecimal
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!