can someone help me on codehs. its 7.1.5: initials. here is what your supposed to do

Write a function called initials that will take a first and last name and return their initials using the following format:

initials("Tracy", "Turtle")
# => "T.T."
initials("Peter", "Parker")
# => "P.P."

Answers

Answer 1

Answer:

first = input( "What is your first name? " )

last = input( "What is your last name? " )

def initials():

   print ("Your initials are: "+first[0]+"."+last[0]+".")

initials ()

Explanation:

it works when I test but it won't submit. Hope this helps

Answer 2

Following are the program to prints the initials of the input value.  

Program Explanation:

Defining a class Main.Inside the class, a method "initials" is declared that takes two string variables "first, last" in the parameter.Inside the method, a return keyword is defined that uses the charAt method that returns the first character value of the parameters. In the next step, the main method is defined.Inside the main method, a print method is declared that calls initials method that accepts value in the parameter and prints its value.

Program:

public class Main //defining a class Main

{

   static String initials(String first, String last)//defining a String method initials that input two variables in the parameter

   {

       return first.charAt(0)+"."+last.charAt(0)+".";//using charAt method that returns first character value

   }

 public static void main(String[] as) //defining main method

 {

   System.out.println(initials("Tracy", "Turtle"));//using print method that calls initials method that accepts value in parameter

   System.out.println(initials("Peter", "Parker"));//using print method that calls initials method that accepts value in parameter

 }

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/2810164

Can Someone Help Me On Codehs. Its 7.1.5: Initials. Here Is What Your Supposed To DoWrite A Function

Related Questions

How do I send the face to the back? Seriously, I can't find out how...

Answers

Answer:

i think you can layer it :)

Explanation:

nice drawing btw!

What even is this. Can someone help please.

Answers

Answer: it’s a broken hard disk/drive.

Explanation: That screen usually shows when your hard drive is damaged or broken. You’ll most likely need a new one and download professional tools to recover any lost data

try pressing a key? Just read it and do what it says and see if you get back to the main window

What is the purpose of a forecast worksheet?

It uses historical data to predict one trend line.
It predicts trends using changing data onto one line.
It uses historical data to predict multiple trend lines.
It predicts trends using changing data onto multiple lines.

Answers

Answer: It’s a

Explanation:

I got it right on edj

You have this code in your program.

from array import *
K = array('b',[10, 5, 2, 7])

Which line of code will add 12 to the array?

Answers

Answer:

K.append(12)

Explanation:

From the question, the array name is K.

In python, to add to an array, you make use of the following syntax.

[array-name].append(value)

In this case:

[array-name] = k

and the value to be added is:

value = 12

So, we have:

K.append(12)

In a particular spreadsheet, the data in each cell is password protected. When cells are selected, the formula is visible
in the formula bar. Which is true?
O The cells are locked and hidden.
The cells are locked and unhidden.
The cells are unlocked and hidden.
O The cells are unlocked and unhidden.

Answers

Answer:

Explanation:

Locked and hidden

ADVENTURE BOOKS 123
time 4 a story and questions
(this is just a made up story........)

One groggy day The President shows up on the news and he starts arguing with the news woman and he tells her he wants to be the one who informs everyone and guess what? thats what happened.so he walks up to the camera and spills the beans this is what he said Fellow humans i figured you would like to hear this news ........
26harrisona avatar
we are going to have to go into lockdown so if you would like to leave the state you may,.................
ADVENTURE BOOKS 123
time 4 a story and questions
(this is just a made up story........)

One groggy day The President shows up on the news and he starts arguing with the news woman and he tells her he wants to be the one who informs everyone and guess what? thats what happened.so he walks up to the camera and spills the beans this is what he said Fellow humans i figured you would like to hear this news ........we are going to have to go into lockdown so if you would like to leave the state you may,.................cov-id is going to become the ap-ocal-yp-se ......(you)so you have decided to go to an island that is called ----------- (made up name.....)cov-id is going to become the ap-ocal-yp-se ......(you)so you have decided to go to an island that is called ----------- (made up name.....)so you gather your supplies you can chose (20) things only 20 you have to name everything before you leave the state .

Answers

haha, interesting story.

What kinds of objects might benefit from the use of the Loop Cut and Slide tool, and why? In your own words, how does edge loop manipulation “work?”

