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
write the sql code to generate the total hours worked and the total charges made by all employees . the results are shown in fig
luda_lava [24]

Answer:

Select SUM(HOURS), SUM(CHARGES) from employees

Explanation:

The table structure is not given. So, I will assume that the table name is "employees", the columns to retrieve are "hours" and "charges"

Having said that, the function to retrieve the total of column is the sum() function.

So, the query is as follows:

Select ----> This means that the query is to retrieve from the table

SUM(HOURS), SUM(CHARGES) --- This represent the records to retrieve

from employees ---- This represents the table to retrieve from.

8 0
3 years ago
An individual who hacks the public telephone network to make free calls or disrupt services is called a ____.
Slav-nsk [51]

Answer:

The answer is "Phreaker".

Explanation:

A "Phreak" is one who secretly hacks into another telephone network, it is usually to make individual long-distance calling or to access the telephone lines.  

  • Sometimes, it involves anyone, who breaches or wants to break any information security.
  • It is used to receive unlimited calls and texts or high-cost contact details, that's why the Phreaker is the correct answer.
3 0
4 years ago
Are used for mechanical power transmission over long distances
madam [21]

Answer:

D. Chain and Sprockets

Explanation:

Chains and sprockets are power transmission tools. The roller chain is connected to a toothed wheel which is the sprocket. The combination provides mechanical power to the wheels of vehicles.

An advantage they possess is their ability to transmit mechanical power over both short and long distances. They have a high degree of efficiency but they require constant lubrication. They also produce noise during operation.

4 0
3 years ago
Name at least four factors that are looked at when a lender considers whether you are creditworthy.
emmasim [6.3K]
Sepa la verga cx I don't even know this
6 0
3 years ago
6. Before cleaning your electronics, you should turn off the power to the device.<br> True<br> False
Fudgin [204]

Answer:

True

Explanation:

If you leave the device on while cleaning, you risk electrocution.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Technician A says one disadvantage of fiber optic cables is that they are more expensive and very heavy. Technician B says one d
    6·1 answer
  • Assign testResult with 1 if either geneticMarkerA is 1 or geneticMarkerB is 1. If geneticMarkerA and geneticMarkerB are both 1,
    11·1 answer
  • Where can information on metalworking occupations be found?
    14·2 answers
  • A baseball diamond has an area of 3,600 square feet. What is the distance between each base? How far will a runner run around th
    9·1 answer
  • Help please, it would be much appreciated!
    11·1 answer
  • How am i supposed to add subtitles to a video without have to waist money???
    7·1 answer
  • The symbol is used to indicate that a line of text is a comment.
    10·2 answers
  • Have a good christmas. this might not be homework, but i just want everyone to have a good week
    6·2 answers
  • which data representation system is based on the digits 0-9 and is mostly easily interpreted In real wrold situations​
    10·1 answer
  • Directions: Give the shortcut key for the following commands: 1. Open 2. Save 3. New document 4. Copy 5. Undo 6. Redo 7. Paste 8
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!