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
MakcuM [25]
3 years ago
11

Can someone help me with Exercise 7.1.5: Initials on codehs.

Computers and Technology
1 answer:
Ber [7]3 years ago
7 0

7.1.5 Codehs:

Write a program that gets a string containing a person's first, middle and last names, and then display their first, middle and last initials. For example, if the user enters John William Smith, the program should display J. W. S. [In python]

Answer:

first = input("First name: ")

middle = input("Middle name: ")

last = input("Last name: ")

print(first[0]+". "+middle[0]+". "+last[0]+".")

Explanation:

This line prompts user for first name

first = input("First name: ")

This line prompts user for middle name

middle = input("Middle name: ")

This line prompts user for last name

last = input("Last name: ")

This line prints the name initials

print(first[0]+". "+middle[0]+". "+last[0]+".")

You might be interested in
#3: Which combination of statements can be used to express algorithms?
MAVERICK [17]

Answer:

A) Iterative, sequential, and selection

Explanation:

7 0
3 years ago
Write a program that prompts the user to input two numbers—a numerator and a divisor. Your program should then divide the numera
icang [17]

Answer:

#include <stdio.h>// inclusion of header file.

int main()// definition of main function.

{

  int Quotient,divisor; // declare the two numbers for operation.

  scanf("%d %d",&Quotient,&divisor); // take the user inputs by scanf() function.

  printf("The division result of the number = %f",Quotient/divisor);

// print statement to print the division.

   return 0; // return statement.

}

Output:

  • If the user input is 10 and 9 then the output is 1.
  • If the user input is 4 and 2 then the output is 2.

Explanation:

  • Firstly there is a file inclusion which helps to understand the input and output function
  • Then we declare two variables of integer type which take a value of integer type.
  • Then there is a scanf statement which takes the input from the user. The '%d' format specifies that the value is in an integer value.
  • Then there is a print statement that gives the divisor in floating value. The division operation is written in the printf statement which is used to print the value. '%f' display the value in decimal value.
4 0
4 years ago
How do humans feel about being abducted?
Alenkinab [10]

Humans feel very scared.

There are measures in place online to help with the threat so people feel safer

8 0
4 years ago
Read 2 more answers
Which custom configuration is most likely to include a raid array?
Usimov [2.4K]

Solution:

The installation wizards in most of the commercial Linux distributions provide an option to create a custom disk layout, specifying which the RAID arrays can be created and the root. Additional RAID arrays can be configured by using the mdadm

It is known as (Redundant Array of Independent Disks) is a data storage virtualization technology that combines multiple physical disk drive components into one or more logical units for the purposes of data redundancy, performance improvement.

Data is distributed across the drives in one of several ways, referred to as RAID levels, depending on the required level of redundancy and performance. It  provide protection against unrecoverable sector read errors, as well as against failures of whole physical drives.

This is the required solution.

7 0
3 years ago
PLEASE HELP I WILL GIVE BRAINLIEST IFFFF CORRECT!!!!! Kyra needs help deciding which colors she should use on her web page. What
Cloud [144]

Answer:

Storyboarding

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • Unlike the climate of the other islands of Hawaii, ________Kona contains 54 different temperate zones.
    15·1 answer
  • Is a small file that a web server writes to the disk drive of the client computer, containing information about the user?
    8·1 answer
  • Brent is using customer reviews from a reputable online store to help him determine whether or not he should buy a particular la
    10·1 answer
  • A system administrator suspects that there is an error in the replication configuration. How can the system administrator look f
    7·1 answer
  • When you right click a picture in a word processing program, which actions can you choose to perform on that image?
    9·1 answer
  • Mario wants to use computer.what is the first thing needs to know<br><br>​
    6·1 answer
  • Which of the following are examples of structured data?
    15·1 answer
  • A macro enables you to automate repetitive tasks by
    5·1 answer
  • What movie would be greatly improved if it was made into a musical?
    6·1 answer
  • Which part of project management considers if employees will work at home or in the office?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!