Computers and Technology

Write a method called processname that accepts a scanner for the console as a parameter and that prompts the user to enter his or her full name, then prints the name in reverse order (i. e., last name, first name). you may assume that only a first and last name will be given. you should read the entire line of input at once with the scanner and then break it apart as necessary. here is a sample dialogue with the user:
output: enter your full name: sammy jankisyour name in reverse order is jankis, sammywhat i have: public static void processname(scanner in){system. out. print(" enter your full name: "); string name = in. nextline(); string lastname= in. substring(6,11); string firstname= in. substring(0,5); system. out. println("your name in reverse order is " + lastname + ", " + firstname); }

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, toottoot42169
What can you find the under the privacy policy section of a shopping website?
Answers: 1
image
Computers and Technology, 22.06.2019 03:10, victoriadorvilu
This program reads a file called 'test. txt'. you are required to write two functions that build a wordlist out of all of the words found in the file and print all of the unique words found in the file. remove punctuations using 'string. punctuation' and 'strip()' before adding words to the wordlist. write a function build_wordlist() that takes a 'file pointer' as an argument and reads the contents, builds the wordlist after removing punctuations, and then returns the wordlist. another function find_unique() will take this wordlist as a parameter and return another wordlist comprising of all unique words found in the wordlist. example: contents of 'test. txt': test file another line in the test file output: ['another', 'file', 'in', 'line', 'test', 'the']
Answers: 1
image
Computers and Technology, 22.06.2019 08:00, Leggett8152
What best describes a career pathway in a lodging career? a worker starts out as an amusement attendant, then becomes a recreation worker, and then becomes a gaming worker within five years. a worker starts out as a bell hop, then becomes a night clerk, and then becomes a hotel manager within five years. a worker starting out as a tour guide, then becomes a travel clerk, and then becomes a travel agent within five years. a worker starts out as a server, then becomes a food preparer, and then becomes a head chef within five years.
Answers: 1
image
Computers and Technology, 22.06.2019 23:00, brookerebman15
Which type of tab stop is most for weights and measurements?
Answers: 1
Do you know the correct answer?
Write a method called processname that accepts a scanner for the console as a parameter and that pro...

Questions in other subjects:

Konu
Social Studies, 05.02.2020 13:04
Konu
Mathematics, 05.02.2020 13:04
Konu
Mathematics, 05.02.2020 13:04