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
Luden
14 days ago
7

A horizontal curve is to be designed for a two-lane road in mountainous terrain. The following data are known: Intersection angl

e: 40 degrees, tangent length = 436.76 ft, station of PI: 2700+10.65, fs = 0.12, e = 0.08. Determine: (a) design speed (b) station of the PC (c) station of the PT (d) deflection angle and chord length to the first 100 ft station

Engineering
You might be interested in
Number pattern Write a recursive method called print Pattern() to output the following number pattern. Given a positive integer
alex41 [359]

Response:

Refer to the explanation

Clarification:

Code:

import java.util.Scanner;

public class NumberPattern {

public static int x, count;

public static void displayNumPattern(int num1, int num2) {

if (num1 > 0 && x == 0) {

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

count++;

displayNumPattern(num1 - num2, num2);

} else {

x = 1;

if (count >= 0) {

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

count--;

if (count < 0) {

System.exit(0);

}

displayNumPattern(num1 + num2, num2);

}

}

}

public static void main(String[] args) {

Scanner scnr = new Scanner(System.in);

int num1;

int num2;

num1 = scnr.nextInt();

num2 = scnr.nextInt();

displayNumPattern(num1, num2);

}

}

See attached example output

3 0
2 months ago
Read 2 more answers
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
2 months ago
Other questions:
  • Write a function: def solution (S) that, given a string S of letters "L" and "R", denoting the types of shoes in line (left or r
    9·3 answers
  • A. Calculate the fraction of atom sites that are vacant for lead at its melting temperature of 327°C (600 K). Assume an energy f
    5·1 answer
  • A manometer measures a pressure difference as 40 inches of water. Take the density of water to be 62.4 lbm/ft3.What is this pres
    13·1 answer
  • An 80-L vessel contains 4 kg of refrigerant-134a at a pressure of 160kPa. Determine (a) the temperature, (b) the quality, (c) th
    11·1 answer
  • Current density is given in cylindrical coordinates as J = −106z1.5az A/m2 in the region 0 ≤ rho ≤ 20 µm; for rho ≥ 20 µm, J = 0
    13·1 answer
  • Subroutines in MIPS Determines the minimum of two integers Functions within the MIPS slides describe how one can use subroutines
    14·1 answer
  • 11 Notează, în caiet, trăsăturile personajelor ce se pot
    13·1 answer
  • A solid steel shaft has to transmit 100 kW at 160 RPM. Taking allowable shear stress at 70 Mpa, find the suitable diameter of th
    15·1 answer
  • Q4. What happen when a steady potential is connected across the end points of the [3] conductor? Illustrate with an example.
    12·1 answer
  • A mechanical system comprises three subsystems in series with reliabilities of 98, 96, and 94 percent. What is the overall relia
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!