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

Summary on how drones can help manage the environment

Answers

Answer:

Well, I do know that they can help water plants they can also use sprays and other things that help the environment.

Explanation:

I learned this in my PLTW.

When a motherboard fails, you can select and buy a new board to replace it. Suppose the motherboard in your computer has failed and you want to buy a replacement and keep your repair costs to a minimum. Try to find a replacement motherboard on the web that can use the same case, power supply, processor, memory, and expansion cards as your current system. If you cannot find a good match, what other components might have to be replaced (for example, the processor or memory)

Answers

When a motherboard fails, you can select and buy a new board to replace it then Replacing the motherboard in a pc is the maximum tough process.

What are a few pointers while deciding on a motherboard?

First Choose an appropriate chipset for a device.Check whether or not the motherboard maintenances the same processor Select board for the device with bendy speeds.Ensure that motherboard maintenance right reminiscence.Check the board that helps the sort of video you need.Check records, maintenance, and updates for the board.

Choosing the proper motherboard is first essential step wherein the processor that helps nicely are determined, reminiscence in what kind and what kind of reminiscence may be used also are determined, what sort of films may be supported and installed. In depending to this verbal exchange velocity and the device element are all have to be checked in a clean understanding earlier than deciding on motherboard.

Read more about the processor :

https://brainly.com/question/1538272

#SPJ1

Write an algorithim and flowchart to check it the temperature is more than 25°. If it more than 25°C switch fan on else off.​

Answers

Answer:

write the sly flowchart

Explanation:

#stdlib.etc

main()
{

    int temp;
    bool fan = false;

    print("enter the frigin temperature: ");

    read(temp);

    if (temp > 25)

     {
         fan = true;
         print("the fan is on");
     }
     else
      {

           print("the fan is off");

      }

      return 0;

}

Select the three areas in which it would be most important for an instructional designer to be trained. psychology psychology computer applications computer applications educational theory educational theory business management business management sales and marketing sales and marketing]

Answers

The three areas in which it would be most important for an instructional designer to be trained are Psychology, Educational Theory and Computer applications.

Here is why those areas are important

Psychology: Understanding how people learn and how to design instruction that meets their needs is essential for instructional designers. Knowledge of cognitive psychology, educational psychology, and human development can inform the design of effective learning experiences.

Educational theory: Instructional designers need to have a solid foundation in educational theory to understand the principles of effective teaching and learning. Knowledge of learning theories, instructional design models, and assessment and evaluation can inform the design of instruction that is effective and meaningful.

Computer applications: As technology becomes increasingly important in education, instructional designers need to have a strong understanding of computer applications and programming languages. This can include software for creating and editing multimedia, learning management systems, and programming languages for creating interactive and engaging learning experiences.

Learn more about instructional designer here:

https://brainly.com/question/31104154

#SPJ1

What version of bluetooth is installed on the yaesu ft-5dr?.

Answers

Answer:

version 4.2

Explanation:

Question 3 of 10
in which part of the Scratch interface does a programmer combine code
blocks to build the program?
OA. Block palette
OB. Stage
OC. Scripts area
O D. Sprite info pane

Answers

The part of the Scratch interface that a programmer combine code

blocks to build the program is the Block palette.

Which part of the sprite screen has programming blocks?

The block palette is known to be the part where all the code blocks can be found.

Note that all the Blocks are said to be color coded by category and as such, The part of the Scratch interface that a programmer combine code

blocks to build the program is the Block palette.

Learn more about Scratch interface from

https://brainly.com/question/27820529

#SPJ1

Which Internet protocol (IP) packet fragmentation header field specifies where the fragment belongs in the original datagram

Answers

An Internet protocol (IP) packet fragmentation header field which specifies where the fragment belongs in the original datagram is the fragment offset.

What is the TCP/IP model?

The TCP/IP model is known as the Internet protocol suite or Transmission Control Protocol and Internet Protocol (TCP/IP) model and it can be defined as a standard framework that is designed and developed for the transmission (prepare and forward) of information on the Internet.

In the TCP/IP model, a fragment offset simply refers to an Internet protocol (IP) packet fragmentation header field which is used to specify where the fragment belongs in the original datagram.

Read more on Internet protocol here: https://brainly.com/question/17387945

