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
If the contact surface between the 20-kg block and the ground is smooth, determine the power of force F when t = 4 s. Initially,
grigory [225]

Answer:

The power of force F is 115.2 W

Explanation:

Use following formula

Power  = F x V

F_{H} = F cos0

F_{H} = (30) x 4/5

F_{H} = 24N

Now Calculate V using following formula

V = V_{0} + at

V_{0} = 0

a = F_{H} / m

a = 24N / 20 kg

a = 1.2m / S^{2}

no place value in the formula of V

V = 0 + (1.2)(4)

V = 4.8 m/s

So,

Power = F_{H} x V

Power = 24 x 4.8

Power = 115.2 W

3 0
3 years ago
A friend would like you to build an "electronic eye" for use as a fake security device. The device consists of three lights line
mars1129 [50]

Answer and explanation:

The graphical representation of the electronic eye

The state table showing

the present state

input

Next state and

the output

are shown in the attached file

8 0
3 years ago
Read 2 more answers
Write a statement that calls the recursive method backwardsAlphabet() with parameter startingLetter.
Tcecarenko [31]

Recursion refers to the act of calling a function itself. With the use of this strategy, complex problems can be reduced to more manageable, simpler ones. Recursion might be a little challenging to comprehend. The best method to figure out how it works is to experiment with it.

<h3>How to write a programme by recursive method ?</h3>

The process of making a function call itself is known as recursion. With the use of this strategy, complex problems can be reduced to more manageable, simpler ones. Recursion might be a little challenging to comprehend. Experimenting with it is the most effective way to learn how it functions.

public class Recursive Calls {

public static void backwards Alphabet(char currLetter) {

if (currLetter == 'a') {

System.out.println(currLetter);

}

else {

System.out.print(currLetter + " ");

backwards Alphabet(--currLetter);

}

return;

}

public static void main (String [] args) {

char starting Letter = '-';

starting Letter = 'z';

// Your solution goes here

backwards Alphabet(starting Letter);

return;

}

}

To learn more about recursive method refer to :

brainly.com/question/24167967

#SPJ4

6 0
1 year ago
Which branch of engineering most closely relates to mechanical engineering?
Rus_ich [418]

Answer:

C

Explanation:

I COULD be wrong, i'm not sure but im confident its c

4 0
3 years ago
can someone help me with this engineering mechanics homework, please? I tried to solve it, but I got so confused.​
marishachu [46]

Explanation:

Sum of forces in the x direction:

∑Fx = ma

Rx − 250 N = 0

Rx = 250 N

Sum of forces in the y direction:

∑Fy = ma

Ry − 120 N − 300 N = 0

Ry = 420 N

Sum of forces in the z direction:

∑Fz = ma

Rz − 50 N = 0

Rz = 50 N

Sum of moments about the x axis:

∑τx = Iα

Mx + (-50 N)(0.2 m) + (-120 N)(0.1 m) = 0

Mx = 22 Nm

Sum of moments about the y axis:

∑τy = Iα

My = 0 Nm

Sum of moments about the z axis:

∑τz = Iα

Mz + (250 N)(0.2 m) + (-120 N)(0.16 m) = 0

Mz = -30.8 Nm

6 0
3 years ago
Other questions:
  • A soil had a liquid limit of 44, a plastic limit of 21, and a shrinkage limit of 14. In the summer, the in situ water content wa
    14·1 answer
  • Which of the code pieces below should replace the underline?public class Test{public static void main(String[] args){Test test =
    8·1 answer
  • A cooking pan whose inner diameter is 20 cm is filled with water and covered with a 4-kg lid. If the local atmospheric pressure
    9·2 answers
  • [10] Create a program called SelectionSort.java that implements the Selection Sort algorithm (The Art of Computer Programming -
    10·1 answer
  • A 3-phase induction motor is being driven at a frequency of 80 Hz, and the motor speed is 1000 rpm. How many poles does the moto
    8·1 answer
  • Explain why you chose the final design of your prototype and how it solved the identified need
    9·1 answer
  • The air standard efficiency ofan Otto cycle compared to diesel cycle for thie given compression ratio is: (a) same (b) less (c)
    12·1 answer
  • Think of an employee object. What are several of the possible states that the object may have over time?
    6·1 answer
  • This might count as engineering, I'm not sure as this is IT
    8·1 answer
  • Derive the expression ε=ln(1+e), where ε is the true strain and e is the engineering strain. Note that this expression is not va
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!