Your school is hosting a diving contest, and they need a programmer to work on the scoreboard! Your job is to calculate each diver'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

Answers

Answer 1

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:

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


Related Questions

Which of the these is tool for creating mobile apps? A:C# B:Apple Pie C:Appy Pie D:C++​

Answers

Answer:

Appypie

Explanation:

Have a good day

The tool used for creating mobile apps is C#. The correct option is A.

What is C#?

C# is a multi-paradigm, broad sense programming language. C# programming areas of study encompassing static typing, strong typing, lexically scoped, imperative, declarative, functional, generic, object-oriented, and component-oriented programming.

C++ is an intermediate-level language that extends C with object-oriented features, whereas C# is a high-level language.

C++ compiles programs to Machine Codes, whereas C# compiles programs to Common Language Runtime, abbreviated as CLR.

C# is a popular programming language for Windows desktop apps, enterprise solutions, and even game development, as the Unity game engine is built on it.

C# or F# can be used to create native apps for Android, iOS, and Windows (Visual Basic is not supported at this time).

Thus, the correct option is A.

For more details regarding programming language, visit:

https://brainly.com/question/14379391

#SPJ5

What is the technical term of a native programming language?​

Answers

Native Code Or Machine Language

Look both _____before you cross a street and i want to see how much of yall know it

Answers

Answer:

Ways

Explanation:

Look both ways

changing the layout of a document or the text is called....

Answers

The Answer is:

Formatting.

Workbook and worksheet are synonymous, where each workbook will contain only one worksheet

True or false

Answers

False a Brainiest would be appreciated if I’m right
This is a false statement

What is the art of getting your work done through people in a harmonious way?
A.
having good interpersonal skills
B.
having good work ethics
C.
having high self-esteem
D.
having high work efficiency
E.
having conflict resolution skills

Answers

Answer:

A.

having good interpersonal skills

Answer:

it is (A)

Explanation:

What Information Technology is Walt Thomas responsible for?

Answers

Proactive designing i think

Answer:   employee productivity and activity management, selling the vast.

Explanation:

Dan works for an automobile company. He has designed a new model of a car based on an older version. Which technology can he use to present the model at a board meeting?
A.
wearable computing
B.
3-D printing
C.
grid computing
D.
screenless display

Answers

Answer:

a

Explanation:

i did the test

Answer:

The answer is B (3-D printing)

Explanation:

What is the purpose of this diamond shape in a flowchart?

Answers

Answer:

To represent a decision making step.

Explanation:

for example, assume that you need to display 'pass' if the total marks are greater than 50 and 'fail' if it's less than 50

Then, after calculating the total, you should draw a diamond and inside it write, 'is total ∠ 50?'

after that you can continue your flowchart taking one decission as 'yes' and the other decission as 'no'

The rectangular shape stands for a task or course of activity. In the flowchart sequence, the diamond shape represents a question or a branch.

What is flowchart?

A flowchart is a diagram that shows a process' individual steps in their proper order.

It is a general tool that may be customised for a wide range of uses and used to define a variety of processes, including a project plan, an administrative or service process, or a manufacturing process.

These four typical forms are excellent for outlining organisational structure, how various departments interact, and economic, industrial, or administrative operations.

In a process, a decision point is represented by a diamond. Usually, the statement in the symbol will call for a "yes" or "no" response and, in accordance, branch to other locations in the flowchart.

Thus, this is the main use of diamond symbol in a flowchart.

For more details regarding a flowchart, visit:

https://brainly.com/question/14598590

#SPJ2

how does air conditioner work
please short answer please​

Answers

It draws the warm/ hot air from inside to outside and the AC unit (usually outside) turns the vapor into a liquid which removes any excess heat. (This is the way I learned it)
The air conditioner in a central heating and cooling system provides cool air through ductwork inside your home, by providing a process that draws out the warm air inside, removing its heat.

Find the value of 1/2 of 1/2​

Answers

Answer:

1/2 of 1/2​ is 1/4 or 0.25

Explanation:

Answer:

0.25 or 1/4

Explanation:

because 0.50 is 1/2 so half of 0.50 is 0.25 or 1/4

Use the drop-down menus to complete the steps for using the Scenario command.


1. Select the cells you want to use in your scenario.


2. Go to the ____ tab.

Data
Home
Insert
Formulas

3. In the Forecast group, select _____ and click Scenario Manager.

Sort
Get Data
Forecast Sheet
What-If Analysis

4. Click Add and fill in the name and add comments if you wish.