#SPJ1

The arrangement of keys on a keyboard, QWERTY reflects the keyboard layout by ________. Group of answer choices using the letters of the alphabetic characters that are closest to access while typing taking the letters of the first six alphabetic characters found on the top row of keys using the alphabetic characters most frequently used on the keyboard representing the phonetics of the alphabets most closely associated with the keyboard

Answers

The setup of keys on a keyboard, QWERTY shows the keyboard layout by taking the letters of the first six alphabetic characters found on the top row of keys.

What is keyboard?

A keyboard is known to be a kind of peripheral device that helps a user to be able to input text into any computer or any any kind of electronic device.

Note that The setup of keys on a keyboard, QWERTY shows the keyboard layout by taking the letters of the first six alphabetic characters found on the top row of keys.

Learn more about keyboard from

https://brainly.com/question/13380788

#SPJ1

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

Which technology, when combined with agile and devops, will help the team receive real-time feedback?

Answers

A technology which when combined with Agile and Devops that'll help the Accenture Technology team receive real-time feedback is a cloud.

What is a cloud?

In Computer technology, a cloud simply refers to the elastic leasing of pooled computer resources such as physical hardware through virtualization and over the Internet, so as to enable the storage and sharing of files and documents virtually and in  real-time.

In this context, a cloud is a technology which when combined with Agile and Devops that'll help the Accenture Technology team receive real-time feedback.

Read more on cloud here: https://brainly.com/question/19057393

#SPJ1

which two features could be added to a game using an "if () then " block

Answers

The two features could be added to a game using an "if () then " block are:

Using nested If Then blocks.Checks the specific Bid quantity for the instrument.

What does the If Then block mean?

The If Then block is known to be the outputs one of  a given two values, that is as a result of  the value of a Boolean input.

Note that  the input value  is very important and as such, The two features could be added to a game using an "if () then " block are:

Using nested If Then blocks.Checks the specific Bid quantity for the instrument.

Learn more about game  from

https://brainly.com/question/1786465

#SPJ1

A class that implements an interface must provide an implementation for all ____ methods. Group of answer choices private final static abstract

Answers

Answer:

Abstract

Explanation:

I think it’s abstract because, in the question it says that it implements an interface and must provide an implementation for

And my answer was abstract methods.

Pedro has written a program in a high-level language to do some calculations for a friend. His friend needs to use the program immediately on his laptop. Pedro does not know what software is available on the laptop. Also, his friend's internet connection is very slow. Explain which type of translator Pedro should use for his program. Give reasons why this is the best choice in this case.​

Answers

In the case above, a Compilers is the best translator for a program that is said to be changed or written in a high-level language into machine code.

Why do you need to translate a program written in a high-level language into machine language?

Programming languages are known to be easy for humans to read and understand.

Note that The program (source code) need to be translated into machine language so that the computer can be able to carryout the program.

Therefore, In the case above, a Compilers is the best translator for a program that is said to be changed or written in a high-level language into machine code.

Learn more about machine language from

https://brainly.com/question/23275071

#SPJ1

He was called "The father of computing c_______ B_______​

Answers

Answer:

computer basics.

Explanation:

because just it is father of computer basics

Answer:

charles babbage

Explanation:

How do you remove only the conditional formatting from a cell and leave all other formatting intact.

Answers

This is done by selecting the Conditional Formatting button via the HOME tab, take the arrow or point to Clear Rules, and select Clear Rules from full Sheet.

How do I remove conditional formatting and also keep formatting?

The step is to first enable the sheet you want to delete the conditional formatting rules and then keep format.

One can click on Alt + F11 keys to open Microsoft Visual Basic for Applications window then Click Insert > Module, and then Remove conditional formatting rules and also keep format.

Learn more about formatting from

https://brainly.com/question/766378

#SPJ1

____ storage is not recommended for long-term archiving because the storage media can degrade over time

P/E
Optical
Hard Drive
RAID​

Answers

Hard Drive is not recommended for long-term archiving because the storage media can degrade over time,

What type of storage is recommended for long term data retention?

The long method used to long-term retention is the use of cloud. Cloud-based are known to be a form of cold storage that is made up of intelligent storage software.

Note that Hard Drive is not a long term kind of storage in the above context and as such, PE storage is not recommended for long-term archiving because the storage media can degrade over time,

