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]
3 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]3 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
A 15-ft beam weighing 570 lb is lowered by means of two cables unwinding from overhead cranes. As the beam approaches the ground
7nadin3 [17]

Answer:

I. Tension (cable A) ≈ 6939 lbf

II. Tension (cable B) ≈ 17199 lbf

Explanation:

Let's begin by listing out the data that we were given:

mass of beam (m) = 570 lb, deceleration (cable A) = -20 ft/s², deceleration (cable B) = -2 ft/s²,

g = 32.17405 ft/s²

The tension on an object is given by the product of mass of the object by gravitational force plus/minus the product of mass by acceleration.

Mathematically represented thus:

T = mg + ma

where:

T = tension, m = mass, g = gravitational force,

a = acceleration

I. For Cable A, we have:

T = mg + ma = (570 * 32.17405) + [570 * (-20)]

T = 18339.2085 - 11400 = 6939.2085

T ≈ 6939 lbf

II. For Cable B, we have:

T = mg + ma = (570 * 32.17405) + [570 * (-2)]

T = 18339.2085 - 1140 = 17199.2085

T ≈ 17199 lbf

4 0
4 years ago
According to the amortization table, Demarco and Tanya will pay a total of in interest over the life of their loan.
Ymorist [56]

Answer:

(Interest rate/number of payments)*$170000= interest for the first month.

Interest amounts for all the months of repayment plus $170000=Total loan cost

Explanation:

Interest is the amount you pay for taking a loan from a bank on top of the original amount borrowed.

Factors affecting how much interest is paid are; the principal amount, the loan terms, repayment schedule, the repayment amount and the rate of interest.

The interest paid=(rate of interest/number of payments to make)*principal amount borrowed.

You divide the interest with number of payments done in a year where monthly are divided by 12.Multiplying it by loan balance in the first month which is your principal amount gives the interest rate to pay for that month.

You new loan balance will be= Principal -(repayment-interest)

Do this for the period the loan should take.

Add all the interest amount to original borrowed amount to get total cost of the loan after the period of time.

8 0
3 years ago
Read 2 more answers
For the unity negative feedback system G(s) = K(s+6)/ (s + 1)(s + 2)(s + 5) It's known that the system is operating with a domin
Ad libitum [116K]

Answer:The awnser is 5

Explanation:Just divide all of it

4 0
3 years ago
Viscous effects are negligible outside of the hydrodynamic boundary layer. (3 points) a. True b. False
Valentin [98]

Answer:

I would say false but I am not for sure

8 0
3 years ago
What is the metal removal rate when a 2 in-diameter hole 3.5 in deep is drilled in 1020 steel at cutting speed of 120 fpm with a
Studentka2010 [4]

Answer:

a) the metal removal rate is 14.4 in³/min

b) the cutting time is 0.98 min

Explanation:

Given the data from the question

first we find the rpm for the spindle of the drilling tool, using the equation

Ns = 12V/πD

V is the cutting speed(120 fpm) and D is the diameter of the hole( 2 in)

so we substitute

Ns = 12 × 120 / π2

Ns = 1440 / 6.2831

Ns = 229.18 rmp

Now we find the metal removal rate using the equation

MRR = (πD²/4) Fr × Ns

Fr is the feed rate( 0.02 ipr ),

so we substitute

MRR = ((π × 2²)/4) × 0.02 × 229.18

MRR = 14.3998 ≈ 14.4 in³/min

Therefore the metal removal rate is 14.4 in³/min

Next we find the allowance for approach of the tip of the drill

A = D/2

A = 2/2

= 1 in

now find the time required to drill the hole

Tm = (L + A) / (Fr × Ns)

Lis the the depth of the hole( 3.5 in)

so we substitute our values

Tm = (3.5 + 1) / (0.02 × 229.18  )

Tm = 4.5 / 4.5836

Tm = 0.98 min

Therefore the cutting time is 0.98 min

8 0
2 years ago
Other questions:
  • Water at 20 °C is flowing with velocity of 0.5 m/s between two parallel flat plates placed 1 cm apart. Determine the distances f
    5·1 answer
  • The component of a fluid system where a fluid is stored, but not under pressure, is called a container.
    5·1 answer
  • In the well-insulated trans-Alaska pipeline, the high viscosity of the oil and long distances cause significant pressure drops,
    12·1 answer
  • A reversible refrigeration cycle operates between cold and hot reservoirs at temperatures TC and TH, respectively. (a) If the co
    6·1 answer
  • Employees cannot be held legally responsible for an environmental violation.
    14·1 answer
  • The term _______________refers to the science of using fluids to perform work.
    9·2 answers
  • I want to solve the question
    11·1 answer
  • Welding and cutting done in confined spaces must
    5·2 answers
  • How to plot 0.45 gradation chart for sieve analysis ?
    12·1 answer
  • Question is written in following attached screenshot.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!