Question: Nested Loops C++ Need it in 15 minutes please Program 1: The following program generates displays all two-letter .com internet domain names, 13 names per

Nested Loops C++ Need it in 15 minutes please

Program 1:

The following program generates displays all two-letter .com internet domain names, 13 names per line.

#include

using namespace std;

int main()

{

char letter1, letter2;

int count=0;

cout<<"***Two letter domain names**"<< endl;

cout<<"**************"<

for(letter1='a'; letter1<='z';letter1++)

{

for (letter2='a';letter2<='z';letter2++) {

cout <

count++;

if(count%13==0)

cout<

}

cout<

}

}

1.Type in the above program, add your name and date, compile and run the program

2.How many times does the outer loop execute?

3.How many times does the inner loops execute?

4.Modify the program to include two-character .com names where the second character can be a letter or a number, as in a2.com

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!