Java Write a program that reads a person's first and last names separated by a space, assuming the first and last names are both single words. Then the program outputs last name, first name. End with newline. Example output if the input is: Maya Jones Jones, Maya

Answers

Answer 1

Java Write a program that reads a person's first and last names separated by a space, assuming the first and last names are both single words are CODE- //SpaceReplace.java import java. util.Scanner.

What is Java?

Developers use Java to assemble packages in laptops, information centers, recreation consoles, clinical supercomputers, molecular phones, and different devices. Java is the world's 0.33 maximum famous programming language, after Python and C – consistent with the TIOBE index, which evaluates programming language popularity.

CODE-//SpaceReplace.java import java.util.Scanner;public elegance SpaceReplace }.Maya Jones Jones, Maya Program completed with go out code zero Press ENTER to go out console. <CODE-//QuitScreen.java import java.util.Scanner;//Create a category QuitScreen.Public elegance Quit Screen the principle function public static void main(String[] args)in step with the letter to quit and the //numPresses.System.out.println("Press the "+letterToQuit+" key "+numPresses+" instances to quit.");   //Return, return;  }//End of the primary function.}//End of the elegance QuitScreen.

Read more about the Java :

https://brainly.com/question/25458754

#SPJ1

Answer 2

Answer:

import java.util.Scanner;

public class SpaceReplace {

  public static void main(String[] args) {

     Scanner scnr = new Scanner(System.in);

     String firstName;

     String lastName;

     firstName = scnr.next();

     lastName = scnr.next();

     

     System.out.println(lastName + ", " + firstName);

  }

}

Explanation:


Related Questions

What is the one small catch with password managers?.

Answers

Answer:

password managers can acess and autofill your passwords

Explanation:

the catch is if you loose all data from your computer or smartphone, then you loose all your passwords

i'll give u 16 points answer thisss

Answers

Big hero six was the greatest kid movie ever invented like there is no question about that I love that movie

Choose the correct numbers in order to have the following output.

3 1
3 2
4 1
4 2

for numx in [3,
]:
for numy in [1,
]:
print (numx, numy)

Answers

Answer:

4, 2

Explanation:

for numx in [3, 4]:

   for numy in [1, 2]:

       print (numx, numy)

make sure to indent properly

The correct numbers, in order to have the following output, are 4, 2. The correct option is d.

What are the outputs of coding?

A programmer may decide to incorporate outputs to keep the user updated on what is happening inside the program. Here, the user is presented with the program's data either visually (on the screen) or physically (as printouts or signals, for example).

The communication between an information processing system, such as a computer, and the outside world, which may include a human or another information processing system, is known as input and output, or I/O. The system's inputs are the signals or data it receives, and its outputs are the signals or data it sends.

for numx in [3, 4]:

  for numy in [1, 2]:

      print (numx, numy)

Therefore, the correct option is d. 4 2.

To learn more about the outputs of coding, refer to the link:

https://brainly.com/question/28992006

#SPJ2

You defined a shoe data type and created an instance.
class shoe:
size = 0
color = 'blue'
type = 'sandal'
myShoe = shoe()
Which statement assigns a value to the type?
type = 'sneaker'
myShoe.type( 'sneaker')
myShoe.type = 'sneaker'
NEXT QUESTION
ASK FOR HELP

Answers

Answer:

myShoe.type = 'sneaker'

Explanation:

type is a field of the class shoe. The myShoe object which is an instance of the class shoe has the field type also.

To assign a value to type filed of the object myShoe, reference the object then the field as such;

   myShoe.type = "sneaker"

You defined a shoe data type and created an instance. The statement that assigns a value to the type is myShoe.type = 'sneaker'. The correct option is C.

What is data in programming?

A variable's data type and the kinds of mathematical, relational, and logical operations that can be performed on it without producing an error are classified as data types in programming.

An attribute of a piece of data called a "data type" instructs a computer system on how to interpret that data's value.

type is one of the class shoe's fields. The field type is also present in the myShoe object, which is an instance of the class shoe.

Reference the object and the field as such in order to assign a value to the type field of the object myShoe;

Therefore, the correct option is C. sneaker" in myShoe.type.

To learn more about data in programming, refer to the link:

https://brainly.com/question/14581918

#SPJ2

Define special computer​

Answers

Answer:

A computer designed from scratch to perform a specific function. Contrast with general-purpose computer. See ASIC.

Answer:

