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
Liula [17]
3 years ago
15

Complete the printtictactoe function with char parameters horizchar and vertchar that prints a tic-tac-toe board with the charac

ters as follows. end with newline. ex: printtictactoe('~', '!') prints:
Computers and Technology
1 answer:
lora16 [44]3 years ago
3 0
Void printtictactoe(char horizchar, char vertchar)
{
int i,j;
int scale = 5;

for(j=0; j<3; j++) {
   for (i = 0; i < scale; i++)
      printf("%*c%*c\n", scale+1, vertchar, scale+1, vertchar);
      if (j < 2) 
         for (i = 0; i < (scale * 3)+2; i++)
             printf("%c", horizchar);
             printf("\n");
    }
}

I left out many braces because of the layout issues with this website. There is a scale factor you can set to the desired size of the board cells!
You might be interested in
What is the purpose of requirements gathering
inn [45]

Answer:

to determine customer needs for a software

application

to reduce over scheduling of project

resources

Explanation:

Requirement gathering and analysis involves a business analyst and the client. And this is done in various phases with the first phase involving the business analyst and the client. And the second phase of software requirement is also being covered, and that is done by a team of System analysts, business analyst, and technical writers are part of both the team. However, both the phases have nothing to do with the bugs, and hence the first and the third part is not the correct part. However, customer needs are noted down, and in the second phase when resource requirement other than technical requirement is studied, partly it is ensured that there is no over the scheduling of the project resources during the project. And hence the second and the fourth options are the correct options.

3 0
3 years ago
Read 2 more answers
What is the opportunity cost of computers when moving from point A to point B? -15 DVDs b. What is the opportunity cost of compu
oee [108]

Answer:

Increasing

Explanation:

Generally in economics, opportunity cost is the benefit that a person, a business, or an investor forgo or missed when he chooses one alternative instead of the other.

Under production, opportunity cost occurs when a producer sacrifice the production of one for the production of another good. Using good X and Y as examples, opportunity cost is measured by the number of units of good Y that the producer gives up in order to produce one or more units of good X.

In the question, the two products used are computers and DVD. The -15, -18 and -20 implies that producing an extra unit of computer by moving from point A to point B, point B to C, and point C to D, 15, 18 and 20 units of DVD respectively have to be given up.

Since 20 is greater than 18 and 18 is also greater than 15, it therefore implies as we produce more computers, the opportunity cost, which are the number of DVDs given up at each point, are increasing.

I wish you the best.

5 0
3 years ago
What is typeface
Mademuasel [1]
I’m so bored and hungry answer is c 3566
4 0
3 years ago
Read 2 more answers
Clarissa is a computer programming consultant. When a client states that they have an extremely complex programming task, which
GuDViN [60]
A bottom up approach because group of a set choices can’t be the answer
7 0
3 years ago
Given a Student class, create a class with following characteristics:
Kay [80]

Answer:

ssume that,

Maximum “students” count can be 10.

*Driver Class*

*Solution class*

import java.util.*;

class Student {

private String name;

private int rollNo;

public String getName() {}

public void setName(String name) {}

public int getRollNo() {}

public void setRollNo(int rollNo) {}

};

class ClassRoom {

private int i;

private Student[] students;

public void addStudent(String name, int rollNo) {}

public Student[] getAllStudents() {}

};

8 0
3 years ago
Other questions:
  • Python Question: write a program that generates a random number in the range of 1 through 100, and asks the user to guess what t
    8·1 answer
  • ​In sql server, the cursor property ____________________ means that the cursor is used for retrieval purposes only.
    9·1 answer
  • As an IT tech for your company, you have been notified that the Windows domain does not seem to be functioning properly. Being f
    7·1 answer
  • How do i skip direct instruction on e2020?
    11·2 answers
  • Write an expression that prints 'You must be rich!' if the variables young and famous are both True. Sample output with inputs:
    9·1 answer
  • What are the ways to search out a number from a tree?
    11·1 answer
  • if you were determining what was expected of you simply by looking at media, what messages would you take away?
    8·2 answers
  • A collection of wiress connecting the CPU with main memory that is used to identify particular location is called
    13·1 answer
  • I’m printing a paper but it told me “printer has a paper jam” what does that mean?
    6·1 answer
  • Write any two rules for writing algorithm​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!