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
IRINA_888 [86]
4 years ago
10

d. Assume qualified is already declared. Code a fall-through switch statement that will print the following messages: When quali

fied is 1 and 2: You are a student or teacher and you get a 10% discount. When qualified is 3 and 4: You are a senior citizen or military and you get a 12% discount. When qualified is any other value: Sorry, youre not eligible for a discount.
Engineering
1 answer:
vovikov84 [41]4 years ago
8 0
This is pseudo code. Change it according to the programming language you're using
switch (qualified){
case 1:
case 2: print You are a student or teacher and you get a 10% discount.
break;
case 3:
case 4: print You are a senior citizen or military and you get a 12% discount.
break;
default: print Sorry, your not eligible for a discount.
}
You might be interested in
A typical aircraft fuselage structure would be capable of carrying torsion moment. a)True b)- False
Taya2010 [7]

Answer:

True

Explanation:

An aircraft is subject to 3 primary rotations

1) About longitudinal axis known as rolling

2) About lateral axis known as known as pitching

3) About the vertical axis known as yawing

The rolling of the aircraft induces torsion in the body of the aircraft thus the fuselage structure should be capable of carrying torsion

8 0
3 years ago
I am trying to create a line of code to calculate distance between two points. (distance=[tex]\sqrt{ (x2-x1)^2+(y2-y1)^2}) My li
k0ka [10]

Answer:

point_dist = math.sqrt((math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))

Explanation:

The distance formula is the difference of the x coordinates squared, plus the difference of the y coordinates squared, all square rooted.  For the general case, it appears you simply need to change how you have written the code.

point_dist = math.sqrt((math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))

Note, by moving the 2 inside of the pow function, you have provided the second argument that it is requesting.

You were close with your initial attempt, you just had a parenthesis after x1 and y1 when you should not have.

Cheers.

6 0
3 years ago
What is an example of a traditional career?
vladimir2022 [97]

Answer:

C, Teacher

Explanation:

7 0
3 years ago
Read 2 more answers
How does the clearance volume affect the efficiency of the Otto cycle?
eduard

Answer:

Explanation:

A smaller clearance volume means a higher compression. A higher compression means better thermal efficiency. However a compression ratio too high might be troublesome, as it can cause accidental ignition of the fuel-air mix. This is the reason why Otto cycle engines have lower compressions that Diesel engines. In a Diesel engine the mix ignites by compression instead of a spark.

7 0
3 years ago
Advantages of using metal
Contact [7]

Answer:

Metals have high melting points thus unlikely to degrade when temperatures increase, they can be fabricated and are cost effective due to availability.

Explanation:

Aluminum is the most abundant in the Earth's crust with good thermal and electric properties. It is soft, malleable ,ductile and lighter making it a vital metal in construction industry. An alloy of copper and tin, bronze is a better connector of heat and electricity ,commonly used in automobile industry for bearings and springs production. Steel a carbon alloy has applications in forging and automotive.

4 0
3 years ago
Other questions:
  • The number of weaving errors in a twenty-foot by ten-foot roll of carpet has a mean of 0.8 What is the probability of observing
    6·1 answer
  • how to calculate the torque when a force is applied on a cog? explain the step-by-step and provide an illustration/diagram. Can
    15·1 answer
  • Which career related to architecture deals with the planning of entire cities and focuses on designing and arranging buildings,
    9·2 answers
  • Suppose that the voltage is reduced by 10 percent (to 90 VV). By what percentage is the power reduced? Assume that the resistanc
    10·1 answer
  • A multilane highway (two lanes in each direction) is on level terrain. The free-flow speed has been measured at 45 mi/h. The pea
    5·1 answer
  • name the process by which mild steel can be converted into high carbon steel and explain it briefly ?​
    12·1 answer
  • Filler metals range in diameter from 1/16" to 3/8"*<br> O<br> true<br> O False
    15·1 answer
  • What is the difference between a series circuit and a parallel circuit?
    11·2 answers
  • Which of the following about valence electron is correct?
    10·2 answers
  • All of these are true about a magnesium part EXCEPT that it:
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!