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
Angelina_Jolie [31]
4 years ago
8

PYTHON Write a grade program using a function called computegrade that takes a score as its parameter and return a grade as a st

ring Score Grade >0.9 A >0.8 B >0.7 C programme execution: Enter score: 0.9 A Enter score: perfect Bad scor
Computers and Technology
1 answer:
makvit [3.9K]4 years ago
3 0

def computeGrade(float grade, str a){

a = "A" if a > 0.9 else a = "B" if a > 0.8 else "C"

return a;

}

print(a)

You might be interested in
All java classes must contain a main method which is the first method executed when the java class is called upon.
uranmaximum [27]
This is false. Not all java classes need a main method. You can create you own class below the class with the main method and put your own user-created methods into it. Classes without a main method can be in its own separate class even.
3 0
3 years ago
Write and test the definition of a haskell function 'largest', which finds the largest element of a list, but is implemented usi
Kaylis [27]
Largest :: [a] -> (a -> a -> Ordering) -> a largest (x:xs) cmp = go x xs where go largest [] = largest go largest (x:xs) = case cmp largest x of LT -> go x xs _ -> go largest xs

3 0
4 years ago
Write a program that will make a copy of a text file, line by line. Read the name of the existing file and name of the new file(
Luba_88 [7]

Answer:

To find the text file, use a full path name when entering the file name, such as

C:\textfiles\StateCapitals.txt

You can save typing in the full path name by putting the file in the project directory, such as in

C:\Users\me\Documents\NetBeansProjects\Project4

3 0
3 years ago
1. Name a two methods for creating text in Adobe Illustrator.
Fittoniya [83]

Answer:

Point type is a horizontal or vertical line of text that begins where you click and expands as you enter characters. Each line of text is independent—the line expands or shrinks as you edit it, but doesn’t wrap to the next line. Entering text this way is useful for adding a few words to your artwork.

Select the Type tool  or the Vertical Type tool .

The pointer changes to an I-beam within a dotted box. The small horizontal line near the bottom of the I-beam marks the position of the baseline, on which the text rests.

(Optional) Set text-formatting options in the Control panel, Character panel, or Paragraph panel.

Click where you want the line of text to begin.

Explanation:

4 0
3 years ago
write up a performance review for a fellow employee. Imagine you work in a shop and this is a fellow salesperson on the shop flo
son4ous [18]

Answer:

I'd give him the lowest performance review because who knows what he does, I mean, he is on the floor, not doing anything, especially not working.

8 0
3 years ago
Other questions:
  • Which statements identify what astronomers currently know and think will happen with our universe? Check all that apply.
    15·2 answers
  • For each 8-bit data frame the layer uses a generator polynomial G(x) = x4+x2+ x+1 to add redundant bits. What is the sequence of
    11·1 answer
  • Which method of traversing a tree would result in a sorted list for a binary search tree?
    11·1 answer
  • A cubit is an ancient unit of length, roughly the distance between one’s fingers and elbow. The definition of one cubit is 18 in
    12·1 answer
  • For what reason can security risks never be fully eliminated?​
    7·1 answer
  • Who does online school on FLVS???????????????????
    9·2 answers
  • How does defragmentation improve performance?
    9·1 answer
  • 2.
    9·1 answer
  • An 802. 11 frame contains a number of fields. Which field describes the version of 802. 11 that is being used?
    10·1 answer
  • Which option in PowerPoint allows users to configure the number of columns and rows manually, using numerical values?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!