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
My name is Ann [436]
3 years ago
4

Modity your program Modify the program to include two-character .com names, where the second character can be a letter or a numb

er, e.g., a2.com. Hint: Add a second while loop nested in the outer loop, but following the first inner loop, that iterates through the numbers 0-9 2 Program to print all 2-letter domain names Run 3 Note that ord) and chr) convert between text and ASCII/ Uni 4 ord (.a.) is 97, ord('b') IS 98, and so on. chr(99) is 'c", et Running done. domain Two-letter a. com ?? . com ac.com ad. com ae.com ai. com ag.com names: 6 print'Two-letter domain names:" 8 letter1 'a' 9 letter2 10 while letter! < 'z': # Outer loop letter2a" while letter2 <- "z': # Inner loop 12 13 14 print('%s %s.com" % (letteri, letter2)) letter2chr(ord (letter2) 1) 15 letterl chr(ord(letter1) + 1) 16 17 h.com ai.com j com ak.com Feedback?
Computers and Technology
1 answer:
KiRa [710]3 years ago
5 0

Answer:

The addition to the program is as follows:    digit = 0

   while digit <= 9:

       print('%s%d.com' % (letter1, digit))

       digit+=1

Explanation:

This initializes digit to 0

   digit = 0

This loop is repeated from 0 to 9 (inclusive)

   while digit <= 9:

This prints the domain (letter and digit)

       print('%s%d.com' % (letter1, digit))

This increases the digit by 1 for another domain

       digit+=1

<em>See attachment for complete program</em>

You might be interested in
How to create drop down list in excel with multiple selections.
Art [367]

Answer: <em>Select the cell or cells you want the drop-down list to appear in.</em>

<em>Click on the Data tab on Excel's ribbon.</em>

<em>Click on the Data Validation button in the Data Tools group.</em>

<em>In the Data Validation dialog, in the Allow: list select List.</em>

<em>Click in the Source: box.</em>

<em />

<em></em>

<em />

8 0
3 years ago
Read 2 more answers
Which of these statements sums up why the computer is the most visible and
Andreyy89

Statement A is true, that is computers are used in all digital technologies.

Explanation:

  • Among the given statement the most appropriate statement to choose the computer as the most visible and pervasive product of the digital age is that computers are used in all digital technologies now.
  • And other statement are false or not valid as computers are not only used in United states
  • Computer is not the only form of communication.
  • And computers are not the only technological devices that we use now.

6 0
4 years ago
Which of the following is not a type of user account? A. Administrator b. Guest c. Group d. Standard
Arlecino [84]
I've never heard of a group account so I'm going with.
C. Group
5 0
4 years ago
A _______ contains several blades of differing thicknesses and is used to measure the clearance between parts.
motikmotik
A Feeler Gauge. It is a tool used to measure gap widths
3 0
3 years ago
Which is an example of a withholding you might see on your pay stub?
Arisa [49]
An example of a withholding you might see on your stub who'll be money.
3 0
3 years ago
Other questions:
  • Achieving a degree in computer forensics, information technology, or even information systems can provide a strong foundation in
    11·1 answer
  • Analyze the following code. Select one: A. The code is wrong. You should replace if (even) with if (even == true). B. The code d
    13·1 answer
  • Explain what a surrogate key is.
    13·1 answer
  • A SmartArt graphic consists of two parts: the SmartArt graphic itself and a(n) ____ pane.
    5·1 answer
  • Which of these is not the correct method for moving text in a document in Word 2016?
    7·1 answer
  • Date Class Constructor – assigns fields to appropriate formal parameter – using the setters so error checking will occur. The co
    6·1 answer
  • Kareem is working on a project for his manager. He has a few questions for a co-worker who he knows is knowledgeable on the subj
    7·1 answer
  • OkkKkkkkkEYEYYEYEYEY BYEYYEYEYEyeeyeyyeEYEy if you know you know
    11·1 answer
  • Use the drop-down menus to explain how to save a presentation to a CD.
    5·2 answers
  • Ple Choice Worth 5 points)
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!