Learn more about storage from

https://brainly.com/question/1317328

#SPJ1

Mediacom Communications has requested you to manage the access to its 802.11 standard wireless networks. A recent instance of errors in transmission has been recorded, and in order to fix this problem, you want to run a cyclical code to check for errors in transmission. In which field of the 802.11 data frame will you run this check

Answers

Based on the above scenario, in frame control field of the 802.11, the data frame will you run this check.

What are the three key 802.11 frame types?

There are 3 types of 802.11 frames which are:

ManagementcontrolData

Therefore, Based on the above scenario, in frame control field of the 802.11, the data frame will you run this check.

See full question below

Mediacom Communications has requested you to manage the access to its 802.11 standard wireless networks. A recent instance of errors in transmission has been recorded, and in order to fix this problem, you want to run a cyclical code to check for errors in transmission. In which field of the 802.11 data frame will you run this check?

a.

Sequence Control

b.

Trailer

c.

Data

d.

Frame Control

Learn more about Communications from

https://brainly.com/question/26152499

#SPJ1

Artificial intelligence (ai) in perspective is a complex and interdisciplinary field that involves several specialties, including:

Answers

Artificial intelligence (ai) in perspective is a complex and interdisciplinary field that involves several specialties, including Interdisciplinary research diploma applications integrate or greater conventional educational guides of have a look at right into a greater personalized major.

What is Interactions among AI Artificial intelligence?

Interactions among AI Artificial intelligence and schooling is but some other instance of interdisciplinarity in AI (Oudeyer et al., 2016), that may immediately gain now no longer best the 2 fields, schooling and AI, however society and productiveness as a whole.

Interdisciplinary research diploma applications integrate or greater conventional educational guides of having a look at right into a greater personalized major. Unlike a liberal arts diploma wherein you'll have a look at an extensive type of subjects, an interdisciplinary diploma lets in college students to discover a greater centered subject matter that crosses into more than one field.

Read more about the interdisciplinary :

https://brainly.com/question/25955559\

#SPJ1

Consider the following code using the posix pthreads api:
thread2.c
#include
#include
#include
#include
int myglobal;
void *thread_function(void *arg) {
int i,j;
for ( i=0; i<20; i++ ) {
j=myglobal;
j=j+1;
printf(".");
fflush(stdout);
sleep(1);
myglobal=j;
}
return null;
}
int main(void) {
pthread_t mythread;
int i;
if ( pthread_create( &mythread, null, thread_function,
null) ) {
printf(ldquo;error creating thread.");
abort();
}
for ( i=0; i<20; i++) {
myglobal=myglobal+1;
printf("o");
fflush(stdout);
sleep(1);
}
if ( pthread_join ( mythread, null ) ) {
printf("error joining thread.");
abort();
}
printf("\nmyglobal equals %d\n",myglobal);
exit(0);
}
in main() we first declare a variable called mythread, which has a type of pthread_t. this is essentially an id for a thread. next, the if statement creates a thread associated with mythread. the call pthread_create() returns zero on success and a nonzero value on failure. the third argument of pthread_create() is the name of a function that the new thread will execute when it starts. when this thread_function() returns, the thread terminates. meanwhile, the main program itself defines a thread, so that there are two threads executing. the pthread_join function enables the main thread to wait until the new thread completes.
a. what does this program accomplish?
b. here is the output from the executed program:
$ ./thread2
..o.o.o.o.oo.o.o.o.o.o.o.o.o.o..o.o.o.o.o
myglobal equals 21
is this the output you would expect? if not, what has gone wrong?

Answers

The thing which the given program accomplishes is that it creates a method, declares variables, and executes commands if they meet the conditions in the code.

What is a Conditional Statement?

This is a type of statement that executes a line of code if a condition is not met.

Some types of conditional statements are:

IF statementIF-ELSE statementNested If-else statement.If-Else If ladder.Switch statement.

No, that is not the desired output because the integer should be less than 20.

Read more about conditional statements here:

https://brainly.com/question/11073037

#SPJ1

What does business informWhat does business information management do?
A.
identify information requirements for coworkers
B.
identify information requirements for different management levels
C.
create project plans for the project management team
D.
produce sales turnover summary for the sales professionals
E.
create financial documents for the finance departmentation management do?

Answers

Answer:

B) identify information requirements for different management levels

