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
Illusion [34]
3 years ago
13

Write a method named lastFirst that accepts a string as its parameter representing a person's first and last name. The method sh

ould return the person's last name followed by the first initial and a period. For example, the call lastFirst("Marla Singer") should return "Singer, M." . You may assume that the string passed consists of exactly two words separated by a single space.
Computers and Technology
1 answer:
Usimov [2.4K]3 years ago
7 0

I'm going to assume this is Java, because you said "method" meaning it will be some sort of object oriented language, and Java's really common. Here would be the full program, but you can just take the method out isolated if you need it.

package lastname;

public class LastName {

   public static void main(String[] args) {

       // Example usage:

       String name = LastName.lastName("Garrett Acord");

       System.out.println(name);

       // Output: Acord G.

   }

   public static String lastName(String fullName)

   {

       String[] splitName = fullName.split(" ");

       return String.format("%s %s.", splitName[1], splitName[0].substring(0,1) );

       

   }

   

}

You might be interested in
Consider a physical transmission medium of capacity C bits/sec between two stations that have I bits of information sent/receive
levacccp [35]

Answer:

Check the explanation

Explanation:

when calculating the total time to send the I bits of information or The packet delivery time or latency which can be said to be the amount of time from when the first bit leaves the point of transmission until the last is received. When it comes to a physical link, it can be computed or determined as: Packet delivery time = Transmission time + Propagation delay.

Kindly check the attached image below to get the step by step explanation to the above question.

5 0
3 years ago
How to be fluent in computer
Setler79 [48]

Explanation:

1. Seeing people do technological innovations, so you have some motivation and inspiration to be fluent in computer

2. Try experimenting and trying stuff, like trying to learn how to code, how the internet work, etc.

3. work more with computers, for example, make a note with OneNote, making digital art with blender, adobe illustrator etc.

4. Try to learn how to be better at learning computer, like, if you do mistakes in your learning journey, try to avoid it next time

5. good luck ;)

7 0
2 years ago
Read 2 more answers
Next, determine if the given number is a prime number. A prime number is a number that has no positive divisors other than 1 and
Darya [45]

Answer:

Explanation:

whats the number?

6 0
3 years ago
BRAINLIEST Which function will add a name to a list of baseball players in Python?
Tju [1.3M]

Answer: Append()

Explanation:

8 0
2 years ago
Read 2 more answers
What are the six primary roles that information system play in organizations? How are information system used in each context
Nina [5.8K]

The primary roles that information system play in organizations are:

  • Decision making
  • Operational management
  • Customer interaction
  • Collaboration on teams
  • Strategic initiatives
  • Individual productivity
<h3>How are information system used in each context</h3>

The six main functions of information systems in an organization are as follows:

1. Operational management entails the creation, maintenance, and enhancement of the systems and procedures utilized by businesses to provide goods and services.

2. Customer relationship management: Maintaining positive and fruitful relationships with customers, clients, students, patients, taxpayers, and anyone who come to the business to purchase goods or services is essential for success. Effective customer relationships contribute to the success of the business.

3. Making decisions: Managers make decisions based on their judgment. Business intelligence is the information management system used to make choices using data from sources other than an organization's information systems.

4. Collaboration and teamwork: These two skills complement the new information systems that allow people to operate from anywhere at a certain moment. Regardless of their position or location, individuals can participate in online meetings and share documents and applications.

5. Developing a competitive edge: A firm can establish a competitive advantage by outperforming its rival company and utilizing information systems in development and implementation.

6. Increasing productivity of objection: Smart phone applications that mix voice calls with online surfing, contact databases, music, email, and games with software for minimizing repetitive tasks are tools that can help people increase productivity.

Learn more about information system from
brainly.com/question/14688347
#SPJ1

4 0
9 months ago
Other questions:
  • Dfd symbols are referenced by using all ____ letters for the symbol name.
    9·1 answer
  • Which are Career and Technical Student Organizations? (Check all that apply.)
    12·1 answer
  • These items describe guidelines for the effective use of presentation graphics. Graphics should be large enough to be seen by th
    9·1 answer
  • The purpose of multivariate analysis in index construction is to discover the simultaneous interaction of the items to determine
    12·1 answer
  • What is the awnser ?
    11·1 answer
  • Fill in the blank
    15·2 answers
  • The identification of the technology management framework contain?
    6·1 answer
  • What might a designer need to consider when choosing an appropriate energy source for products and power systems
    15·1 answer
  • which of the following can be represented by a sequence of bits. 1. An integer 2. An alphanumeric character 3. A machine languag
    12·1 answer
  • To create a program in Scratch, you need to think systematically about the order of steps. This is known as
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!