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
Sati [7]
4 years ago
7

Write a program that prompts the user to enter two characters and display the corresponding major and year status. The first cha

racter indicates the major. And the second character is a number character 1, 2, 3, 4, which indicates whether a student is a freshman, sophomore, junior, or senior. We consider only the following majors:
B (or b): Biology

C (or c): Computer Science

I (or i): Information Technology and Systems

Note that your program needs to let the user know if the major or year is invalid. Also, your program should be case-insensitive: your program should tell "Biology" either user type ‘b’ or ‘B’.

Engineering
1 answer:
lara31 [8.8K]4 years ago
7 0

Answer:

Following is attached the images for source code and the result according to given question.

I hope it will help you a lot!

Explanation:

You might be interested in
The ice on the rear window of an automobile is defrosted by attaching a thin, transparent, film type heating element to its inne
pshichka [43]

Answer:

A)Q = 1208.33 W/m²

B)K = 0.138 W/m.K

Explanation:

We are given;

inside air temperature;T_∞,i =25 °C = 25 + 273 = 298K

outside air temperature;T_∞,o = -10°C = - 10 + 273 = 263K

Inner surface temperature;T_s,i = 15 °C = 15 + 273 = 288K

Thickness, L = 4mm = 0.004m

convection heat transfer coefficient ; hi = 25 W/(m².K)

A) From an energy balance at the inner surface and the thermal circuit, the electric power required per unit window area is given as;

Q = [(T_s,i - T_∞,o)/((L/k) + (1/hi))] - [(T_∞,o - T_s,i)/(1/hi)]

Plugging in the relevant values with k for glass as 1.4 W/m.k, we have;

Q = [(288 - 263)/((0.004/1.4) + (1/25))] - [(263 - 288)/(1/25)]

Q = 583.33 + 625

Q = 1208.33 W/m²

B) The formula for thermal conductivity is;

K = (QL)/(AΔT)

Where;

K is the thermal conductivity in W/m.K

Q is the amount of heat transferred through the material

L is the distance between the two isothermal planes

A is the area of the surface in square meters

ΔT is the difference in temperature in Kelvin

ΔT = 298K - 263K = 35K

Now, since we have value of heat per unit area to be Q = 1208.33 W/m², let's rearrange the equation to reflect that; Thus ;

k = (Q/A) x (L/ΔT)

K = 1208.33 x (0.004/35)

K = 0.138 W/m.K

5 0
3 years ago
1 . How are encoders used in the measurement of speed? Explain the encoder with a neat diagram.
erma4kov [3.2K]

Answer:

wjjwjejejjejejejjrjrjrjrjrjrjrjrjrjrjjrjrnrnrnrnnrnrnrnrnrnnffnfnf

6 0
3 years ago
what is the expected life 1 inch diameter bar machined from AISI 1020 CD Steel is subjected to alternating bending stress betwee
Alexeev081 [22]

Answer:

1.287 *10⁷ cycles.

Explanation:

See attached pictures.

3 0
3 years ago
Nicholas wants to verify whether a file is a hard link to a file within the same directory. Which of the following commands coul
garri49 [273]

Answer:

d

Explanation:

Is is used to display files in a directory.  Is-l is used to see total information about a file including how many hardlink files are there in the directory.

5 0
4 years ago
May you tell me the meaning of "Tolerance is a bitter tree, but its fruit is sweet "by Aristotle
trapecia [35]

Answer:

“Patience is bitter, but its fruit is sweet. With patience you can bear up under any adversity and survive any defeat. With patience you can control your destiny and have what you will. Patience is the key to contentment, for you and for those who must live with you. To be brave without patience can kill you.

Explanation:

Aristotle’s Ethical Doctrine of the Mean. According to Aristotle’s ethical rule about the Golden Mean, to use a thing with virtue is a kind of moderation, as it leads the particular thing being in a good condition, and allows for its functions to be performed in a proper manner.

7 0
3 years ago
Other questions:
  • A structure that extends from a bridge to<br>form a firm foundation​
    6·2 answers
  • An FCC iron–carbon alloy initially containing 0.35 wt% C is exposed to an oxygen-rich and virtually carbon-free atmosphere at 14
    11·1 answer
  • Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per li
    15·1 answer
  • Water flows at a rate of 0.040 m3/s in a 0.12-m-diameter pipe that contains a sudden contraction to a 0.06-m-diameter pipe. Dete
    14·1 answer
  • A cylindrical specimen of a metal alloy 48.0 mm long and 9.72 mm in diameter is stressed in tension. A true stress of 368 MPa ca
    12·1 answer
  • In mechanics of materials, the bending stress of a beam in bending can be determined by the equation σ = MyIwhere expressed in t
    7·1 answer
  • N DevOps, high levels of automation are expected, which increases productivity. Which fact illustrates this productivity increas
    8·1 answer
  • Applications of fleming hand rule
    6·1 answer
  • Select three ways that fluid power systems are becoming more efficient.
    9·2 answers
  • A traffic flow has density 61 veh/km when the speed is 59 veh/hr. If a flow has a jam density of 122 veh/km, what is the maximum
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!