5. To compare, you will want to create _____ version.

A what-If
A original
A Data Table

6. Add a second scenario, changing the values from the first.


7. Click _____ to view the values in each scenario.

OK
Show
Review

Answers

Answer:

1. Select the cells you want to use in your scenario.

2. Go to the Data tab.

3. In the Forecast group, select What-if Analysis and click Scenario Manager.

4. Click Add and fill in the name and add comments if you wish.

5. To compare, you will want to create an original version.

6. Add a second scenario, changing the values from the first.

7. Click show to view the values in each scenario.

I got the answer right on Edge :)

The cells a person want to use are:

Go to the Data tab. In the Forecast group, select What-if Analysis and click Scenario Manager.Click Add and fill in the name and add comments if you wish. To compare, you will want to create an original version.

What is cell?

A cell is known to be area that is found on a spreadsheet that is known to be the place where the data are said to be entered.

Note that in the case above, The cells a person want to use are:

Go to the Data tab. In the Forecast group, select What-if Analysis and click Scenario Manager.Click Add and fill in the name and add comments if you wish. To compare, you will want to create an original version

Learn more about cells from

https://brainly.com/question/13920046

#SPJ9

Myra Wrote a Program and forgot to put the steps in the correct order. Which step does Mya need to Review

A. Pattern Following
B. Planning
C. Segmenting
D. Sequencing

Answers

Answer:

B. Sequencing

Explanation:

I hope this helps you UwU

Answer:

The answer is 'A'

Explanation:

I took the test, and got a 100%

It also makes more sense than the other choices.

Have a good day <3

Poems are a kind of persuasive document
Yes or no?

Answers

Answer:

i believe the answer yes because the author wants the audience sympathetic attention.

Answer:False

Explanation:

Please Help Asap!

Fill in the blanks:

URLs are the global _____ of resources on the Internet.

URLs are to web browsers what postal addresses are
to ______.

URL structure is: Protocol + Domain Name + _______.

Answers

Answer:

addresses

envelopes

directory path

Explanation:

URLs are the global addresses of resources on the Internet. URLs are to web browsers what postal addresses are to envelopes. URL structure is: Protocol + Domain Name + directory path.

What is meant by URL link?

Just as homes and other buildings have a street address, websites have unique addresses to make it simpler for users to find them. On the Internet, these are referred to as URLs Uniform Resource Locators.

Most websites use "HTTP" or "HTTPS" to denote their protocol. This part of the URL is followed by a colon and two forward slashes, as in the example below: http://website.com. https://website.com.

Type: It gives information about the type of server where the file is kept. address: It provides the location or address of the internet server. The file's location on the internet server is indicated by the path.

Thus, addresses, envelopes and directory path.

For more information about URL link, click here:

https://brainly.com/question/23615920

#SPJ2

He made me so angry when he didn’t let me make my point that I had to stalk after him.
a.
follow
c.
stem
b.
shoot
d.
branch

Answers

Answer: follow

Explanation:

Answer: A) follow

Explanation:

Which of the following Office Online apps is most effective for creating spreadsheets?

Answers

Answer:

Excel

Explanation:

It allows you to make spreadsheets.

In what situations should you show enthusiasm at work? Check all of the boxes that apply.

when you are congratulated on a job well done

when you are offered a new project

when you know that gossip is occurring among colleagues

when you are running a team meeting

when you are offered a promotion

Answers

Answer: A, B, D, E

Explanation: edge 2022

Xcode, Swift, and Appy Pie are all tools for doing what? A: Writing code in Java. B: Creating smartphone apps. C: Creating apps to run on a desktop or laptop. D: Writing code in C#​

Answers

Answer:

Creating smartphone apps

Explanation:

Took the test, got 100, read the lesson on slide 3 towards the bottom

If String str = "United States";, then what is the value of str.indexOf("united");?

−1
0
1
2
3

Answers

Answer:

-1

Explanation:

due to the fact their is no capital "U" it will -1

Which future US President attacked a French fort in the Ohio River Valley? A. John Adams B. George Washington C. Alexander Hamilton D. James Braddock

Answers

Answer:

George Washington

Explanation:

When would you use database software instead of spreadsheet or word processing software?​

Answers

Answer: When I need to see table relationships and sort data by custom fields.

Explanation:

Answer: When I need to see table relationships and sort data by custom fields.

Explanation: took the quiz

What is calculated first in this formula: =A5*(A7+A10)+A14​

Answers

Answer:

The equation in parenthisis , you always calculate first

