someone help me

Write a C++ program that display a checkerboard pattern made of stars and blanks, as shown below. A checkerboard is eight squares by eight squares. This will be easier if you first declare two named string constants representing the two different row patterns. Be sure to include appropriate comment in your code, choose meaningful identifiers, and use indentation as do the programs.

Someone Help MeWrite A C++ Program That Display A Checkerboard Pattern Made Of Stars And Blanks, As Shown

Answers

Answer 1

The program is an illustration of loops.

Loops are used to perform repetitive and iterative operations.

The program in C++ where comments are used to explain each line is as follows:

#include <iostream>

using namespace std;

int main(){

   //This declares and initializes all variables

   string star = "*", blank = " ", temp;

   //The following iteration is repeated 8 times

   for (int i = 1; i <= 8; i++) {

       //The following iteration is repeated 8 times

       for (int j = 1; j <= 8; j++) {

           //This prints stars

           if (j % 2 != 0) {

               cout << star;

           }

           //This prints blanks

           else if (j % 2 == 0) {

               cout << blank;

           }

       }

       //This swaps the stars and the blanks

       temp = star;

       star = blank;

       blank = temp;

       //This prints a new line

       cout << endl;

   }

}

Read more about similar programs at:

https://brainly.com/question/16240864


Related Questions

please help me asapppppp​

Answers

Answer:

lol no

Explanation:

people, hardware, software, data, procedures, and communication network working together to collect, transform and disseminate information called

Answers

Answer:

Information systems are combinations of hardware, software, and telecommunications networks that people build and use to collect, create, and distribute useful data, typically in organizational settings.

Explanation:

name the steps to turn on a computer properly​

Answers

Answer:

Check that the computer is connected to power, and is powered on.

Make sure that your keyboard and mouse are plugged in.

Check that the monitor (screen) is plugged into the computer using its display cable.

Ensure that the monitor is connected to power and is turned on.

Explanation:

Select the three responsibilities of producers.
providing graphics
being on time
being on budget
being on target
providing collateral content
being error free

Answers

Being on time
Being on budget
Being on target

What aligns the touch and display layers of a touch screen to ensure accurate input? I know the word starts with C has a I and T like this C . . i . . . t . . .

Answers

Ans

I think is Capacitive

Explanation:

Dude I think I forget. I remember how it work but I for get it's name I think is

Capacitive

Problem Statement − Suppose the problem statement at hand is to contain the attrition that happens in companies worldwide. High quality employees leave the organization, mainly after the appraisal cycle. As a result, an average company loses its valuable human resources and suffers from an overhead of transferring the knowledge to a new employee. This takes time and additional human resource in the form of a trainer, which adds to the company’s costs. Devise a plan to contain attrition in the company.

Answers

Answer:Analysis is derived from the Greek word ‘analusis’, which translates into ‘breaking up’ in English. Analysis is older than the times of great philosophers like Aristotle and Plato. As discussed in the previous section, analysis is the process of breaking down a big single entity into multiple fragments. It is a deduction where a bigger concept is broken down to smaller ones. This breaking down into smaller fragments is necessary for improved understanding.

So, how does analysis help in design thinking? During analysis, design thinkers are required to break down the problem statement into smaller parts and study each one of them separately. The different smaller components of the problem statement are to be solved one-by-one, if possible. Then, solutions are thought for each of the small problems. Brainstorming is done over each of the solutions.

Later, a feasibility check is done to include the feasible and viable solutions. The solutions that don’t stand firm on the grounds of feasibility and viability are excluded from the set of solutions to be considered.

Design thinkers are, then, encouraged to connect with the diverse ideas and examine the way each idea was composed. This process of breaking down the bigger problem statement at hand into multiple smaller problem statements and examining each as a separate entity is called analysis.

Reductionism

The underlying assumption in analysis is reductionism. Reductionism states that the reality around us can be reduced down to invisible parts. The embodiment of this principle is found in basic axioms of analytic geometry, which says “the whole is equal to the sum of its parts”. However, understanding of a system cannot be developed by analysis alone. Hence, synthesis is required following analysis.

Synthesis

Synthesis refers to the process of combining the fragmented parts into an aggregated whole. It is an activity that is done at the end of the scientific or creative inquiry. This process leads to creation of a coherent bigger entity, which is something new and fresh. How does synthesis come into picture in design thinking?

Once the design thinkers have excluded the non-feasible and non-viable solutions and have zeroed-in on the set of feasible and viable solutions, it is time for the thinkers to put together their solutions.

Out of 10 available solutions, around 2-3 solutions may need to be excluded since they may not fit into the larger picture, i.e. the actual solution. This is where synthesis helps.