Explanation:

Business information management is based off of identifying the needs of a company. (This is also a plato answer)

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

The __________ River is Europe’s longest river.

Answers

Answer:

The Volga river is Europes longest river.HOPE IT HELPS

Answer:

The volga river in the eastern part of europe

Where should the VPN concentrator be installed?

On the cloud
Outside of the network
On the network edge using a firewall
On the network edge without a firewall

Answers

c, using a firewall make sures no viruses enter your device while setting up the vpn

Answer:

or this?

Explanation:

the vpn is this it?

What is the digital revolution and how did it change society?

Answers

Answer:

The Digital Revolution (also known as the Third Industrial Revolution) is the shift from mechanical and analogue electronic technology to digital electronics which began in the later half of the 20th century, with the adoption and proliferation of digital computers and digital record-keeping, that continues to the present day.

The "digital revolution" is impacting everything, from economy, innovation, science and education, to health, sustainability, governance, and lifestyles. Digital technologies will fundamentally change business models, institutions and society as a whole, as new ecosystems emerge.

Explanation:

A friend of Alex has gifted a movie collection, and Alex is excited to watch them all as quickly as possible. The duration of the movies is given in array durations[n], where n is the number of movies, and each movie duration lies between 1.01 and 3.00 units of time (up to two decimal places). Every day, Alex wants to spend no more than 3.00 units of time watching the movies but also wants to complete the movies in the least number of days possible. Alex does not leave a movie in between. That is, if Alex has picked up a movie, Alex watches the complete movie on the same day. Find the minimum number of days needed to watch all the movies.

Answers

To find out the duration of alex's movies, you can use the code in C++ to make this calculation, where you will only need the number of movies and their duration, as well:

Writing code in C++:

#include<bits/stdc++.h>

using namespace std;

struct Movie {

  int timeBegin, duration, timeEnd;

  bool operator<(const Movie& another) const {

     return timeEnd < another.timeEnd;

  }

};

struct Festival {

  int count;

  vector<Movie> movies;

};

Festival* initialize(int timeBegin[], int duration[], int count) {

  Festival* filmFestival = new Festival;

  filmFestival->count = count;

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

     Movie temp;

     temp.timeBegin = timeBegin[i];

     temp.duration = duration[i];

     temp.timeEnd = timeBegin[i] + duration[i];

     filmFestival->movies.push_back(temp);

  }

  return filmFestival;

}

int solve(Festival* fest) {

  int res = 0;

  sort(fest->movies.begin(), fest->movies.end());

  int timeEnd = -1;

  for (int i = 0; i < fest->count; i++) {

     if (fest->movies[i].timeBegin >= timeEnd) {

        res++;

           timeEnd = fest->movies[i].timeEnd;

     }

  }

  return res;

}

int main(int argc, char *argv[]) {

int timeBegin[] = {1, 3, 0, 5, 5, 8, 8};

int duration[] = {3, 2, 2, 4, 3, 2, 3};

Festival * fest;

fest = initialize(timeBegin,duration, 7);

cout << solve(fest) << endl;

return 0;

}

See more about C Code at brainly.com/question/17544466

#SPJ1

Sanjay is compressing several images from a recent photo shoot during the editing process. What will this do to the pixels

Answers

Based on the fact that he is compressing a lot of images from a photo shoot, the pixels size will be reduce.

What is Pixels?

This is known to be a term that connote a little single colored, light-sensitive squares, or picture elementary , that is said to be a full digital image file.

Based on the fact that he is compressing a lot of images from a photo shoot, the pixels size will be reduce.

Note that also individually the photo will have small pixel but collectively, the pixel size will increase but since it will undergo edit, it will reduce.

Learn more about pixels from

https://brainly.com/question/9017156

#SPJ4

When an interviewer asks "tell me about yourself", you should tell them about your childhood past. please select the best answer from the choices provided t f

Answers

In the interview when the candidate is asked about yourself then telling about childhood past is not correct. Therefore the given statement is false.

What is an interview?

An interview is an interaction or a conversation between an employer and the interested candidate. In the conversation the interviewee is asked about their education, family background, and work experiences.