Answers

Answer: it doesn’t. The demons are coming

Which of the following tags is used to create a horizontal line across the width of the Web page? A: <hr /> B: <br /> C: <line></line> D: <bar></bar>​

Answers

Answer:

<hr/>

Explanation:

hr stands for horizontal ruler.

When might you use the Internet without accessing the World Wide Web?

Answers

Jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj

A MailTip is an instantaneous pop-up message that

warns users of bad email addresses.

forces the sender to check their grammar and spelling.

gives you real-time information about the message you are creating.

provides helpful hints on how to navigate the message controls.

Answers

Answer:

its (c)

Explanation:

Which statement is true?

You cannot create an empty deque.

You need to import the deque methods in order to use a deque.

You can use popleft with a list.

You need to import list methods in order to use a list.

Answers

Answer:

The answer to your question is B. I hope this helps. Have a wonderful safe day. <3<3<3

Explanation:

The right end of the queue can have elements added using the append() function, while the left end of the queue can have elements added using the appendleft() method. Thus, option B is correct.

What import the deque methods in order to use a deque?

The ability to add and remove items from the left end is one of deque's main advantages over a list. As was already indicated, a deque object is significantly more effective for these actions at the left end, especially as the queue size grows.

In a data structure, dequeue Both the input and output queues are constrained. Data can only be added from one end of an input restricted queue, but it can be removed from both ends.

Therefore, The most popular list-like data types in computing, queues and stacks, are implemented elegantly, efficiently, and Pythonically using deque, a low-level and highly optimized double-ended queue.

Learn more about deque here:

https://brainly.com/question/29733589

#SPJ2

What is the most common digital photography file type?

Question 8 options:

TIFF


RAW


JPEG


PHO

Answers

Answer:

JPEG

Explanation:

Answer:

JPEG

Explanation:

(I WILL MARK BRAINLIEST) The High Importance message option is found in which group of the Message Ribbon?

Name
Include
Importance
Tags

Answers

Answer:

your answer should be tags. hope this helped:)

Explanation:

The High Importance message option is found in which group of the Message Ribbon?

Tags is the answer of this questions.

please mark as brainleiest and follow me....

Which step in the software development life cycle involves making improvements based on user feedback?

Coding
Design
Maintenance
Testing

Answers

Answer:

Design Phase

Explanation:

In design phase developers make prototypes. The prototype is the solution without actual implementation. That prototype is shown to the user for the purpose of getting feedback. So design phase of SDLC involves making improvements based on user feedback.

Answer:

Testing

Explanation:

When you test the game to see if it's fun you try to get feedback from users

The following code will not compile. Which of the options below would allow the code to compile and run as intended?

if (x >= -10 and <= 10):
print("In range")

Answers

Answer:

Follows are the code to this question:

x=int(input())#use input method with int that takes integer value from user-end  

if (x >= -10 and x<=10):#defining if block that checks x in between -10 to 10

   print("In range")#print message

Output:

6

In range

Explanation:

In this code, the choices were missing that's why the solution to this question can be defined as follows:

In this, x variable using the input method with the int, which takes integer value from the user-end. In the next step, the if block is used, that checks x value lies on between the -10 to 10, to check this condition it used the and logical operator, that run the code when both conditions are true, and at last, it prints the message "In range".

What I Can Do

Activity: SHOW ME YOUR SKILLS

Directions: Show your skills in caregiving by answering the question. Focus your answer in the underline world.

1. You are assigned to take good care of your younger brother/sister and he/she is HUNGRY. What will you do?

2. Your mother wants to go to the market and you are assigned to take good care of your grandmother. Your grandmother has difficulty in walking. How do you take good care of her if she WANTS TO GO TO THE BATHROOM and when SHE IS HUNGRY?​

Answers

Answer:

1. I would cook or see there is any leftovers from dinner or do take out.

2. I would try and carry her but if I can't then I'll walk her to the bathroom. I make her what she wants.

Consider the following code:


public class B1

{


private int i;

private int j;



}


public class B2 extends B1

{

private int m;

private int n;



}


public class B3 extends B2

{

private int z;



}


Which of the following sets of instance variables are directly accessible in class B3?

i, j, m, n

i, j, m, n, z

i, j, z

m, n, z

