subject

In this lab, you add nested loops to a C++ program provided. The program should print the outline of the letter E. The letter E is printed using asterisks, three across and five down. This program uses cout #include
using namespace std;
int main()
{
const int NUM_ACROSS = 3; // Number of asterisks to print across
const int NUM_DOWN = 5; // Number of asterisks to print down
int row; // Loop control for row number
int column; // Loop control for column number

// This is the work done in the detailLoop() function
// Write a loop to control the number of rows.
// Write a loop to control the number of columns
// Decide when to print an asterisk in every column.
cout << "*";
// Decide when to print asterisk in column 1.
cout << "*";
// Decide when to print a space instead of an asterisk.
cout << " ";
// Figure out where to place this statement that prints a newline.
cout << endl;
}

// This is the work done in the endOfJob() function
return 0;
} // End of main()

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
question
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
What is the purpose of network permissions? a)to control access to network resources b)to convert to wireless networking c)to enable the installation of nics d)to reduce operating costs
Answers: 1
You know the right answer?
In this lab, you add nested loops to a C++ program provided. The program should print the outline of...
Questions
question
Mathematics, 14.04.2021 17:40
question
Mathematics, 14.04.2021 17:40
question
Mathematics, 14.04.2021 17:40
Questions on the website: 13722367