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
s2008m [1.1K]
1 year ago
13

A certain college classifies students according to credits earned. A studentwith less than 7 credits is a Freshman. At least 7 c

redits are required to bea Sophomore, 16 to be a Junior and 26 to be classified as a Senior. Write aprogram that calculates class standing from the number of credits earned.

Mathematics
1 answer:
FinnZ [79.3K]1 year ago
5 0

Answer and explanation:

Here is code:

credit = int(input("Enter credits : "))

if credit < 7:

print("You are a Freshman")

elif credit >= 7 and credit < 16:

print("You are a Sophomore")

elif credit >= 16 and credit < 26:

print("You are a Junior")

elif credit >= 26:

print("You are a Senior")

Output: check image

You might be interested in
An open-top rectangular box is being constructed to hold a volume of 150 in3. The base of the box is made from a material costin
Oksanka [162]

Answer:

minimum cost of construction box are x = x = 3.4199 in and y = 10.2598 in and z = 4.2750 in

Step-by-step explanation:

given data

volume = 150 in³

base material costing = 5 cents/in²

front cost = 10 cents/in²

remainder sides cost = 2 cents/in²

to find out

the dimensions that will minimize the cost

solution

we consider here length = x and breadth = y and height = z

and

area of base = xy

area of front = xz

and area of remaining side = xz + 2yz     .....................1

so

cost of base will be = 5xy

cost of front = 10xz

cost of remaining side = 2 ( xz+ 2yz)        

and

total cost will be

total cost TC = 5xy + 10xz + 2 ( xz+ 2yz)  

total cost TC = 5xy + 10xz + 2xz+ 4yz

total cost TC = 5xy + 12xz + 4yz                  ....................2

and total volume will be = xyz

150 = xyz

z = \frac{150}{xy}                  .......................3

now put z value in equation 2

total cost TC = 5xy + 12xz + 4yz    

total cost TC = 5xy + 12x\frac{150}{xy} + 4y\frac{150}{xy}

total cost TC = 5xy + \frac{1800}{y} + \frac{600}{x}     ...........4

now differentiate TC w.r.t x and y

TC (x) = 5y - \frac{600}{x^2}

TC (x) = 5x - \frac{1800}{y^2}

now equating with 0 these

5y - \frac{600}{x^2} = 0

x² = \frac{120}{y}    

and

5x - \frac{1800}{y^2} = 0

x = \frac{360}{y^2}    

solve we get

y = 10.2598

x = 3.4199

now put x and y value in equation 3

z = \frac{150}{xy}  

z = \frac{150}{3.4199*10.2598}  

z = 4.2750

so minimum cost of construction box are x = x = 3.4199 in and y = 10.2598 in and z = 4.2750 in

4 0
2 years ago
class consists of 55% boys and 45% girls. It is observed that 25% of the class are boys and scored an A on the test, and 35% of
Pepsi [2]
If you add 55% and 45% the total is 100%   so 45/100 are girls.  35% of the girls scored and A  so 35/45  is the probability that it is a girl chosen or 7/9. the probability is 7 out of 9
6 0
2 years ago
Read 2 more answers
2 cities have nearly the same north-south line 90° W. The latitude of the first city is 23°N, the latitude of the second city is
Ivan

Answer:

The cities are approximately 1452 km apart

Step-by-step explanation:

The two cities are on the same Longitude 90°W therefore the distance between them is on a great circle

Latitude of the first city = 23°N

Latitude of the second city = 36° N

Because their latitude are on the same polar axis, we subtract to get the angular difference

Angular Difference = 36 -23 =13°

Distance= \frac{\alpha}{360} X 2\pi R

where \alpha = Angular Difference, R= radius of the earth

Distance= \frac{13}{360} X 2\pi X 6400=1452.11km

The cities are approximately 1452 km apart

4 0
2 years ago
The following data show the midterm and final exam scores in an English writing class. Student 1 2 3 4 5 6 7 8 9 10 11 12 Midter
tester [92]

Answer:

The co variance of the midterm and final exam scores is 58.76.

Step-by-step explanation:

The formula to compute the sample co variance is:

Cov(x,y)=\frac{\sum(X-Mean\ of\ X)(Y-Mean\ of\ Y)}{n-1}

The values are computed in the table below.

Compute the co variance as follows:

Cov(x,y)=\frac{\sum(X-Mean\ of\ X)(Y-Mean\ of\ Y)}{n-1}\\=\frac{646.33}{12-1}\\ =58.76

Thus, the co variance of the midterm and final exam scores is 58.76.

7 0
1 year ago
Colton wrote a ratio comparing the number of sports video games that he owns to the number of driving video games that he owns a
nordsb [41]

D. If you were to say the given ratio aloud, it would go something like this: 4 to 3, 4,3 or 4 sports video games to 3 driving ones. So, the answer is 4 to 3, or answer D.

6 0
1 year ago
Other questions:
  • syeda has finished 20% of her math assignment the assignment includes 50 problems how many problems has syeda compleated
    15·1 answer
  • These tables represent a quadratic function with a vertex at (0,3) What us the average rate of change from the interval from x=7
    5·1 answer
  • According to the Rational Root Theorem, which statement about f(x) = 66x4 – 2x3 + 11x2 + 35 is true? Any rational root of f(x) i
    8·2 answers
  • Order the numbers from smallest to largest: 1.448, 2 , 14 10 , and 1.22, A) 14 10 , 2 , 1.22, 1.448 B) 14 10 , 1.22, 1.448, 2 C)
    13·2 answers
  • a new coffee shop can hold no more than 50 seats the owner wants at least 20 of the seats to be stools and the remaining seats t
    9·2 answers
  • The indicated function y1(x) is a solution of the given differential equation. Use reduction of order or formula (5) in Section
    15·1 answer
  • 1) Proiectiile catetelor unui triunghi dreptunghic pe ipotenuza au lungimile 9 cm si 25 cm. Aflati lungimea inaltimii din varful
    15·1 answer
  • 8. Derek was observing the change in water levels in his fish pond. The table below show the change in water levels of the fish
    8·1 answer
  • In ΔEFG, the measure of ∠G=90°, GF = 33, FE = 65, and EG = 56. What ratio represents the sine of ∠F?
    8·1 answer
  • Match each transformation of Rx) with its description.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!