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
Why star topology is more reliable than bus or ring topologies
Valentin [98]

Answer:

<h3><em><u>simple </u></em><em><u>ans</u></em></h3>

Explanation:

<h2><em><u>it </u></em><em><u>is </u></em><em><u>because </u></em><em><u>as </u></em><em><u>it </u></em><em><u>has </u></em><em><u>server </u></em><em><u>computer </u></em><em><u>and </u></em><em><u>no </u></em><em><u>one </u></em><em><u>are </u></em><em><u>free </u></em><em><u>as </u></em><em><u>other </u></em><em><u>topology </u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em></h2>

<h2><em><u>client </u></em><em><u>computer </u></em><em><u>should </u></em><em><u>ask </u></em><em><u>server </u></em><em><u>to </u></em><em><u>share </u></em><em><u>any </u></em><em><u>information </u></em><em><u>ideas </u></em><em><u>etc.</u></em></h2>

<em><u>this </u></em><em><u>much.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em>

<h2><em><u>follow</u></em></h2>
8 0
2 years ago
Read 2 more answers
Difference between system and software development life cycle
umka2103 [35]

Answer:

Software development life cycle is about building a software (“only”) in a phased approach systematically.

System development life cycle is about implementing hardware and software in a phased manner systematically.

Explanation:

Here both the hardware and the software is considered as a system.

Hope this helps!

3 0
3 years ago
Calculate the speed for a car that went a distance of 125 miles in 2hours time
Dimas [21]

Answer:

the car is moving at 62.5 mph, or 100.584 kph.

Explanation:

divide the distance by the number of hours and you get the average speed.

6 0
3 years ago
How will you find and replace particular text in a document​
blsea [12.9K]

Answer:

Find and replace text

Go to Home > Replace or press Ctrl+H.

Enter the word or phrase you want to locate in the Find box.

Enter your new text in the Replace box.

Select Find Next until you come to the word you want to update.

Choose Replace. To update all instances at once, choose Replace All.

Explanation:

6 0
3 years ago
Find out the actual instruction given in binary
jekas [21]

<em><u>Your</u></em><em><u> </u></em><em><u>question</u></em><em><u> </u></em><em><u>is</u></em><em><u> </u></em><em><u>incomplete</u></em><em><u>.</u></em>

<em><u>hope</u></em><em><u> </u></em><em><u>its</u></em><em><u> </u></em><em><u>helpful</u></em><em><u>.</u></em>

5 0
3 years ago
Other questions:
  • Assume that a gallon of paint covers about 350 square feet of wall space. Create anapplication with a main() method that prompts
    5·1 answer
  • Select
    14·1 answer
  • Which of the following likely comes last in developing a presentation outline
    6·2 answers
  • Write a Java program to accept an item's name and price from the user and output them to the console
    5·1 answer
  • Answer for a, b, and c
    7·1 answer
  • What is application launchers functions​
    15·1 answer
  • Hi I need help, This assignment is for Assignment 6 Question 3 in edhesive for computer science. here is the prompt:
    15·1 answer
  • What does brainliest do?
    8·2 answers
  • Choose the correct term to complete the sentence.
    10·1 answer
  • Characteristics of first generation computers​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!