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
mariarad [96]
3 years ago
8

Given N lines of input, print the 3rd character from each line as a new line of output. It is guaranteed that each of the n line

s of input will have a 3rd character.
Input Format
A text file containing N lines of ASCII C characters.
Constraints 1 Output Format
For each line of input, print its 3rd character on a new line for a total of N lines of output.
Sample Input
Hello
World
how are you
Sample Output
Explanation of what to submit Submit your code and output in a word document. Also, submit the actual script in a separate.txt file
-----------------------------------------------------------------------------------------------------------------------------------------
Task
You are given a file with four space separated columns containing the scores of students in three subjects. The first column contains a single character (A-2), the student identifier. The next three columns have three numbers each. The numbers are between 0 and 100, both inclusive. These numbers denote the scores of the students in English, Mathematics, and Science, respectively.
Your task is to identify those lines that do not contain all three scores for students.
Input Format
There will be no more than 10 rows of data. Each line will be in the following format: [Identifier][English Score][Math Score][Science Score]
Output Format
For each student, if one or more of the three scores is missing, display:
Not all scores are available for [Identifier]
Sample Input
A 25 27 50
B 35 75
C 75 78
D 99 88 76
Sample Output
Not all scores are available for B
Not all scores are available for C
Explanation
Only scores have been provided for student B and student C.
Computers and Technology
1 answer:
Juliette [100K]3 years ago
4 0

Answer:

lines = input("enter the lines of strings: ")

line_list = lines.splitlines()

with open("third_characters.txt", "w+") as file:

   for line in line_list:

       file.write(line[2])

       file.write("\n")

Explanation:

The python module gets the input of string values from the user and splits it into a list of strings. The third character on each string item is retrieved and saved in a document file named 'third_characters.txt' with each character on a single line.

You might be interested in
From a neural network with 11 input variables, one hidden layer with three hidden units, and one output variable, how many param
e-lub [12.9K]

Answer:

40

Explanation:

Given that:

A neural network with 11 input variables possess;

one hidden layer with three hidden units; &

one output variable

For every input, a variable must go to every node.

Thus, we can calculate the weights of weight with respect to connections to input and hidden layer by using the formula:

= ( inputs + bias) × numbers of nodes

= (11 + 1 ) × 3

= 12 × 3

= 36 weights

Also, For one hidden layer (with 3 nodes) and one output

The entry result for every hidden node will go directly to the output

These results will have weights associated with them before computed in the output node.

Thus; using the formula

= (numbers of nodes + bais) output, we get;

= ( 3+ 1 ) × 1

= 4 weights

weights with respect to input and hidden layer total = 36

weights with respect to hidden and output layer total = 4

Finally, the sum of both weights is = 36 + 4

= 40

6 0
3 years ago
Which of the following remote access security technologies performs authentication through a three-way handshake (that is, chall
levacccp [35]

Answer:

CHAP

Explanation:

CHAP allows a client to be authenticated without sending credential information across a network.

7 0
3 years ago
Where do you see the future of Information Technology heading?
Oduvanchick [21]

Answer:

Information technology is the process of development and maintenance the computer system components like software for distributing and processing the data in the network.  

The main future aspects of the information technology is to share the data or information in the big networking platform. It basically increase the production of software application in upcoming coming years.  

Information technology term commonly use in computer networks and provide huge applications like internet, telecom equipment and e-commerce.

3 0
3 years ago
Effective data communication relies on many components to function collaboratively and reliably. When troubleshooting network pr
enyata [817]

The likely issue cause of the problem in the scenario.

  • Modem: Problem: Dante's home router reports that it's not connected to the internet.

<h3>What is the reason for the above scenario?</h3>

The reason for the modem problem may be due to  some issue that occurs with the connection of the modem device

Therefore, The likely issue cause of the problem in the scenario.

  • Modem: Problem: Dante's home router reports that it's not connected to the internet.  because it is only with the modem that he can connect to the internet and thus need to solve the issue.

Learn more about  communication from

brainly.com/question/26152499

#SPJ1

3 0
2 years ago
You are troubleshooting a dns issue on a linux system, and need to test the resolution of your domain mycompany.com mx record us
Ipatiy [6.2K]

Answer:

nsLookup mycompany.com

Explanation:

Start a DOS command window. To do that, click Start, click Run, type cmd, and later press Enter.At the command prompt, copy the following command. Substitute example.com with the domain that you need to examine:

"nsLookup mycompany.com"

4 0
3 years ago
Read 2 more answers
Other questions:
  • If you define CSS rules on a parent control, the rules will be inherited by all of the children widgets.
    12·1 answer
  • Write a program that asks the user to enter a number within the range of 1 through 10. Use a switch statement to display the Rom
    13·1 answer
  • What is the main storage location of a computer
    13·1 answer
  • Which of the following is NOT a benefit of safety and health programs?
    11·1 answer
  • A _______ area network is a type of wireless network that works within your immediate surroundings to connect cell phones to hea
    9·2 answers
  • When you are saving a file, what does word suggest by default as the name of the document?
    8·2 answers
  • Amy uses digital devices to listen to music and to watch movies. Which one of these is Mbps a measure of?
    12·1 answer
  • You are trying to connect a new USB device to your computer. You install the driver and then connect the device to an open USB
    10·1 answer
  • Priortization is an example of a skill that helps you reach long term goals because
    14·1 answer
  • You have installed Windows Server 2016 on a new server and want to centralize user logons and security policies. What type of so
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!