Often used in connection with a business
A: fair use
B: copy right
C: public domain
D: commercial use
E: Creative Commons

Answers

Answer:

I would have to say public domain (but i am not sure)

Which is the civil penalty for COPYRIGHTS violations? Choose the answer. $200-$150,000 fine up to five years in jail Fines and court costs 1 year in jail

Answers

Answer: $200-$150,000 fine

Explanation:

I took the Quiz

Changing the position of the wing will

Answers

Answer:

will cause error in your pc many many many

Answer:

change the center of gravity and neutral point

Explanation:

whats the answer to 9? i really need help with this in the next 20 minutes. ty if u help me!

Answers

Answer:

A very precise number B

Explanation:

Hope you pass

Unscramble the words

A: ESUOM RETUPOC

B: KSID EVIRD

Answers

A. Mouse coputer
B. Disk drive
A) Mouse copter
B) Disk Drive
hope this helps x

What is the issue with this code

interface Box2{

static final int ITEM_CODE=201;

int method1();

double method2();
}

public class Window implements Box2{

public int method1(){

return ITEM_CODE;

}

}

public class myFrame{

public static void main(String args[]){

Window w = new Window();

System.out.println(w.method1());

}

}

A.
The interface should be declared as abstract.
B.
The class should be declared as abstract.
C.
The interface should have an implementation of method2.
D.
The class should have an implementation of method2.

Answers

Question: What is the issue with this code

interface Box2{

static final int ITEM_CODE=201;

int method1();

double method2();

public class Window implements Box2{

public int method1(){

return ITEM_CODE;

public class myFrame{

public static void main(String args[]){

Window w = new Window();

System.out.println(w.method1());

A. The interface should be declared as abstract.

B. The class should be declared as abstract.

C. The interface should have an implementation of method2.

D. The class should have an implementation of method2.

Answer: A The interface should be declared as abstract.

Someone copied a library video and sold the copies to friends. This is an
example of

Answers

Answer:

Intellectual Property Theft.

Explanation:

Intellectual property theft involves robbing people or companies of their ideas, inventions, and creative expressions—known as “intellectual property”—which can include everything from trade secrets and proprietary products and parts to movies, music, and software.

Answer:

cybercrime

both employees and outsiders

Aimless wandering

A security guard

Many security breaches ........

intellectual property theft

stealing ideas, information, or creative products

add a watermark

embezzling

Other Questions
A decrease in the decomposers within an ecosystem would have what effects on the carbon cycle? Which option best summarizes what is expected of citizens in a democracy?A. To play an active role in selecting government leadersB. To obey and support the government without questionC. To encourage the government to remain authoritarianD. To question the government's basic authority to rule Both species benefit in the type of symbiosis called parasitism. Please select the best answer from the choices provided T F Where does the energy from an earthquake originate?A. from the weight of sediments pushing down on bedrockB. from a sudden increase in solar radiation striking EarthC. from rocks under stress shifting deep inside EarthD. from the Moon's gravitational pull during a close orbit Which carboxylic acid can be combined with an alcohol to form the ester shown below? At the end of each of the next four years, a new machine is expected to generate net cash flows of $8,000, $12,000, $10,000, and $15,000, respectively. What are the cash flows worth today if a 3% discount rate is appropriate School Application. Helene's marching band needs money to travel to a competition. Band members have raised $560. They need to raise a total of $1680. Write and solve an equation to find how much more they need. In what climates would you expect soil to form fastest? Why? Do exercise F. Paso 1 "El regalo ideal" on p.79. Follow the instructions, and write 5 sentences matching the information given on the 2 lists.Modelo: El libro es para Juan porque desea estudiar on sunday Danielle is having her friends over for her 9th birthday she had 24 M&M bags 36 jelly beans and 48 snickers to make goodie bags If each person coming to her party received the same amount of each candy what is the greatest number of friends that can come over how much candy will they receive PLS help due in 20 minutes what is called as bollywood Am I correct, if not please explain the correct answer. Which best describes European attitudes about influencing American Indians?1.forceful2.hesitant 3.interested 4.relaxed fourth grade rats summary Financial support is the only thing legally required of parents.O TrueO False Seasons from axises? What is a number x divided by -9 is -16 no does anyone know the answer? im taking a benchmark and i have 30 minutes left In which layer of the ocean are you likely to find microscopic plants called phytoplankton? The lowest energy state of an atom is itsA. Highest-occupied energy level.B. Principle quantum number.C. Electron configuration.D. Ground state.