When an interviewer ask about tell me about yourself, then the interviewee should not tell about their childhood past, rather the interviewee should give few information about their family, education, and working.

Therefore, the given statement is false.

Learn more about interview, here:

https://brainly.com/question/13073622

#SPJ1

A program that performs handy tasks, such as computer management functions or diagnostics is often called a/an ____________.

Answers

Answer:

DOS

Explanation:

Disk operating

You are working in a medical practice that sends out billing electronically but the software does not include a claim scrubber program. what can you, as an administrative medical assistant do?

Answers

When working in a medical practice that does not include a claim scrubber program the result of now no longer having a declare scrubbed previous to submission is that the exercise has a tendency to lose sales.

What is a scrubber software?

A declare scrubber software is referred to as software that facilitates in reviewing claims for coding and billing accuracy of patients. This software is normally protected as a software program whilst billing electronically in hospitals or for coverage purposes.

The results or dangers of now no longer having a declare scrubbed previous to submission is that the exercise has a tendency to lose sales.

Read more about the software:

https://brainly.com/question/1538272

#SPJ1

What will be the output, if any, when the user clicks the right mouse button?

from tkinter import
def clicked(event):
print("That hurt.")
widget = Button(None, text='Button')
widget.pack()
widget.bind('', clicked)
widget.mainloop()

O an error statement
O That hurt.
O no output
O Button

Answers

The output, if any, when the user clicks the right mouse button is (b) That hurt

How to determine the output?

The flow of the program implies that:

When the user clicks the button, the program prints "That hurt" without the quotes.

This action is on the third line of the program

Hence, the output, if any, when the user clicks the right mouse button is (b) That hurt

Read more about programs at:

https://brainly.com/question/16397886

#SPJ1

Other Questions
The best way to prevent shigellosis is:Constant employee trainingEffective handwashing protocolUsing ready-made foods onlyAvoiding the use of canned foods What is the volume of the cylinder below?------2112O OA. 408 units3 B. 2448 units3OC. 204772 units 3OD. 20471 units PROVE :sin^2(-300).cos^2 (120)+ cos^2(-240 ).sin^2(390)=1/4 if f(x)=x+2x-4 and g(x) = -4x+1, what is (g-f)(x)? A x+6x-5 B. x2-2x-3 C. x-6x+5 D.-x-6x+5 A pennant in the shape of a right triangle has a base of 48 inches and a height of 14 inches what is the hypotenuse of the pennant? A reader trying to determine whether the historian's interpretation is validwould most likely:OA. cite the historian's essay in his own new study on the rise ofcommunism in China.B. review other sources on Chinese communism to see if theyreached similar conclusions.C. determine whether the Soviet Union helped communistrevolutionaries in other countries.D. review the historian's other books to see if they are also related tocommunism in China. Use the following scenario to answer the question below:You are deciding between two cars with different engines and want the bigger of the two. One engine displaces 350 cubic inches. The other displaces 5,500 cubic centimeters. How many significant figures do the values in this problem involve?A. 4B. 1C. 3D. 2 Question 6 of 20A product with a high level of elasticity of demand has which feature?A. Demand for the product consistently falls over time.B. Demand for the product rises and falls depending oncircumstances.C. Demand for the prodt consistently rises over time.D. Demand for the product is limited to a very small group of Saif is building a rectangular pen for his dog. the dimensions are 15 units long and 7 units wide. saif is building a second pen that is 75% the length of the original and 125% the width of the original. write an equation to determine the length of the second pen. what is the length of the second pen? . . what is civic society what is not featured in acedemic writing Helium occupies 293 mL at 788 Torr and 25C. If the sample is condensed into a 0.115 liter flask, what will the new pressure be, assuming constant temperature? What basketball team has the worst fans? What is the difference of a surface area and a volume A con is tossed 400 times what is the standard deviation Alice weighs 20 dogs and 20 cats. The mean weight for the dogs is 32kg and the mean weight for cats is 4kg. The range in weight for dogs is 45kg and the range in weight for cats is 0.5kg. State two conclusions you can draw from this information. True or False: explicit meaning is what the text implies, whereas inferred meaning is what the text says outright with no need for interpretation. Which caucasus country did not have a history of independence before the end of soviet rule? definition of flappper please help 35 points!!