answer.
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
Nadusha1986
19 days ago
9

A Coca Cola can with diameter 62 mm and wall thickness 300 um has an internal pressure of 100 kPa. Calculate the principal stres

ses at a point on the cylindrical surface of the can far from its ends.
Engineering
You might be interested in
Multiply each element in origList with the corresponding value in offsetAmount. Print each product followed by a space.Ex: If or
Kisachek [356]

Answer:

Here is the JAVA program:

import java.util.Scanner; // to take input from user

public class VectorElementOperations {

public static void main(String[] args) {

final int NUM_VALS = 4; // size is fixed to 4 assigned to NUM_VALS

int[] origList = new int[NUM_VALS];

int[] offsetAmount = new int[NUM_VALS];

int i;

//two arrays origList[] and offsetAmount[] get assigned their values

origList[0] = 20;

origList[1] = 30;

origList[2] = 40;

origList[3] = 50;

offsetAmount[0] = 4;

offsetAmount[1] = 6;

offsetAmount[2] = 2;

offsetAmount[3] = 8;

String product=""; // variable for storing the product results

for(i = 0; i <= origList.length - 1; i++){

/* iterates from 0 to the end of origList */

/* multiplies each origList entry with the corresponding offsetAmount entry, stores results in product */

product+= Integer.toString(origList[i] *= offsetAmount[i]) + " "; }

System.out.println(product); }}

Output:

80 180 80 400

Explanation:

If you wish to print the product of origList alongside offsetAmount values vertically, this can be done in this manner:

import java.util.Scanner;

public class VectorElementOperations {

public static void main(String[] args) {

final int NUM_VALS = 4;

int[] origList = new int[NUM_VALS];

int[] offsetAmount = new int[NUM_VALS];

int i;

origList[0] = 20;

origList[1] = 30;

origList[2] = 40;

origList[3] = 50;

offsetAmount[0] = 4;

offsetAmount[1] = 6;

offsetAmount[2] = 2;

offsetAmount[3] = 8;

for(i = 0; i <= origList.length - 1; i++){

origList[i] *= offsetAmount[i];

System.out.println(origList[i]);}

}}

Output:

80

180

80

400

The program is shown with the output as a screenshot along with the example's input.

8 0
3 months ago
Given num_rows and num_cols, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print
Viktor [391]

Answer:

This is the solution code in Python:

  1. alphabets = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J']
  2. user_input = input("Enter number of rows and columns: ")
  3. myArr = user_input.split(" ")
  4. num_rows = int(myArr[0])
  5. num_cols = int(myArr[1])
  6. seats = []
  7. for i in range(num_rows):
  8. row = []
  9. for j in range(num_cols):
  10. row.append(alphabets[j])
  11. seats.append(row)
  12. output = ""
  13. for i in range(len(seats)):
  14. for j in range(len(seats[i])):
  15. output += str(i + 1) + seats[i][j] + " "
  16. print(output)

Explanation:

Initially, we create a small list of alphabets from A to J (Line 1).

We then request the user to enter the number of rows and columns (Line 3). Given that the input comes as a string (e.g., "2 3"), we utilize the split() method to separate the numbers into individual items in a list (Line 4). The first item (row number) is assigned to variable num_rows, while the second item (column number) goes to num_cols.

Subsequently, we construct the seats list with a nested for-loop (Lines 10-15). Once the seats list is formed, another nested for-loop generates the required output string as per the question (Lines 19-21).

Finally, the output is printed (Line 23). For example, an input of 2 3 results in the output:

1A 1B 1C 2A 2B 2C

8 0
4 months ago
A distância entre duas retas reversas é a medida de um segmento orientado que *?
alex41 [359]
Fatec – SP) Let A be a point on line r, which is contained within plane α. It holds true that: a) there is exactly one line that is perpendicular to line r at point A. b) there exists one unique line, not lying in plane α, that is parallel to line r. c) there are infinitely many distinct planes that are parallel to plane α and contain line r. d) there are infinitely many distinct planes that are perpendicular to plane α and contain line r. e) there are countless distinct lines contained within plane α that are parallel to line r.
8 0
2 months ago
Interlocking stacked material is done by​ _____.
Mrrafil [318]

Sagot:

B

Paliwanag:

3 0
3 months ago
Read 2 more answers
Other questions:
  • The in situ moist unit weight of a soil is 17.3 kN/m3 and the moisture content is 16%. The specific gravity of soil solids is 2.
    12·1 answer
  • 4.68 Steam enters a turbine in a vapor power plant operating at steady state at 560°C, 80 bar, and exits as a saturated vapor at
    15·1 answer
  • A murder in a downtown office building has been widely publicized. You’re a police detective and receive a phone call from a dig
    9·2 answers
  • 100.0 mL of 4.0°C water is heated until its temperature is 37°C. If the specific heat of water is 4.18 J/g°C, calculate the amou
    8·1 answer
  • A composite wall consists of 20 mm thick steel plate backed by insulation brick (k = 0.39 W/mK) of 50 cm thickness and overlaid
    6·1 answer
  • An observer at sea level does not hear an aircraft that is flying at an altitude of 7000 m until it is a distance of 13 km from
    6·1 answer
  • Water circulates throughout a house in a hot water heating system. If the water is pumped at a speed of 0.50m/s through a 4.0-cm
    5·1 answer
  • A converging–diverging nozzle is designed to produce a Mach number of 2.5 with air. (a) What operating pressure ratio (prec/pt i
    10·1 answer
  • According to the zeroth law of thermodynamics, which of the following cannot occur?
    7·1 answer
  • Q3: Summation Write a recursive implementation of summation, which takes a positive integer n and a function term. It applies te
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!