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
Paul [167]
3 years ago
8

A particular competition has five judges, each of whom award a score between 0 and 10 to each performer. • Fractional scores, su

ch as 8.3, are allowed. • A performer’s final score is determined by dropping the highest and lowest score received, then averaging the three remaining scores. • Write a program that uses this method to calculate a contestant’s score. It should include the following functions:
Engineering
1 answer:
Anettt [7]3 years ago
5 0

Answer:

Explanation:

Lets do this in python, our function will import an array of double numbers, then it sort the array out, drop the first and last items, aka highest and lowest score. Finally, it averages the last 3 numbers by calculate the sum and divide by the number of items

def calculate_score(scores):

    scores.sort() # sort it so that the lowest is at index 0 and the highest is at last index

    drop_highest_lowest = scores[1:-1] # this will drop the lowest and highest number

    average_score = sum(drop_highest_lowest)/len(drop_highest_lowest)

    return average_score

You might be interested in
Write a method called letterCount that takes two String arguments, one containing some text and the other containing a single le
jenyasd209 [6]

Answer:

I am writing a Python program.  Here is the function letterCount. This function takes two string arguments text and letter and return count of all occurrences of a letter in the text.

def letterCount(text, letter):  

 count = 0  # to count occurrences of letter in the text string

 for char in text:  # loop moves through each character in the text

   if letter == char: # if given letter matches with the value in char

     count += 1  # keeps counting occurrence of a letter in text

 return count # returns how many times a letter occurred in text

   

Explanation:

In order to see if this function works you can check by calling this function and passing a text and a letter as following:

print(letterCount('apples are tasty','a'))

Output:

3

Now lets see how this function works using the above text and letter values.

text = apples are tasty

letter = a

So the function has to compute the occurrences of 'a' in the given text 'apples are tasty'.

The loop has a variable char that moves through each character given in the text (from a of apples to y of tasty) so it is used as an index variable.

char checks each character of the text string for the occurrence of letter a.

The if condition checks if the char is positioned at a character which matches the given letter i.e. a. If it is true e.g if char is at character a of apple so the if condition evaluates to true.

When the if condition evaluates to true this means one occurrence is found and this count variable counts this occurrence. So count increments every time the occurrence of letter a is found in apples are tasty text.

The loop breaks when every character in text is traversed and finally the count variable returns all of the occurrences of that letter (a) in the given text (apples are tasty). As a occurs 3 times in text so 3 is returned in output.

The screen shot of program along with output is attached.

4 0
3 years ago
Design a fundamental mode asynchronous finite state machine that accepts input pair, A and B. The AB input sequence 00, 01,11, 1
dybincka [34]

Answer:

See explaination

Explanation:

A Finite state machines can be synchronous or asynchronous. The operation of asynchronous state machines does not require a clock signal. An Asynchronous state machine is classified basically on their operating mode, such as the fundamental mode, pulse mode or burst mode. An asynchronous state machine can have stable and transient states.

Please kindly refer to attachment for a step by step solution.

5 0
3 years ago
PLEASE QUICK!!!!!!!!!!! Overtime people have given names to groups of stars called_____
kirza4 [7]

Answer:

Constellations

Explanation:

Constellations describes a group of stars that appear to form a pattern or a picture. Example of common patterns are : Leo the Lion or Orion the Great Hunter. It is easy to recognize constellations and most people will tend to orient with these patterns. There are 88 patterns currently known.

6 0
3 years ago
For beam design, the cross section dimensions of the beam are determined: A. Based on allowable normal stress, but the allowable
noname [10]

Answer:

B. Based on the allowable shear stress, but the allowable normal stress should always be checked to be sure it is not exceeded

Explanation:

Shear stress is analyzed to determine the shear forces along the lenght of the beam. This is represented in a shear force diagram. The beam cross sectional design is determined in such a way as to minimize the shear stress. Allowable normal stress should always be checked in a structure if failure is to be prevented.

8 0
4 years ago
What is the atmospheric temperature on Venus if the density is 67 kg/m^3 and the pressure is 9.3 mPa, absolute? Express in °C an
swat32

Answer:

461 C

862 F

Explanation:

The specific gas constant for CO2 is

R = 189 J/(kg*K)

Using the gas state equation:

p * v = R * T

T = p * v / R

v = 1/δ

T = p  / (R * δ)

T = 9.3*10^6  / (189 * 67) = 734 K

734 - 273 = 461 C

461 C = 862 F

4 0
3 years ago
Other questions:
  • "A computer architect redesigns the pipeline above to enable branch prediction. When PCSrc is asserted (branch taken) IF/ID is f
    10·1 answer
  • The waffle slab is: a) the two-way concrete joist framing system. b) a one-way floor and roof framing system. c) the one-way con
    11·1 answer
  • Who is/are the founder/founders of transistor? ​
    9·2 answers
  • Refrigerant-134a enters an adiabatic compressor at -30oC as a saturated vapor at a rate of 0.45 m3 /min and leaves at 900 kPa an
    13·1 answer
  • Which of the following describes a product concept?
    15·1 answer
  • Steven is starting a project that requires a specialized, experienced contractor. Which selection process is the most suitable f
    11·1 answer
  • Lagest organs of the human body
    6·2 answers
  • Can you use isentropic efficiency for a non-adiabatic compressor?
    12·1 answer
  • When was solar power envold ​
    8·2 answers
  • How do Geothermal plowerplants relate to engineering?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!