Special computer is the computer designed for a particular type of application only. It is defined as a stored program digital computer, whose architecture is oriented towards one or more applications.

For this step, submit your work in the programming environment by running your code, checking your code for a score. The score you get will show a percentage - this is a percentage of the 10 possible points. For example, if you check your code and earn a 50%, this means you have earned 5 out of 10 points. You can check your code more than once, until you earn a score you are happy with.

You must include all of the following requirements in your webpage to earn full points:

A page title
At least three headers (h1, h2, etc)
Paragraph tags
Font styles (for example, using to change the font's color)
At least two images (see below for more information about images)
At least one link to another website
One email link
A background, using either of the following techniques:
Inserting a background image (does not count as one of the two images above)
Changing the background color (using the tag)
Once you complete the steps on this page, proceed to Step 2 on the next page. You must complete both steps to complete this unit's assignment.

Answers

A sample HTML code that contains headers, paragraph tags, hyperlinks is

<h1> This is a header </h1><h2> This is a subtitle heading </h2><p> This is a paragraph </p><a href=”www.brainly.com”> Brainly Website </a>

What is HTML?

This is the building block of a website and is an acronym that means Hypertext Markup Language.

The HTML code that can be used to add a sample image is: "<img src="pic_Brainly.jpeg" alt="Brainly" width="500" height="333">

The src code means the specific location of the external resource

The width and height show how tall and wide the image would be.

The alt shows the alternative information for the image that can be seen when a person hovers over the image on the website.

Read more about HTML and CSS here:

https://brainly.com/question/24051672

#SPJ1

Which device performs the function of determining the path that messages should take through internetworks?.

Answers

Answer:

A router

Explanation:

Fifteen years ago, everyone didn't have a cell phone. Anyone developing an app would not have found many users. Today, the existence of mobile apps is one of the reasons why smartphones are so popular today. These apps make phones and tablets smart, in terms of functionality and features. The app market is seeing hundreds of new applications introduced every day. This example shows that _______.

Answers

Answer:

Are there any options?

Explanation:

The world is frequently coming in with better and more advanced technologies. More people are entering the digital world every day. The pace at which disruptive technologies are arriving is accelerating – and they’re changing how we live. The same technologies are giving rise to new business models. Example of development in the past 15 years- A.I.

What happens when you restrict someone on messenger?.

Answers

Answer:

You won't get any notifications from the person that's restricted, via messages, videos, or images. If the restricted person tries calling you, your phone won't ring.

The process of copying and storing data,files,progrms,etc.from internet server to user's computer is know as ..........

Please help me ​

Answers

(Storage) i think…okay

A computer is the __________ of an attack when it is used to conduct an attack against another computer.

Answers

Answer:

A computer is the __________ of an attack when it is used to conduct an attack against another computer.

Answer: Subject

Explanation:

Why is it important for companies to invest in building a complete data and analytics platform?.

Answers

Companies need to invest in data and analytics platform as it  generates insights by housing data in one place and converting it into easily consumable information at high speed.

Why is it vital to use the analytics of a platform?

Analytics platforms is known to have helped a lot of data scientists as it has help to boast access to a lot of data sources and hardware.

Note that Companies need to invest in data and analytics platform as it  generates insights by housing data in one place and converting it into easily consumable information at high speed.

See options below

It produces cultural support and alignment, a growth mindset, and new ideas and priorities to improve business processes.

It creates awareness of what data can do to improve business processes.

It generates insights by housing data in one place and converting it into easily consumable information at high speed.

It stores large amounts of data that are easily retrievable for future business growth.

Learn more about analytics platform from

https://brainly.com/question/26468036

#SPJ1

advantages and disadvantages of algorithm​

Answers

Answer:

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Explanation:

It is easy to understand. Algorithm is a step-wise representation of a solution to a given problem. In Algorithm the problem is broken down into smaller pieces or steps hence, it is easier for the programmer to convert it into an actual program

Algorithms are time-consuming. Big tasks are difficult to put in algorithms. Difficult to show branching and looping in algorithms. Understanding complex logic through algorithms can be very difficult.

Maria is developing an online gaming website. She is working on an interactive game that has a central character guiding visitors through the game. Which element of multimedia is most suitable for this type of website?

Answers

Answer:

The answer is animation. This question has been answered already.

Source:

https://brainly.com/question/12414395

what is the Result obtained after data processing called?​

Answers

Answer:

Output

Any information which get processed by and sent out from a computer is called output. It is the final result which we get after processing

Answer:

output

Explanation:

it'll be called output

The _____ _____ form of database attack injects code into user login information with one or more statements that perform actions on the database.

Answers

Answer:

The answer is cross-site scripting(XSS)attack.

Explanation:

Hope this helps!

The cross-site scripting (XSS) attack form of database attack injects code into user login information with one or more statements that perform actions on the database.

What is cross-site scripting (XSS)?

Cross-site scripting (XSS) attacks insert a malicious executable script into the source code of a trustworthy program or website. Attackers frequently give users a malicious link to click on in order to launch an XSS attack.

Cross-site scripting can be broadly classified into three types: stored, reflected, and DOM-based XSS. When a third-party web application is loaded from an unrelated attack site in a way that makes it execute a JavaScript segment that has been prepared by the attacker in the security context of the targeted domain by using a reflected or non-reflected.

Thus, it is cross-site scripting (XSS) attack.

For more information about cross-site scripting (XSS) attack, click here:

https://brainly.com/question/26706948

#SPJ5

When you start an online course, what should you do to make sure you have access to college resources

Answers

As a student starting an online course, you should explore the college website to make sure you have access to college resources.

What is an online course?

An online course can be defined as an education programme that typically involves the process of providing and sharing learning resources (contents) in an organized way over the Internet, so as to allow the students (users) progress in their understanding of a course or topic.

As a student starting an online course, you should do the following to make sure you have access to college resources:

Explore the college website.Bookmark links to your course.Search for information with regards to advising, degree requirements, and financial aid.

Read more on online course here: https://brainly.com/question/14591988

#SPJ1

What two functions does tcp/ip perform?

reassemble data packets at the destination.
alert users about unsafe websites and servers.
request servers for data the user wants.
check and request for missing data packets.

Answers

The two functions does tcp/ip are:

Reassemble data packets at the destination.Request servers for data the user wants.

What are the functions of TCP IP?

The role of the Transmission Control Protocol is known to be the one that helps to take in and put together the Data Packets while that of IP is to send the Data Packets to the right location or destination.

Therefore, The two functions does tcp/ip are:

Reassemble data packets at the destination.Request servers for data the user wants.

Learn more about tcp/ip from

https://brainly.com/question/17387945

#SPJ1

When you insert a new slide in a presentation, where is it placed in relation to the existing slides?.

Answers

Whenever you create a new slide, it appears below the selected slide.

If you have 2 slides and want one in between the two select the first slide and then select new slide.

True or False. It is OK for students to find answers to questions on the Internet and submit those answers during a test.

Answers

Strange question, but I would say false. FALSE

A restaurant has an app that allows users to view the menu and order online. You have been hired to upgrade the app because it is out of date, in both style and content. What parts of the existing code could you reuse, and what might you need to design from scratch?

Answers

Answer:

You could reuse most of the code. You will need to update some of the style parameters and re-word some of the content, but the base code is there to be used. You will need to fix the items that are on the menu. (Adding new items, Deleting items that don't exist, e.g.)

Describe a new career in computer science that may be created in the future

Answers

No Code / Low Code Business Analyst.

This would involve someone that goes in to make sure that the business processes of the No Code / Low Code programmers are doing their job efficiently!

Which VPN protocol provides encryption but does not support IP multicast traffic?

IPsec
PPTP
L2TP
SSL VPN

Answers

Answer:

this?

Explanation:

multiple choice?

The __________ backup method is based on the philosophy that a full backup should occur at regular intervals, such as monthly or weekly

Answers

Answer:

full/incremental backup

Explanation:

I believe it's full/incremental backup.

what is full form COMPUTER????​

Answers

Explanation:

The full form of the Computer is Common Operating Machine Purposely Used for Technological and Educational Research.

Explanation:

The computer full form of common opreating machine purposely used for technical educational research

I hope you helps:)

What report shows which types of mobile devices visited a website?.

Answers

Answer:

Technology > Network report. All traffic > Source/Medium report.

Explanation:

hope this helps

What are two benefits of defining a function?

Answers

Answer:

enhances the readability of a program.

How to change lowercase to uppercase in excel 2010 shortcut key?.

Answers

I believe it’s shift

Mack signs into his laptop and gets a message saying all his files have been encrypted and will only be released if he sends money to the attacker. what kind of software did this

Answers

Answer: Ransom-Ware

Random-Ware is a type of malware that encrypts files in hopes of the victim to give the attacker a form of currency to gain access to the files again.


1. The Forever block is present in the
......... block category.

Answers

Answer:

loop or a repeating block. I think it’s this because I like robotics and I have to know a lot of different kinds of blocks.

Explanation:

This is why.

Other Questions
find the circumference of an object. use 3.14 or 22/7 for pi. round to the nearest hundredth if necessary. 9 cm What do you think the use of these archetypes in the story of perseus reveals about the culture of ancient greece? i dont now this question The intrinsic nature of the work is the most important predictor of _________ and employee well-being. What are the new laws called that make it illegal for anyone under the age of 21 to drive with any amount of alcohol in his or her system Question 10 of 10What is one major benefit of globalization?A. Small businesses have less competition from foreigncompanies.B. Companies are producing less air and water pollution.C. Economies around the world no longer deal with inflation.D. Consumers are able to buy goods from all over the world.SUBMIT Name the types of angles shown.LMCheck all that apply.A. straight angleB. right anglec. supplementary anglesD. complementary angles Cmo se dice "baseball cap" en espaol?A. La camisaB. La gorraC. Los pantalonesD. Las botas -72.1n=-3.5n PLEASE ANSWER Near the surface of the Earth there is an electric field of about 150 V/m which points downward. Two identical balls with mass 0.321 kg are dropped from a height of 2.15 m , but one of the balls is positively charged with q1 = 360 C , and the second is negatively charged with q2=-360 C .Use conservation of energy to determine the difference in the speeds of the two balls when they hit the ground. (Neglect air resistance.)v+v = Based on the interaction between fatima and martina, what can the reader conclude about martina? Read this passage.My career in journalism has taught me the challenges of capturing sporting events, yet Gregor Powells descriptions are flawless. Powell is a gold-medal Paralympic swimmer, but his memoir proves that his true strength is the power of his insights.What feature distinguishes this passage as a foreword?It adds credibility to the book.It is written by the books author.It explains the books topic concisely.It provides a high-interest hook. Four graphs are shown below:Four graphs named Graph A, Graph B ,Graph C and Graph D are shown with scale along x axis from 0 to 10 at increments of 1 and scale along y axis from 0 to 10 at increments of 1 and scale along y axis from 0 to 100 at increments of 10. All the graphs have 0,12 and 1,20 and 2,28 and 3,31 and 4,42 and 5,53 and 6,61 and 7,72 and 8,88 and 9,83 and 10,92. A straight line joins 0, 12 and 6,100 in Graph A. A straight line joins 0, 12 and 10, 50 in Graph B. A straight line joins 0, 10.5 and 10, 95 in Graph C. A straight line joins 0, 30 and 8,100 in Graph D.Which graph best shows the line of best fit? Graph A Graph B Graph C Graph D What happened in the black hills in 1874 that led to increased desire to settle on american indian lands? gold was found. the sioux sold the black hills to the us government. white settlers and american indians signed a treaty to live peacefully together. A rocket is launched from the ground at an initial velocity of 39.2 meters per second. Which equation can be used to model the height of the rocket after t seconds?s(t) = 4.9t2 + 39.2s(t) = 4.9t2 + 39.2ts(t) = 4.9t2 + 39.2t + 39.2s(t) = 4.9t2 + 39.2t 39.2 Read the excerpt from a students argumentative essay.Students at Glenmore High demand an increase in the number of advanced placement classes. In order to compete with other college-bound students, we must have access to more rigorous courses. I mean, if we cant show that we took tough courses, colleges will turn us down.How can the final sentence best be revised for this argument?Tough work is the key to proving to college admissions that weve got what they want.We need tougher courses on our transcripts, or else nobodys going to notice us.Without proof of challenging courses, colleges might disregard our transcripts.Challenging courses separate college-bound students from the rest of the pack. Can someone help me with this?? Stan wants to start an ira that will have $250,000 in it when he retires in 25 years. how much should he invest semiannually in his ira to do this if the interest is 6% compounded semiannually? assume an annuity due. round to the nearest cent. a. $2,151.82 c. $2,303.29 b. $2,216.91 d. $4,556.68 Use the excerpt to answer the question.What metaphor did Henry M. Paulson use to describe the financial crisis in 2008? A. a clogged pipe B. a failure of communication C. a few rotten apples D. a pothole in the street According to the graphic, who has the most diamonds in reserve?1: Congo2: Russia3: Other countries4: Botswana