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
Mnenie [13.5K]
3 years ago
5

What will be displayed after this code segment is run?

Computers and Technology
1 answer:
Serga [27]3 years ago
5 0

Answer:

D. Sapphire.

Explanation:

You might be interested in
Write a modular program that allows the user to enter a word or phrase and determines whether the word or phrase is a palindrome
Ostrovityanka [42]

Answer:

import java.util.Scanner;

public class num10 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter a word");

       String word = in.nextLine();

       String reversed = "";

       //Get the length of the string entered

       int length = word.length();

       //Loop through the string and reverse th string

       for ( int i = length - 1; i >= 0; i-- )

           reversed = reversed + word.charAt(i);

       //Compare the two strings "word" and "reversed"

       if (word.equals(reversed))

           System.out.println(word+" is a palindrome");

       else

           System.out.println(word+" is not a palindrome");

   }

}

Explanation:

Since we know that a palindrome word is a word that reads the same forward and backward, The Idea here is:

  • To obtain a word from a user.  
  • Use a for loop to reverse the word and store in another variable
  • Use if....else to compare the two strings and determine if they are equal, if they are equal then the word is palindrome.
6 0
4 years ago
The code below is repetitious. What is the output of this program?
expeople1 [14]

Answer:

6

Explanation:

5 0
3 years ago
Read 2 more answers
I don’t understand how to make a hyperlink or put an image in an html file
Mademuasel [1]

To use image as a link in HTML, use the <img> tag as well as the <a> tag with the href attribute. The <img> tag is for using an image in a web page and the <a> tag is for adding a link. Under the image tag src attribute, add the URL of the image. With that, also add the height and width.

-tutorialspoint

8 0
3 years ago
JAVA Programming.
jeka94

Answer:

// Java profram to perform Arithmetic operations on square matrices

// Comments are used for explanatory purpose

// Program starts here

import java.util.*;

import java.io;

public class Matrices {

// Multiply Method Here

static void multiply(int mat1[][],int mat2[][], int mulmat[][])

{

int i, j, k;

for (i = 0; i < N; i++)

{

for (j = 0; j < N; j++)

{

mulmat[i][j] = 0;

for (k = 0; k < N; k++)

mulmat[i][j] += mat1[i][k] * mat2[k][j];

}

}

System.out.println("Result matrix" + " is ");

for (i = 0; i < N; i++)

{

for (j = 0; j < N; j++)

System.out.print( mulmat[i][j] + " ");

System.out.println();

}

}

// Subtraction Method here

static void sub(int mat1[][],int mat2[][], int submat[][])

{

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

for(int j=0;j<N;j++){

addmat[i][j]=mat1[i][j]-mat2[i][j]; //

System.out.print(submat[i][j]+" ");

}

}

// Addition Method here

static void add(int mat1[][],int mat2[][], int addmat[][])

{

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

for(int j=0;j<N;j++){

addmat[i][j]=mat1[i][j]+mat2[i][j]; //

System.out.print(addmat[i][j]+" ");

}

}

// Main Method Starts here

public static void main (String [] args)

{

Scanner input = new Scanner (System.in);

// Declare type of square matrix

int N;

// input N

lbl: N = input.nextInt();

if(N>=2 && N<=6)

{

int mulmat[][] = new int[N][N] ;

int addmat[][] = new int[N][N] ;

int submat[][] = new int[N][N] ;

// Multiplication

mulmat(mat1, mat2, mulmat);

// Addition

addmat(mat1, mat2, addmat);

// Subtraction

submat(mat1, mat2,submat);

}

else

{

goto lbl;

}

}

8 0
3 years ago
Being ___________, or knowing how to use the computer as a device to gather, store, organize, and process information, can open
Igoryamba

Answer:

Computer-literate

Explanation:

Computer knowledge is divided into areas or families of applications:

  • Office automation (Mail, Internet, Desktop Publishing, Word Processors, Spreadsheets, etc.)
  • Databases (Access, FoxPro, Oracle, SQL Server , etc.)
  • Allows to have essential skills related to the use of devices, creation and administration of files, networks and information security
5 0
3 years ago
Other questions:
  • Can we change the format of a field (e.g. Number to Dollars).
    7·1 answer
  • Compare GBN, SR, and TCP (no delayed ACK). Assume that the timeout values for all three protocols are sufficiently long such tha
    11·1 answer
  • What feature adjusts the top and bottom margins so that the text is centered vertically on the printed page?
    14·1 answer
  • What are three key characteristics of an OS process?
    11·1 answer
  • Write a python program to calculate the average of two numbers​
    8·1 answer
  • Ask one of your parent, grandparent or elder relatives about the popular song during their time they consider their favorite. As
    14·1 answer
  • Why do ineed to upgrade to see answers isnt it enough adds
    15·2 answers
  • When using a small mic that attaches to your interview subject, where should you place that mic and why?
    5·1 answer
  • After you create a pie chart, you can move it to its own chart sheet.
    9·1 answer
  • Is it possible to construct a wait-free n-thread PeekableStack(2) object from an arbitrary number of atomic Stack objects and at
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!