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
lys-0071 [83]
3 years ago
7

Extra Credit: The Linc (parking lot and stadium)In celebration of the upcoming Super Bowl, for a maximum 10 points of extra cred

it, you may try to reproduce the ASCII Art shown below of Lincoln Stadium, home of the Philadelphia Eagles. You should still include a class constant for the SIZE; in Dr. Yates' implementation, the SIZE value that produces the picture below is 4, and works for any size >= 2. You must include loops and nested loops to make this work correctly; you CANNOT simply include a separate println statement for each line of the drawing. You will get the full extra credit points only if you duplicate the drawing EXACTLY. (Note: this is a fairly tricky figure to do right.) The parking lot alone is worth a maximum of 2 points.
Engineering
1 answer:
Sidana [21]3 years ago
8 0

Answer:

Explanation:

// Below is the code to draw parking lot only , i have also put the o/p of code.

import java.util.*;

import java.lang.*;

import java.io.*;

public class Linc

{

static int size=4;

static int numBoxes = 1; // one row.

static int height =(int) Math.pow(size, 2); //Just how many | will it have.

static int width = 2; // two boxes in a row

public static void main (String[] args) throws java.lang.Exception

{

top();

printHeight();

}

  public static void top(){

  for(int i = 0; i <= numBoxes*width;i++)

  {

  if(i%width == 0) {//When this happens we're in a new box.

      System.out.print(" ");

      System.out.print("____________");

  }

  else

  System.out.print(" ");

  }

  System.out.println(); //Move to next line.

 

  }

  public static void printHeight(){

  for(int j = 0; j < height;j++){

  for(int i = 0; i <= numBoxes*width;i++)

  {

  if(i%width == 0) {

  System.out.print("|"); //Whenever this happens we're in a new box.

  System.out.print("____________");

     

  }

  else

  System.out.print(" ");

 

  }

  System.out.print("|");

  System.out.println(); //Move to next line.

  }

  }

}

You might be interested in
Prove the following languages are nonregular, once using the pumping lemma and once using the Myhill-Nerode theorem. When using
VashaNatasha [74]

Answer:

For any string, we use s = xyz

Explanation:

The pumping lemma says that for any string s in the language, with length greater than the pumping length p, we can write s = xyz with |xy| ≤ p, such that xyi z is also in the language for every i ≥ 0. For the given language, we can take p = 2.

Here are the cases:

  • Consider any string a i b j c k in the language. If i = 1 or i > 2, we take x = \epsilon   and y = a. If i = 1, we must have j = k and adding any number of a’s still preserves the membership in the language. For i > 2, all strings obtained by pumping y as defined above, have two or more a’s and hence are always in the language.
  • For i = 2, we can take    and y = aa. Since the strings obtained by pumping in this case always have an even number of a’s, they are all in the language.
  • Finally, for the case i = 0, we take x = \epsilon  , and y = b if j > 0 and y = c otherwise. Since strings of the form b j c k are always in the language, we satisfy the conditions of the pumping lemma in this case as well.
8 0
2 years ago
Explain the LWD process why is it important in drilling operations?
barxatty [35]

Answer:

Logging while drilling (LWD) is a technique of conveying well logging tools into the well borehole downhole as part of the bottom hole assembly (BHA). ... In these situations, the LWD measurement ensures that some measurement of the subsurface is captured in the event that wireline operations are not possible.

Explanation:

pls mark brainliest

6 0
2 years ago
A piston-cylinder apparatus has a piston of mass 2kg and diameterof
iragen [17]

Answer:

M =2.33 kg

Explanation:

given data:

mass of piston - 2kg

diameter of piston is 10 cm

height of water 30 cm

atmospheric pressure 101 kPa

water temperature = 50°C

Density of water at 50 degree celcius is 988kg/m^3

volume of cylinder is  V = A \times h

                                       = \pi r^2 \times h

                                       = \pi 0.05^2\times 0.3

mass of available in the given container is

M = V\times d

  = volume \times density

= \pi 0.05^2\times 0.3 \times 988

M =2.33 kg

6 0
3 years ago
How wold you classify the earliest examples of S.T.E.M discoveries provided in this lesson?
Gnoma [55]

Answer:

the answer is C

Explanation:

8 0
2 years ago
For each of the resistors shown below, use Ohm's law to calculate the unknown quantity, Be sure to put your answer in proper eng
daser333 [38]

Answer:

the hurts my brain sorry bud cant help

Explanation:

6 0
2 years ago
Other questions:
  • Is someone an engineer that can help me?plz
    11·1 answer
  • A rectangular open channel is 20 ft wide and has a bed slope of 0.007. Manning's roughness coefficient n is 0.03. It is in unifo
    10·1 answer
  • Suppose that we have a 1000 pF parallel-plate capacitor with air dielectric charged to 1000 V. The capacitors terminals are open
    13·1 answer
  • . (20 pts) A horizontal cylindrical pipe (k = 10 W/m·K) has an outer diameter of 15 cm and a wall thickness of 5 cm. The pipe is
    14·1 answer
  • You may have to_______
    14·1 answer
  • A Styrofoam cup (k = 0.010 W/(m∙ o C)) has cross-sectional area (A) of 3.0 x 10 −2m 2 . The cup is 0.589 cm thick (L). The tempe
    12·1 answer
  • Question Completion Status:
    6·1 answer
  • Concrete ___ support and anchor the bottom of steel columns and wood post, which support beams that are pare of framing system o
    11·1 answer
  • Why is “land-use planning” an appropriate name for urban planning?
    8·2 answers
  • Why dose bob not let humans touch him one and only Ivan
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!