The design thinkers start from a big entity called the problem statement and then end up with another bigger entity, i.e. the solution. The solution is completely different from the problem statement. During synthesis, it is ensured that the different ideas are in sync with each other and do not lead to conflicts.

Analysis + Synthesis = Design Thinking

Analysis and synthesis, thus, form the two fundamental tasks to be done in design thinking. Design thinking process starts with reductionism, where the problem statement is broken down into smaller fragments. Each fragment is brainstormed over by the team of thinkers, and the different smaller solutions are then put together to form a coherent final solution. Let us take a look at an example.

Analysis Synthesis

Case Study

Problem Statement − Suppose the problem statement at hand is to contain the attrition that happens in companies worldwide. High quality employees leave the organization, mainly after the appraisal cycle. As a result, an average company loses its valuable human resources and suffers from overhead of transferring the knowledge to a new employee. This takes time and additional human resource in the form of a trainer, which adds to the company’s costs. Devise a plan to contain attrition in the company.

Analysis − Now, let’s break down the problem statement into various constituent parts. Following are the subparts of the same problem statement, broken down to elementary levels.

The employees are not motivated anymore to work in the company.

Appraisal cycle has something to do with attrition.

Knowledge transfer is necessary for new employees.

Knowledge transfer adds to the cost of the company.

Synthesis − Now, let's start solving each problem individually. In this step, we will do synthesis. Let's look at one problem at a time and try to find a solution only for that problem statement, without thinking of other problem statements.

Explanation:

The agreement must be signed by the employee before giving appraisal letter and in that there is some time limit that is essential to be in the organization.

Why employee leaves the company after getting appraisal?

The employees leave the old company after getting the promotion or appraisal letter from the authority because they want to get the better salary by showing the apparent post in the old organization. They get better salary from the last job.

Thus, The agreement must be signed by the employee before giving appraisal letter

For more details about employee leaves the company after getting appraisal, click here:

https://brainly.com/question/14057221

#SPJ2

How do i find the minterms

Answers

Answer:

I think.....

Explanation:

bylooking

Roz’s teacher says that the assignment for that day is to listen to a speech by President Kennedy. Which of the following files will Robin open to complete the assignment? A. PDF B. docx C. mp3 D. systems software

Answers

Answer:

Pretty sure the answer is C. mp3

Explanation:

They have to listen to the speech, not read it or anything, and mp3's are audio files. Hope this helps :D

Answer:

c

Explanation:

source: trust me bro

What critical-thinking tool is being used when asking the question, "Is there a large enough scope of
information?"
O synergy
O breadth
O semantics
O depth

Answers

Answer:

breadth

if I am correct.

**IN PYTHON**
Write a program that uses a loop and a half to prompt a user for a password. You should prompt the user for the password. If they get it correct, break out of the loop. If they don’t get it correct, you should give them an error message and ask again.

Sample Run:
Enter password: 123123
Sorry, that did not match. Please try again.
Enter password: password
Sorry, that did not match. Please try again.
Enter password: CODEHS
Sorry, that did not match. Please try again.
Enter password: abc123
You got it!
Note: You need to set SECRET to abc123 to run the tests

Answers

Answer:

SECRET = "abc123"

while True:

p = input("Enter password: ")

if p != SECRET:

 print("Sorry, that did not match, Please try again.")

else:

 print("You got it!")

 break

Explanation:

SECRET = "abc123" will be used in the language of python that was created.

What is Python?

Python is a PC programming language frequently used to fabricate sites and programming, robotize errands, and direct information examination. Python is a universally useful language. This language tends to be utilized to make a wide range of projects and isn't particular for a particular issue.

To maintain a user attempting to enter the password, we have used a while loop that never ends. We employ an if-else structure in the loop to determine the password. If it is "abc123," the passcode is discovered, and the loop is broken.

SECRET = "abc123"

There is a function and if that is true, then

p = input("Enter password: ")

The if function will be implemented.

if p != SECRET:

print("Sorry, that did not match, Please try again.")

The else function will be implemented:

else:

print("You got it!")

break

Learn more about Python, here:

https://brainly.com/question/30427047

#SPJ3

Exactly how many times must the merge function call each of read and write to merge two arrays of size n/2 into an array of size n, assuming that n/2 is divisible by b

Answers

Answer:

Exactly how many times must the merge function call each of read and write to merge two arrays of size n/2 into an array of size n, assuming

i don t know

How do you code in computers and technology

Answers

Take online courses.

Watch video tutorials.

Read books and ebooks.

Complete coding projects.

Find a mentor and a community.

Consider enrolling in a coding boot camp.

Based on this, which component would Mr. O be most concerned with when shopping for a new computer? RAM Internal memory Keyboard

Answers

Answer:

The answer is RAM

Explanation:

