Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

discuss in detail market strategy and market positioning

Answered: 1 week ago

Question

6. Explain the power of labels.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago