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
Anna35 [415]
4 years ago
13

Your school is hosting a diving contest, and they need a programmer to work on the scoreboard! Your job is to calculate each div

er's total after the three judges hold up their individual scores. Write the function calculate_score which takes a tuple of three numbers from 0 to 10 and calculates the sum. A perfect dive is worth 30 points, a belly flop is worth 0. For example: calculate_score((10, 10, 10)) # => 30 calculate_score((9, 9, 6)) # => 24
Computers and Technology
1 answer:
prohojiy [21]4 years ago
3 0

Answer:

def calculate_score(setss):

    num1, num2, num3= setss

    if num1 >= 0 and num1 <=10 and num2>= 0 and num2<=10 and num3>= 0 and num3<=10:

         print(num1+ num2+num3)

    else:

         print("Out of range")

Explanation:

<em>I've added the full source code as an attachment, where I used comments as explanation</em>

Download txt
You might be interested in
Which technique should you use to indent a paragraph or create additional spaces between words on an html page?
Fofino [41]
You should insert non-breaking spaces to indent a paragraph or create additional spaces between words on an html page.
4 0
3 years ago
Provide the definition of an abstract class named DesktopComponent that contains the following:
Bess [88]

package mypackage; // Whatever package this should be in.

public abstract class DesktopComponent {

   

   private String type;

   // Alternatively you may want a final variable.

   // private final String type;

   

   public DesktopComponent(String type)

   {

       this.type = type;

   }

   

   abstract void onClick();

   

   

 

}

7 0
3 years ago
Describe it the impact of computer in office?​
krok68 [10]

Answer:

Computers in the office environment significantly enhance productivity. According to the Reference for Business Web site, computers in the office increase productivity not only in areas such as word processing, data management and information access, but also in information creation, collation and ultimately storage. The amount of time most office workers spend at the computer has, however, given rise to a number of repetitive strain health problems on eyes, wrists and hands

hope it helps (^^)

# Cary on learning

7 0
2 years ago
How do you get Splatoon 2 for free
Helga [31]

Answer:

You cannot

Explanation:

You can get the demo but not the full game

3 0
3 years ago
Read 2 more answers
You manage a network with two switches. The switches are connected together through their Gigabit Ethernet uplink ports. You def
vovikov84 [41]

Answer:

Trunking.

Explanation:

In Computer Networking, to allow a device on the first switch in VLAN 1 to communicate efficiently with a device on the second switch also in VLAN 1, you should configure trunking protocol on the switch.

Trunking is a communication technique used to transmit packets simultaneously to users on a network by using multiple lines or frequencies.

8 0
3 years ago
Other questions:
  • Write a program in C which will open a text file named Story.txt. You can create the file using any text editor like notepad etc
    9·1 answer
  • Which is the best method of marketing a game to casual players?
    14·2 answers
  • In one to two sentences, describe one method for launching or opening a program.
    5·2 answers
  • How long does a baby dolphin stay with its mum
    8·1 answer
  • Can anyone help me with getting bash ubuntu on windows setup?
    15·1 answer
  • Which color is considerd to be a cool color?
    10·2 answers
  • Which daemon manages the physical memory by moving process from physical memory to swap space when more physical memory is neede
    14·1 answer
  • give the difference between functional and functional tools in the middle of to the circle give importance​
    10·1 answer
  • Describe the history of computer in Nepal.​
    9·2 answers
  • Select the functions in the Insert tab in PowerPoint.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!