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
gulaghasi [49]
3 years ago
5

Write a loop that displays your name 10 times. 2. Write a loop that displays all the odd numbers from 1 through 49. 3. Write a l

oop that displays every fifth number from 0 through 100. 4. Write a code sample that uses a loop to write the numbers from 1 through 10 to a file. 5. Assume that a file named People.txt contains a list of names. Write a code sample that uses a while loop to read the file and display its contents in a ListBox control.
Computers and Technology
1 answer:
monitta3 years ago
6 0

Answer:

Kindly check explanation

Explanation:

(1.)

n = 0

While n < 10 :

n+=1

print('fichoh')

# initiate counter n = 0 ; set condition, while n is not equal to 10 ; it print 'fichoh' and counter is increased by 1. This terminates once it reaches 10.

(2.)

for number in range(1,50):

if number%2 != 0 :

print(number)

#An odd number won't have a remainder of 0 when Divided by 2 ; so, for numbers 1 to 49 using the range function, if the number is divided by 2 and leaves a remainder other Than 0, such number is displayed

(3.)

for number in range(0,101,5):

print(number)

# Using the range function, starting from 0 to 100; it is number in the for loop is incremented by 5 and displayed.

(4.)

outfile = open('my_file.txt', 'w')

for n in range(0,11):

outfile.write(str(n))

outfile.close()

#open, 'w' creates a text file, my_text.txt and writes into it ; using the range function, numbers 0 to 10 is written into the created file.

5.)

name_file = open('People.txt', 'r')

While name_file:

out_file = name_file.readline()

if out_file = ' ' :

break

name_file.close()

names = name

#Open, 'r' ; opens and read from the file People.txt ;

#readline reads the content of the opened text file into a list out_file ; using the if ' ', the loop terminates once an empty content is read.

You might be interested in
E-banking is also called: [1]
DENIUS [597]
Answer 1 it’s online banking
3 0
3 years ago
What is the scope of numC?
GREYUIT [131]

Answer:

local scope which is the entire body of the function/method that it is being used in

Explanation:

The variable numC has a local scope which is the entire body of the function/method that it is being used in, which in this scenario is the passwordMaker method. This is because the variable numC is being used as a parameter variable for that method, meaning that a piece of information is being inputted by when the method is called and saved as the variable numC which is then used by the lines of code inside the method, but cannot be accessed from outside the method thus.

5 0
3 years ago
Read 2 more answers
Emily has been asked to update Webpage content for her company's site and is working with the marketing department to gather inf
-Dominant- [34]

Answer:

Visitor tracking  is the correct answer.

Explanation:

The following answer is true because Visitor tracking is the technique for the audience-development that provides the information for which the Emily is seeking. That's why she told the designer or programmer to update the content of the webpages for Emily's company's website and she also told them to working for that marketing department for which she gathering the information for the product contents.

3 0
3 years ago
Modern database tools support ________________, which entails separating data from the programs that manipulate data.
Bas_tet [7]
The correct answer: Data independence

Data independence<span> is the type of </span>data<span> transparency that matters for a centralised DBMS. It refers to the immunity of user applications to changes made in the definition and organization of </span>data<span>. Physical </span>data independence<span> deals with hiding the details of the storage structure from user applications.
</span>
The logical<span> structure of the data is known as the 'schema definition'. In general, if a user application operates on a subset of the </span>attributes<span> of a </span>relation<span>, it should not be affected later when new attributes are added to the same relation. Logical data independence indicates that the conceptual schema can be changed without affecting the existing schemas.
</span>
<span>The physical structure of the data is referred to as "physical data description". Physical data independence deals with hiding the details of the storage structure from user applications. The application should not be involved with these issues since, conceptually, there is no difference in the operations carried out against the data.</span>
8 0
4 years ago
Digital Sep <br> helps as reimagine outcomes true or false
iragen [17]

Answer:

true

Explanation:

mark me as brailyist pls

6 0
3 years ago
Other questions:
  • Why does a layer 3 device perform the anding process on a destination ip address and subnet mask?
    10·1 answer
  • Why is the binary number system used in digital logic?
    9·1 answer
  • A ________ describes the data and relationships that will be stored in a database.
    10·1 answer
  • Swiping and pinching are graphical user interface (gui) _____________.
    7·2 answers
  • A client wishes to update their legacy system even though there have been no
    15·1 answer
  • Sergio needs to tell his team about some negative feedback from a client. The team has been
    14·1 answer
  • HELP ASAP 90 Points
    12·1 answer
  • 7.
    7·1 answer
  • What is the deck of a suspension bridge called​
    15·1 answer
  • Choose the comparison operator that will create a true statement in Scratch
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!