z

Answers

Answer:

The  answer is "z"

Explanation:

In this question, the "z" instance variable is correct because inside the class "B3" it declared a private variable "z", which is applied in the methods or data members or variables, and it is only accessible within the class, that they have been declared, and when we create its instance so, the object has been instantiated, and it is generated and accessible to all the builders, methods, or class blocks.

Answer:

4. m, n, z

Explanation:

This is because B3 extends off of B2. Meaning it has its own instance variables accessible, and can directly access the variable from it's super class, which is B2, which has m, and n.

Question 29 :What is the term for the part of a browser responsible for reading and processing programming languages

Answers

Answer:

The appropriate approach is "Interpreter".

Explanation:

An interpreter would be a computer application that is being used straightforwardly start executing application programs published using another one of the elevated languages of the computer.

There have been 2 criteria for selecting programs that are published throughout an elevated language. Just like:

To implement the program. Transfer the project across an interpreter.

Calcule la carga que puede levantar un cabrestante si la manivela mide 40 cm y el El radio del molinete es una tercera parte de la manivela, si hacemos un fuerza en el mango de 250 N

Answers

Answer:

C

Explanation:

because...

If i hit the delete key three times what will be left

Answers

Answer:

planation:

I got this

Which of the following is an advantage of using
the sort procedure? Check all that apply.
preserves cell formatting and formulas
saves time
deletes extraneous data
avoids copy-paste
organizes data so it is easier to draw
comparisons
navigates to a specific page, table, or object

Answers

Answer: preserves cell formatting and formulas

saves time

avoids copy-paste

organizes data so it is easier to draw comparisons

Explanation: just did it

The advantage of using sort procedure is that it saves time and organizes data so it is easier to draw comparisons.

What is sort procedure?

Sort procedure is the process by which data or elements are being arranged in a particular kind of order for an easy access.

The importances or advantages of Sort procedure in data preparation are:

to save the user's time and

organizes data so it is easier to draw comparisons.

Therefore, the advantage of using sort procedure is that it saves time and organizes data so it is easier to draw comparisons.

Learn more about data here:

https://brainly.com/question/25720881

#SPJ2

ILL GIVE BRAINLIEST TO FIRST ANSWER David is adopting an iOS app from a non-retina screen to a retina screen. The app currently works at a pixel density of 150DPI, what density should it be on a retina screen to maintain its apparent size?

Answers

Answer: what density should it be on a retina screen to maintain its apparent size?

Can Someone Please Help Me?! I Have already had a rough morning!

What is step one in the digital file organization process?

What is rule number one?

What is rule number two?

What is the obvious advantage to rule number two?

What is the tree structure?

What are two main ways to organize your files?

How should you name your files?

What is cloud storage?

What are some different cloud storage software?

What is the importance of backing up your computer?

Answers

Answer:

The first step to organizing your digital files is knowing and documenting what you need to keep and why. This means that you need to create record retention guidelines if they do not already exist. Typically, information needs to be kept for legal and accounting purposes.

Look at the following Python code:
word1 = "Umpire"
print(word1[1])

Which character will be indexed from word1 and printed to the screen? (5 points)

1. U
2. m
3. p
4. i

Answers

Answer:

2. m

Explanation:

Computers count starting from 0 so 1 would actually be the 2nd letter

Most sources consider the ARPA-NET project the birth of computer blank
.

Answers

Answer:

Networking

Explanation:

Answer:

networking i think

Explanation:

Explain why configuration is essential in planning a project.

Answers

Answer:

Configuration management system helps in managing versioning of project management plans, documents and project components. This system may include Change Control System. Because the major cause of taking a new version for a component, document or plan in a project is a change

Which of these is a small'plain text file that a website might place on your local drive? Choose the answer.

cookie

spam

virus

spoof

Answers

The answer would be cookie

Answer:

the is anwer is cookie i took the test i made sure is the right anwers

Explanation:

Which of the following expressions will evaluate to true? (3 points)

7 == 7.0
7 != 7.0
7 < 7.0
Question 1 options:

1)

I only

2)

II only

3)

III only

4)

I and III only

5)

II and III only
Question 2 (3 points)
Saved
Which of the following expressions will evaluate to true? (3 points)