The random access memory (RAM) in your computer is one of the most important components in determining the overall performance of your system. It saves the information that is currently being used by your computer so that it can be accessed quickly in the future. The greater the number of programs running on your system, the more memory you'll require.

How do you indicate a new paragraph?
<img>content</img>
<em>content</em>
<a>content</a>
<p>content</p>


Answers

Answer:

i think it says it here https://www.peachpit.com/articles/article.aspx?p=674695&seqNum=6

Explanation:

content



p = paragraph
< > is the beginning of your HTML command
> marks the end of your HTML command

Each slide in a presentation has a layout that includes placeholders for certain types of content?
True
False

Answers

Answer:

True

Explaination:

It has layouts that includes placeholders for images, text and lot more

Each slide in a presentation contains a layout that includes placeholders for certain types of content: True.

What is a slide?

A slide simply refers to a single page of a presentation that comprises text-based information or images, which can be used to teach, instruct and educate the audience on a subject matter, topic, event or idea.

In Computer technology, each slide in a presentation contains a layout that includes placeholders for certain types of content such as:

ImagesTextsVideo

Read more on slides here: https://brainly.com/question/26187618

#SPJ2

Need help: what is 10^2

Answers

Answer:

100

Explanation:

Answer:

100

Explanation:

hope it helps

True or False: A sequential search of a list assumes that the list elements are sorted in ascending order.

Answers

True in the answer
Hope this helps

please help me social media marketing

Answers

It’s B, just took test like this it’s was correct

Use Chrome Remote Desktop to create a remote connection to Computer 2. Can you use the utility to view the desktop of Computer 2

Answers

Answer:

Yes, this can be done. You'll need a static IP on your desktop, there is a registry entry that controls the port remote desktop listens on. Change the desktop to port 3390 or some other unused port number.

Has digital transmission changed the nature of communication?

Answers

Answer:

yes , digital transmission really has changed the communication with the new apps and devices and reduced paper work.

Creation of network is known as…?

Answers

Answer:

GRID

Explanation:

HOPE IT HELP ✌️✌️✌️✌️

Answer:

It’s knows as grid

Explanation:

creation of network is known as grid

(Hope this helps can I pls have brainlist (crown)☺️)

A machine learning model is used to tell if an object is an apple or not. It uses 10 pictures of apples and keeps on getting it wrong. Look at the graph below. How can you make the model better?

Answers

Answer:

Add more pictures of apples to the model.

Explanation:

All of the following is true about an artificial neural network, or ANN except: a.It identifies patterns that have not been programmed b.It is an optimization tool c.It is a computer system that can recognize and act on patterns or trends it detects in large sets of data d.It functions similarly to the neural circuitry of the brain

Answers

Answer:

b. It is an optimization tool

Explanation:

All of the following are true about an artificial neural network, or ANN except:

B. It is an optimization tool

According to the given text, we are asked to show the odd one out about the artificial neural network or ANN and its functions in the computer network

As a result of this, we can see that the artificial neural network or ANN helps to identify patterns that have not been programmed, functions similarly to the neural circuitry of the brain, recognizes and acts on patterns or trends it detects in large sets of data, but it is not an optimization tool.

Therefore, the correct answer is option B

Read more here:

https://brainly.com/question/19714088

What characteristics do black holes have?

Answers

For astronomers, the only three measurable physical properties that completely specify the characteristics of a black hole are its mass, its charge, and its angular momentum.

During the maintenance phase of the software development life cycle, the maintenance team takes steps to _____.

Answers

During the maintenance phase of the software development life cycle (SDLC), the maintenance team takes steps to: Assess how the software program is working, so as to keep the system up and running.

Software development life cycle (SDLC) can be defined as a strategic process (methodology) that defines the key steps, phases, or stages for the development (creation) and implementation of high quality software programs (applications).

Generally, there are six (6) main phases involved in the development (creation) of a software program and these include;

PlanningAnalysisDesignDevelopment (coding)DeploymentMaintenance

During the maintenance phase of the software development life cycle (SDLC), the software developers usually take feedback from end users, in order to know and understand what is good or bad about their software programs (applications).

Hence, the maintenance team are saddled with the responsibility of using the feedbacks to assess how a software program is working, so as to keep the system up and running.

Read more: https://brainly.com/question/20813142

help me pls...
Which of the following can a cell contain?

A: a number

B: a word

C: a function

D: all of these​

Answers

Answer:

None

Explanation:

A cell is a living thing it contains a plasma membrane, an outer covering that separates the cell’s interior from its surrounding environment; cytoplasm, consisting of a jelly-like region within the cell in which other cellular components are found; DNA, the genetic material of the cell; and  ribosomes, particles that synthesize proteins

Answer:

D, all of the above :)

what is the basic computer application?​

Answers

Answer:

a computer code

Explanation:

fhfdgkykd

