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
elena-s [515]
4 years ago
3

The function below takes one parameter: a string (full_name) consisting of words separated by whitespace. Make an acronym from t

he words by making a new word by selecting the first letter of each word, and then capitalizing the new word. For example, if given the string 'international business machines', your function would return 'IBM'.
To implement this, split the given string to get a list of strings (one string per word). Iterate through the words, building a string from the first letters of each word. Then convert the result to upper case letters using the upper() function.
Computers and Technology
2 answers:
krok68 [10]4 years ago
7 0

Answer:

The python program is given below

Explanation:

def make_acronym(full_name):

#initialize a local with empty string

  final=""

#split the word with spaces into list

  wordList=full_name.split()

#for loop the wordList list

  for word in wordList:

#convert the first character to upper case

#and add to local variable final

       final=final+ word[0].upper()

#return the abbreviation

  return final

#invoke the api using print function

print(make_acronym("international business machines"))

print(make_acronym("tamil nadu"))

print(make_acronym("indian legend"))

<u>OUTPUT</u>

IBM

TN

IL

goblinko [34]4 years ago
3 0

Answer:

// Import Scanner class to allow program receive user input

import java.util.Scanner;

// Class definition

public class Solution {

   // Main method which begin program execution

   public static void main(String args[]) {

     // Scanner object scan is defined

     Scanner scan = new Scanner(System.in);

     // Prompt telling the user to enter a sentence

     System.out.println("Enter your sentence: ");

     //User input is assigned to userInput

     String userInput = scan.nextLine();

     //The userInput is split into Array and store with inputArray variable

     String[] inputArray = userInput.split(" ");

     //The outputed abbreviation

     String shortCode = "";

     //for loop to go through the inputArray

     for(int i = 0; i <inputArray.length; i++){

         //temporary variable to hold each array element

         String temp = inputArray[i];

         shortCode += temp.charAt(0);

     }

     // The shortcode is displayed in upper case

     System.out.println(shortCode.toUpperCase());

   }

}

Explanation:

The solution is implemented using Java.

First the Scanner class is imported to allow the program receive user input. Then inside  the main method, we declared a scanner object 'scan', then prompt the user to enter input.

The user input is assigned to 'userInput', then the input is splitted and assigned to 'inputArray'. A 'shortCode' variable is declared which hold the abbreviation.

Then a for-loop is use to go through the inputArray and concatenate the first letter of each word to shortCode.

The shortCode is displayed in upper case.

You might be interested in
PLEASE I NEED HELP PLEASE PLEASE<br> Which function prompts the user to enter information?
Stels [109]

In python the input() function prompts the user to enter information.

5 0
3 years ago
What is the danger in judging someone according to his or her social networking profile
AfilCa [17]
They could find you and throw hands.
8 0
3 years ago
A database on a mobile device containing bands, sub-bands and service provider IDs allowing the device to establish connection w
VashaNatasha [74]

Answer:

A. PRL

Explanation:

Mobile phone technologies like CDMA , GSM etc, are used by cell/ mobile phone to transmit and receive signals. With the limitation of fluctuation, a mobile phone was made to adapt to this problems, thereby combining this broadbands like CDMA, GSM,4G LTE etc gave rise to PRL (Preferred roaming list) database to hold information needed to establish connection to the correct cell tower for these broadbands.

3 0
4 years ago
Typing which capitals and exclamation points in an email is an example of
Alexus [3.1K]
It's an example of a poorly written email, it looks like somebody is angry and yelling at you, these types of emails can be described as a poor etiquette.
4 0
3 years ago
A differential backup covers what data on a system?
sergey [27]

Answer:

Answer is option (a) It includes data that has changed since the last full backup.

Explanation:

Differential Backup is a method used in Database Management Systems (DBMS) in which it includes the data (copies of all the files) that has changed (either created or updated or altered) since the last full backup. If it is a partial backup instead of full backup, then it is not a differential backup method as many files might have changed. Option (b) is false as the backup has to be a full backup not an incremental backup. Option (c) is false as the backup has to be a full backup ( not just a backup ), Option (d) is false as only the files that are changed is stored not the whole database since a full backup.

6 0
4 years ago
Other questions:
  • What is a PowerPoint template?
    6·2 answers
  • What does a computer user need to know about programming in order to play a video game?
    6·2 answers
  • ________ is the amount of data that can be transmitted across a transmission medium in a certain amount of time.
    15·1 answer
  • Operational feasibility, which refers to user acceptance and support, as well as management acceptance and support, is also know
    9·1 answer
  • What is generalization error in terms of the SVM? a. How accurately the SVM can predict outcomes for unseen data b. How far the
    5·1 answer
  • What is the best game of 2020 in pc​
    12·2 answers
  • 1. We want to add a button to the tally counter in Section 9.2 that allows an operator to undo an accidental button click. Provi
    8·1 answer
  • To celebrate me reaching expert in the same day i made the account im doing a point giveaway
    12·2 answers
  • What is Annually Teachers Planner?​
    13·1 answer
  • Refer to Table 8-4. Consider the data above (in billions of dollars) for an economy: Gross domestic product (in billions of doll
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!