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
algol [13]
3 years ago
10

Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print

a space after each seat, including after the last. Ex: numRows = 2 and numColumns = 3 prints:
Engineering
1 answer:
Arada [10]3 years ago
3 0

Answer:

#include <stdio.h>

int main(void)

{

  int Rows = 2;

  int Col = 3;

  int row = 0;

  char colm = 'A';

  char var = 'A';

   for (row = 1; row<=Rows; ++row){

 for (colm = 0; colm<Col; colm++){

    printf("%d", row);

    printf("%c ", var + colm % 3);

 }

}

        ++var;

     }

  }

  printf("\n");

  return 0;

}

You might be interested in
Brainly and points if you want
Tju [1.3M]

Answer:

thank you

Explanation:

have a nice day

8 0
2 years ago
Read 2 more answers
Which option is an example of a physical model?
Burka [1]

Answer:

A. A clay ball with a slice cut out, showing the layers of the earth

Explanation:

6 0
3 years ago
Your program will be a line editor. A line editor is an editor where all operations are performed by entering commands at the co
soldier1979 [14.2K]

Answer:

Java program given below

Explanation:

import java.util.*;

import java.io.*;

public class Lineeditor

{

private static Node head;

 

class Node

{

 int data;

 Node next;

 public Node()

 {data = 0; next = null;}

 public Node(int x, Node n)

 {data = x; next =n;}

}

 

public void Displaylist(Node q)

 {if (q != null)

       {  

        System.out.println(q.data);

         Displaylist(q.next);

       }

 }

 

public void Buildlist()

  {Node q = new Node(0,null);

       head = q;

       String oneLine;

       try{BufferedReader indata = new

                 BufferedReader(new InputStreamReader(System.in)); // read data from terminals

                       System.out.println("Please enter a command or a line of text: ");  

          oneLine = indata.readLine();   // always need the following two lines to read data

         head.data = Integer.parseInt(oneLine);

         for (int i=1; i<=head.data; i++)

         {System.out.println("Please enter another command or a new line of text:");

               oneLine = indata.readLine();

               int num = Integer.parseInt(oneLine);

               Node p = new Node(num,null);

               q.next = p;

               q = p;}

       }catch(Exception e)

       { System.out.println("Error --" + e.toString());}

 }

public static void main(String[] args)

{Lineeditor mylist = new Lineeditor();

 mylist.Buildlist();

 mylist.Displaylist(head);

}

}

7 0
3 years ago
Four race cars are traveling on a 2.5-mile tri-oval track. The four cars are traveling at constant speeds of 195 mi/h, 190 mi/h,
Snezhnost [94]

Answer:

Explanation:

1) The number of times, the car with the speed of  195 mph will cross the given point is equal to 30 minutes divided by the time taken by car to cross the 2.5 miles.

0 .5*195/2.5 = 39

Likewise, the car with the speed of 190 mph crosses the point 38 times; the car with the speed of 185 mph crosses the point 37 times

and car with the speed of 180 mph crosses it 36 times

here, the time-mean speed, vt is given below,

vt = (39*195 +38*190+37*185+36*180)/(39+38+37+38)

= 186.433 mph

and space mean speed is given by,

= (39+38+37+36)/(39/195+38/190+37/1850+36/180)

1) The number of times, the car with the speed of  195 mph will cross the given point is equal to 30 minutes divided by the time taken by car to cross the 2.5 miles.

0 .5*195/2.5 = 39

Likewise, the car with the speed of 190 mph crosses the point 38 times; the car with the speed of 185 mph crosses the point 37 times

and car with the speed of 180 mph crosses it 36 times

here, the time-mean speed, vt is given below,

vt = (39*195 +38*190+37*185+36*180)/(39+38+37+38)

= 186.433 mph

and space mean speed is given by,

= (39+38+37+36)/(39/195+38/190+37/1850+36/180)

=187.5 mph

2)  There would be only four number of observations when the aerial photo is given, therefore time mean speed, vt in that condition will be calculated as

Vt = 195+190+185+180/4

  = 187.5

Vs= 4/(1/195+1/190+1/185+1/180)

= 188.36 mph

2)  There would be only four number of observations when the aerial photo is given, therefore time mean speed, vt, in that condition will be calculated as

Vt = 195+190+185+180/4

  = 187.5

Vs= 4/(1/195+1/190+1/185+1/180)

= 188.36 mph

4 0
3 years ago
The importance of reading a circuit diagram to interpret a wiring diagram?
Nataly [62]

Answer:

The ability to read electrical schematics is a really useful skill to have. To start developing your schematic reading abilities, it's important to memorize the most common schematic symbols. ... You should also be able to get a rough idea of how the circuit works, just by looking at the schematic.

Explanation:

7 0
2 years ago
Other questions:
  • How can endurance athletes best delay muscle fatigue during training? a. By avoiding sports drinks during exercise b. By eating
    6·2 answers
  • Q1. In electronic circuits it is not unusual to encounter currents in the microampere range. Assume a 35 μA current, due to the
    13·1 answer
  • Is normally a large red cable connected to the battery
    11·2 answers
  • The 50mm diameter cylinder is made from Am 1004-T61 magnesium (E = 44.7GPa, a = 26x10^-6/°C)
    10·1 answer
  • Determine the design angle ϕ (0∘≤ϕ≤90 ∘) between struts AB and AC so that the 400 lb horizontal force has a component of 600 lb
    10·1 answer
  • Different metabolic control systems have different characteristic time scales for a control response to be achieved. Match the t
    6·1 answer
  • Fill in the blank to output the quotient of dividing 100 by 42. print (100______42)​
    8·1 answer
  • Do you know who Candice is
    8·2 answers
  • 1. You are asked to write a report about one of the structures that Transportation Engineers
    9·1 answer
  • Whats the difference between GeForce GTX 1060 and Geforce GTX 3060? Is there any big changes to FPS and other settings?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!