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
lakkis [162]
3 years ago
15

Give two separate print statements: one will print your name, the other will print your major. Ensure that both will print on th

e same line to the screen
Computers and Technology
1 answer:
Alexus [3.1K]3 years ago
4 0

Answer:

// here is code in java.

// import package

import java.util.*;

// class definition

class Main

{

   // main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

      // print the name

       System.out.print("my name is Sam. ");

       // print the major

       System.out.print("my major is CS.");

   }catch(Exception ex){

       return;}

}

}

Explanation:

In java, System.out.print() will print the statement but didn't go to the next line.If there is another System.out.print(), then it will also print into the same line.So here first the System.out.print() will print the name and second will print the major in the same line.

Output:

my name is Sam. my major is CS.

You might be interested in
Create and execute a SELECT statement that would provide data for a vendor directory. Display should include vendor number, vend
Luba_88 [7]

Answer:

SELECT vendor_number, vendor_name, CONCAT ('street', ' ' , 'city', ' ' , 'state', ' ' , 'zip code') as adress

FROM vendor_directory

ORDER BY vendor_name ASC;

Explanation:

* Suppose <u>vendor_directory</u> is the name of the table from which you extract the data with the SELECT sentence.

8 0
3 years ago
The total nodal delay includes:
blondinia [14]

Answer:

all of the above

Explanation:

Total nodal delay is the sum of all types of delay.There are basically four types delay that are as following:-

  1. Processing Delay.
  2. Propagation Delay.
  3. Transmission Delay.
  4. Queuing Delay.

T(nodal)=T(processing)+T(propagation)+T(transmission)+T(queuing).

Where T is the delay time.We are given with propagation,transmission and processing.Nodal delay includes these 3 delays.

Hence we conclude that the answer is all of the above.

3 0
3 years ago
Read 2 more answers
A. =A1&lt;= A14<br> B. Income – Expenses<br> C. SUM(A1:A14)<br> D. =150*.05
Tpy6a [65]
B that the anser yep i whent and reserch the the anser so itsb
8 0
4 years ago
Read the following scenarios carefully and select a suitable storage device for each situation. Make sure to justify your choice
labwork [276]

Answer:

SSD drive or sd card

Explanation:

Optical wouldn't have enough data and could get easily damaged by the movement of the armed forces.Hard Drives would be insanely bad as if you even slightly moved while it were moving you would corrupt data. SSD doesn't get damaged as easily as these two and can hold a sufficient amount of data for its size.

8 0
3 years ago
Running stop signs and lights is an blank that a driver may be operating their vehicle under the influence of drugs
Tju [1.3M]
Indicator .......................
5 0
4 years ago
Read 2 more answers
Other questions:
  • The LList class is (mostly) the same one discussed in lecture, but you must write a sort() function that uses one of the three i
    8·1 answer
  • Special programs that facilitate communication between a device and the os are called
    12·1 answer
  • In what order does the air flow in a canister vacuum cleaner pass through the following components?
    11·1 answer
  • You csn access various sites on the www by using hyperlinks or by
    7·1 answer
  • IOS jail broken or Android unrooted which is better to hack with
    6·1 answer
  • What is the meaning of web browser
    11·1 answer
  • Please tell fast plzzzzzzzz​
    11·2 answers
  • Importance of type casting in programming ​
    5·1 answer
  • What are some random fun facts about Technology?
    12·1 answer
  • Which of the following is NOT a best practice to protect data on your mobile computing device?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!