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
Fynjy0 [20]
3 years ago
5

Based on three scores that the user inputs, display the average of the score and the letter grade that is assigned fort he test

score average. The grading scheme is as follows:
// 90 - 100 A
// 80 - 89 B
// 70 - 79 C
// 60 - 69 D
// <60 F
return 'F';
Your display should look like:
Your average test score is 89.9. You earned a B.
1 public void calculateDisplayLetterGrade (double scorel, double score2, double score3)
2 {
3
4 }
5
Computers and Technology
1 answer:
Korolek [52]3 years ago
5 0

I used python function to write the code.

def averageScore(x,y,z):

    s = x + y + z

    avg = s/3

   if avg >= 90:

              return f'Your average test score is {avg} You earned a A.'

    elif avg >=80 and avg < 90 :

                return f'Your average test score is {avg} You earned a B.'

   elif avg >=70 and avg < 80 :

                 return f'Your average test score is {avg} You earned a .C'

      elif avg >=60 and avg < 70 :

                  return f'Your average test score is {avg} You earned a D.'

      else:

                    return f'Your average test score is {avg} You earned a F.'

print(averageScore(98, 90, 80))

Python function is used to write the code where x, y and z are the argument (user inputs) of the function. Then the inputs are summed and the average is gotten and stored with the variable, avg.  

If the average is greater than or equal to 90 the program will give the appropriate score and response(grade). It does the same if the user scored 80 - 89, 70 - 79, 60 - 69 and less than 60.

Finally. the function is called with the user input(argument).

Note the bolded values in the code are keywords in python.

read more: brainly.com/question/14191443?referrer=searchResults

You might be interested in
3. List three common vector image file types.
nika2105 [10]
Constructed using mathematical formulas rather than individual colored blocks, vector file types such as EPS, AI and PDF* are excellent for creating graphics that frequently require resizing.
8 0
3 years ago
Question 1 Why should a user seek support when troubleshooting a computer problem is beyond his or her technical knowledge?​
sveticcg [70]

A user must seek support when troubleshooting a computer problem is beyond his or her technical knowledge because: <em>When the user seeks support, the computer problem is solved accordingly and further complications are avoided.</em>

Discussion:

Further computer problems may arise from a computer problem. As such, when a user finds it difficult to troubleshoot a computer problem, the user should seek support since the computer problem is beyond his or her technical knowledge

Read more on troubleshooting:

brainly.com/question/18315517

6 0
3 years ago
A. Skype offers a service that allows you to make a phone call from a PC to an ordinary phone. This means that the voice call mu
monitta

Answer: A. Voice over Internet Protocol

B. It reduces the delay for all objects requested by a user.

Explanation:

Voice over Internet Protocol is used to transfer voice communication and multimedia over the internet. It converts voice into a digital signal, transfers it over the internet and then reconverts it to voice when it reaches its destination.

Web Caching stores the data from a web page for reuse at a later time, this helps to reduce the tasks the server carries out and reduces delay. Because some objects are cached, more resources can be focused on objects that are not thereby reducing delay for all objects requested by a user.

6 0
4 years ago
The level of competition is an important factor for many people when selecting a physical activity.
Art [367]

Answer:

Its false

Explanation:

And this is because, the level of competition will matter when you are doing the mental activity, and in general when you are doing the physical activity then the level of competition never matters. And note that you are doing an activity which is always of one level in case of physical activity, and no sort of games where the competition does matter, and you need to beat the record all the time. You are in this situation challenged physically though always at one level which is fixed and known in advance, and how much exertion your body can withstand, and that is a competition in itself. However, no other competition or level is a factor in this scenario. Though in case of mental activity the requirement can vary at times, and hence requiring the varied level of competition.

6 0
3 years ago
Read 2 more answers
Can i have help for a ggogle class room
andrew11 [14]

Answer:

or tell ur teacher to add u in ur class

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • How can the connection to salesforce be restricted only to the employee portal server? Universal containers (UC) uses a legacy E
    13·1 answer
  • The term used to describe an electronic device, operating under the control of instructions stored in its own memory, that can a
    7·1 answer
  • which type of website would a business selling merchandise on the internet use? A person B information C commercial D social
    9·1 answer
  • What does a contain after the following code runs?int[] a = {1, 3, 7, 0, 0, 0};int size = 3, capacity = 6, value = 5;int pos = 0
    10·1 answer
  • Can somebody tell me when is ps5 releasing???​
    15·2 answers
  • Susan is a bookstore owner who maintains sales records in a spreadsheet. She wants to highlight the records that show sales in e
    14·1 answer
  • A function ________ contains the statements that make up the function.
    5·1 answer
  • GPS data can be used to track the rate and direction of plate movement. If a GPS unit measures a latitude velocity of 28.2 mm/yr
    8·1 answer
  • What is a common use for spreadsheets? A.drawing B.writing C.budgeting D.video production
    8·1 answer
  • I need help with computer science<br> the quiz on e2020 is on hackers and unauthorized access
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!