Write a program that reads integers userNum and divNum as input, and output the quotient (userNum divided by divNum). Use a try block to perform the statements. Use a catch block to catch any ArithmeticException and output an exception message with the getMessage() method. Use another catch block to catch any InputMismatchException and output an exception message with the toString() method. Note: ArithmeticException is thrown when a division by zero happens. InputMismatchException is thrown when a user enters a value of different data type than what is defined in the program. Do not include code to throw any exception in the program.

Answers

The program is an illustration of exceptions

Exceptions are used to manage programs from crashing, when they encounter errors.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main {

   public static void main(String[] args) {

       //This creates a Scanner object

       Scanner input = new Scanner(System.in);

       //This gets input for userNum

       int userNum = input.nextInt();

       //This gets input for divNum

       int divNum = input.nextInt();

       //This opens the InputMismatchException try catch

       try {

           //This opens the ArithmeticException try catch

           try{

               //This prints the division of userNum by divNum

               System.out.print(userNum/divNum);

           }

           //If divNum is 0, this catches the exception

           catch (ArithmeticException e){

               System.out.println(e.getMessage());

           }  

        }  

        //If the inputs are not integers, this catches the exception

        catch (InputMismatchException ex) {

           System.out.println(ex.getMessage());

        }

  }

}

Read more about exceptions at:

https://brainly.com/question/6864640

state the differences between selecting a text and highlighting a text as used in computing​

Answers

Explanation:

The difference between highlighting the text and selecting the text is highlighting is when you change the highlight/back color of the text and selecting is when you temporarily highlight it to change a certain part

Prior to the invention of the WIMP interface, users often interacted with systems through _____ interfaces. Group of answer choices Audio Touch Command-based GUI

Answers

Answer:

comment Line Interface

(the command-based option)

Explanation:

Not an expert so the answer might be wrong

Prior to the invention of the WIMP interface, users often interacted with systems through command-line interfaces. Thus, the correct option is C.

What is Command Line Interface?

A command-line interpreter or command-line processor is the device and expert who uses a command-line interface to receive all the commands from a user in the form of lines of texts. This command provides a means of setting parameters for the environment, including invoking of the executables and providing information to them as to what actions they are required to perform.

User interfaces are the commands which may be of three types including command line interface, graphic user interface, and menu-driven interface. Programmers, experienced computer users, or administrators are the people who may utilize a command line interface.

Therefore, the correct option is C.

Learn more about Command-line interface here:

https://brainly.com/question/15704118

#SPJ2

Other Questions
Which of the following is not related to the cell cycle?Cell divisionCell divisionOrganism grothOrganism grothDNA replicationDNA replicationReproduction Make predictions about how changing the mass or speed of an object will change the object's kinetic energy. Help, please science btw Why is Christianity considered a religion?A. Because it is a system of beliefsB. Because it has a large number of followersC. Because it has been around for a number of years D. Because it is important to the government a farm has almond trees and walnut trees. the number of almond trees is 2 third of the number of walnut trees. there are almost 120 almond trees.how many walnut trees are there Solve for x: 1/9 x what = 2 1/8 Translate the sentence into an equation.Three less than the product of 2 and a number is equal to 6.Use the variable x for the unknown number. I need helpl i dont understand why is israel occupying the palestinian territories 6a+3a+8b+a5b3b+6a3 b plus 6 A3b+9a3 b plus 9 A3b+10a3 b plus 10 A13b+9aASAP PLEASE Which two structures are not present in animal cells? 1. Cell Wall and Nucleus 2. Golgi Apparatus and Mitochondria 3.Cell Wall and Chloroplast 4. Endoplasmic Reticulum and Cytoplasm Typing in red ___________________. Graph the line:Y = -4x + 6 A student was marked tardy five different times in a 40 day period. What percent of the time was the student tardy? 127343895+834823= bao nhiu When speaking on behalf of your team in a routine message, you might seek ______ from other team members to make sure they agree with what the message says. the rectangle with a side of length 12cm has a diagonal of 15cm. what is the perimeter of the rectangle? which math expression means "45 less than an unknown number"? A. x- 45B. x + 45C. 45 xD. x * 45 Queremos preparar 250 cm3 de disolucin de sal en agua, con una concentracin de 5 g/l. Qu cantidad de sal debemos disolver en agua? You find out a coworker is expecting a baby. However, you recently discovered that your coworker, who has been a heavy smoker in the past, has not stopped. Using the knowledge you have about the effects of teratogens during pregnancy, what is likely to happen if she continues to smoke while pregnant A local bicycle shop makes $75 on eachModel A bike and $90 on each Model B bike.The overhead costs for making the bikes are$1,350. Write an inequality to show howmany of each bike model must be sold so thecompany avoids losing money.