12 / 5 != 2.0
12 / 5.0 == 2.0
(int)(12.0 / 5.0) == 2.0
Question 2 options:

1)

I only

2)

II only

3)

III only

4)

I and II only

5)

I and III only
Question 3 (3 points)
Assume an integer variable named num is assigned a value of 20. What is the value of num - 7 < 15? (3 points)

Question 3 options:

1)

True

2)

False

3)

0

4)

1

5)

An error occurs
Question 4 (3 points)
What is the result of the following code segment? (3 points)

int x = 10;
if(x + 1 < 20)
x += 5;
System.out.println(x);

Question 4 options:

1)

10

2)

11

3)

15

4)

16

5)

20
Question 5 (3 points)
Assume the integer variable num has been assigned a valid value. What is the purpose of the following code segment? (3 points)

if(num % 10 != 0)
System.out.print(num);

Question 5 options:

1)

It prints num if its value is a multiple of 10.

2)

It prints num if its value is not a multiple of 10.

3)

It always prints the value of num.

4)

It never prints the value of num.

5)

An error occurs at compile time.

Answers

Answer:

A and B

Explanation:

What is a reason given in an argument why the claim is true?

A. Evidence
B. Heuristic
C. Claim
D. Premise

Answers

Answer:

A

Explanation:

A

The reason given in an argument why the claim is true is called; D: Premise.

When having an argument, the parties involved are trying to establish who is right about the topic of the argument based on the claims given by the parties involved in the argument.

Now, arguments get to a point where the parties involved would be required to bring forth a string reason why their position holds the best approach or is true and this position as to why their claim is true is called "premise" of the claim in the argument.

Read more about arguments at; https://brainly.com/question/3132210

Which are viable channels of communication? the Internet, sign language, playing a video game alone, talking, taking a solitary walk​

Answers

Answer:

The Internet, sign language, and talking

Explanation:

Other Questions
The petersons have two dogs princess and duke .princess eats 2/3of a bag of dog food in a moth duke eats 7/8 of a bag of dog food in a month. How much more dog food does duke eat in a month? Jack leaves fromschool and goes 4 milesnorth and 3 miles east to reach his home. How far is his home from school? There is more genetic variation ________________ a population that ________________ populations. Screen-printing a batch of shirts requires 2 minutes per shirt in addition to 4 minutes of initial set-up time. If it takes 80 minutes to screen-print a batch of shirts, how many shirts are in the batch?3844020 70 points for 7 questions answer. math...please and thank you How does the section Check your mindset." contribute tothe author's idea of growth and fixed mindset? The diagram below shows the layout of an enclosure for horses. In the diagram, every 4 centimeters represents 7 meters of the actual enclosure. To the nearest whole number what is the area of the enclosure? If 4 hawks need to eat 8 fish a day, how many fish do 12 hawks need to eat? In the _____________ stage of a project you are more likely to find status reports, changes, and the creation of forecasts. What is the Y-INTERCEPT of the equation y = 2x + 3?What is the slope of the equation y = 2x+3Write and equation for a slope of -7 and a y - intercept of -15Write 6x+y=24 in slope-intercept form does anyone know what she is saying? Whether a mutation is helpful or harmful depends in part on an organism'sA. appearanceB. sizeC. healthD. environment WILL MARK BRAINLYIST A customer believes ABC's stock price will rise, but she does not currently have the money to buy 100 shares. How could the customer use options to profit from a rise in the stock's price Part A Which statement best captures the central message of Silvers interview with Rebecca Skloot? a. Skloots accusations of racism center around the scientists lack of compassion in dealing with Henrietta Lacks children. b. The Lacks familys privacy rights had been violated for years as information about Henrietta Lacks's tissue samples were released to the public without permission. c. Skloot is optimistic the Lacks descendants will move into the future understanding how Henrietta Lacks helped the world. d. The Lacks family's recent involvement in HeLa research is a positive move forward because it signals a more open, ethical dialogue between the public community and the scientific community. What's the definition of repel in biology ? its cShe wants to display casts of soldiers remains in a museum.got it right on my unit test for edge 2021 Did you hear about the two punsters who told a lot of jokes !!!!Someone help me with this!!!!!!Eukaryotic Cell Structure and Function !!!!(Will Give Brainliest Answer)!!! Who ever gets this one Ill mark them