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
Vanyuwa [196]
3 years ago
6

Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90)

go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, I-405 services I-5, and I-290 services I-90. Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west. Ex: If the input is: 90 the output is: I-90 is primary, going east/west. Ex: If the input is: 290 the output is: I-290 is auxiliary, serving I-90, going east/west. Ex: If the input is: 0 the output is: 0 is not a valid interstate highway number.It is coded in c++
Engineering
1 answer:
IrinaVladis [17]3 years ago
3 0

Answer:

#include <iostream>

using namespace std;

int main()

{

int inputNumber ;

cout << "Enter an interstate highway number:";

cin >> inputNumber ;

if(inputNumber<=0 || inputNumber >= 1000)

cout << inputNumber << " is not a valid interstate highway number" << endl ;

else{

if(inputNumber > 99){

cout << "I-"<<inputNumber<< " is auxiliary, ";

int temp = inputNumber % 100 ;

cout <<"serving I-"<<temp<<", ";

if(temp%2==0){

cout << "going east/west." << endl;

}

else{

cout << "going north/south." << endl;

}

}

else{

cout << "I-"<<inputNumber<< " is primary, ";

if(inputNumber%2==0){

cout << "going east/west." << endl;

}

else{

cout << "going north/south." << endl;

}

}

}

return 0;

}

Explanation:

  • Check if input number is greater than 99, then display that the input number is auxiliary.
  • Check if remainder of input number/2 is equal to 0, then display that going east/west.
You might be interested in
In a mechanical assembly operation, the first work unit required 7.83 min to complete and the learning rate for mechanical assem
Marianna [84]

Answer:

(a) 6.5774 minutes

(b) 4.3879 minutes

(c) 2.459 minutes

(d) 245.902 minutes

Explanation:

The learning curve model follows the following equation:

Y=aX^b

where Y are the units time to produce X units, and a is the time for assembly the first unit. Additionally, b is calculated as:

b=\frac{ln(r)}{ln(2)}

Where r is the learning rate for mechanical assembly. So, b is equal to:

b=\frac{ln(0.84)}{ln(2)}=-0.2515

Then, the equation is:

Y=7.83X^{-0.2515}

Finally, the unit times to produce the second unit are:

Y=7.83(2)^{-0.2515}=6.5774

The 10th unit:

Y=7.83(10)^{-0.2515}=4.3879

The 100th unit:

Y=7.83(100)^{-0.2515}=2.459

Then, the total cumulative time T to produce 100 units in the Crawford model is calculated as:

T=7.83\frac{(100.5)^{1-0.2515}-(0.5)^{1-0.2515})}{1-0.2515} \\T=323.5383

7 0
3 years ago
Compute the sum with carry-wraparound (sometimes called the one's complement sum) of the following two numbers. Give answer in 8
leonid [27]

Answer:

00100111

Explanation:

Given;

10010110

10010000

Add these like normal binary numbers

10010110

10010000

-------------

(1)00100110

-------------

ignore extra (1) on left since it's a carry.

Add 1 to the above result to make it a 1's complement result

00100110 + 1 = 00100111

Answer: 00100111

3 0
4 years ago
A treatment plant being designed for Cynusoidal City requires an equalization basin to even out flow and BOD variations. The ave
sineoko [7]

Answer:

The size of equalization basin is 6105.6 m³

Explanation:

The average flow is:

flow = ∑flow/n = 9.788/24 = 0.408 m³/s

Where n is the number or observations.

The inflow volume is:

V_{inflow} =Q*t

where t is the time interval

V_{inflow} =0.446(1*3600)=1605m^{3}

in the same way it is calculated the inflow volume for each observation

The outflow volume is:

V_{out} =Q_{out} *t=0.4*(1*3600)=1400m^{3}

The volume of flow is:

ds=V_{inflow} -V_{out} =1605-1400=205m^{3}

in the same way it is calculated the volume of flow for each observation. According to the file attach, the highest volume is 6105.6 m³

Download pdf
6 0
4 years ago
How is everyone doing on this fine January da 12th?
Kay [80]
Great thanks for asking!
4 0
3 years ago
Read 2 more answers
1. There are two categories (shapes) for the Virginia driver's license. The ________________________ shape license represents th
dolphi86 [110]

Answer:

Vertical; horizontal.

Explanation:

The Virginia Department of Motor Vehicles started issuing sets of newly designed driver's licenses to drivers in 2009. Although, the cards that were issued to drivers prior to the introduction of the new cards remained valid until they were expired.

There are two categories (shapes) for the Virginia driver's license. The vertical shape license represents the driver who is under the age of 21, and the horizontal shaped license represents the driver who is over the age of 21.

Additionally, the Virginia's driver license (vertical in shape) issued to drivers who are under the age of 21 has a background image of a dogwood flower while the horizontal shaped license issued to drivers who are over the age of 21 has a background image of the state capitol.

5 0
3 years ago
Other questions:
  • Consider incompressible flow in a circular channel. Derive general expressions for Reynolds number in terms of (a) volume flow r
    5·1 answer
  • Turpentine flows through a 12-nominal schedule 40 pipe. What is the flow rate that corresponds to a Reynolds number of 2000?
    12·1 answer
  • * Write a recursive function that finds the index of s2 in s1. Do not use any * string functions except for .length(), .equals()
    12·1 answer
  • Communication "works" to the degree that a wide variety of information is completely and thoroughly shared among the parties, an
    13·1 answer
  • Durante el segundo trimestre de 2001, Tiger Woods fue el golfista que más dinero ganó en el PGATour. Sus ganancias sumaron un to
    9·1 answer
  • A mechanism is a device that transmits movement so the output movement is different from the input movement. identify three ways
    5·1 answer
  • A piece of corroded steel plate was found in submerged ocean vessel. It was estimated that the area of plate to be ~38 inch 2, a
    10·1 answer
  • Situation: Peter is designing a new hybrid car that functions on solar power. He is currently working on sketches of his design
    7·1 answer
  • What was the reason alloys were used instead of metals like copper, tin, or iron?
    11·1 answer
  • What type of diagrams are used to present the conditions that are available to control outputs based on inputs?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!