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
Reil [10]
3 years ago
8

You want to write a Python program to compute the average of three integer quiz grades for a single student. Decide what variabl

es your program needs, and create them with appropriate initial values
Computers and Technology
1 answer:
lara [203]3 years ago
3 0

Answer:

Here is code in python.

#define three variables to store grades

grade_1 = 0

grade_2 = 0

grade_3 = 0

//define variable to store average of all three quiz

avg_grade=0

// read score of 1st quiz as integer

grade_1 = int (input ("please enter score of first quiz: "))

// read score of 2nd quiz as integer

grade_2 = int (input ("please enter score of second quiz: "))

// read score of 3rd quiz as integer

grade_3 = int (input ("please enter score of third quiz: "))

//calculate average of three grades

avg_grade = (grade_1 + grade_2 + grade_3)/3

// print the average

print ("Average of three quizs is {}".format(avg_grade))

Explanation:

Declare three variables "grade_1","grade_2" and "grade_3" to store the score of 3 quiz. And variable "avg_grade" to store the average of all quiz.Read score of quiz as integer and then calculate their average and assign it "avg_grade".

Output:

please enter score of first quiz: 23                                                                                                                          

please enter score of second quiz: 33                                                                                                                          

please enter score of third quiz: 45                                                                                                                          

Average of three quiz is 33.6666  

You might be interested in
For a typically large organization how many dns servers should you install
DiKsa [7]
<span>A large organization minimum at-least 2 DNS servers are needed. DNS servers are each internet domain in need. and Multiple server farms distribute the DNS Server. One of the DNS Server is must in separate location. install DNS server on all domain controller. DNS server on every domain controller is must.</span>
4 0
3 years ago
When seeking information on the internet the most helpful place to look is?
Iteru [2.4K]
Gooooooooooooooooooooogle
3 0
3 years ago
Read 2 more answers
A python program for the following output using for loop.
nikdorinn [45]

Answer:

In Python

for i in range(-13,0,6):

   print(i)

Explanation:

Required: A program to display the given output

From the program, we observe the following:

The output begins at 13 i.e begin = 13

The output ends at -1 i.e end = 1

And the difference between each output is 6.

i.e. -1 - (-7) = -7 - (-13) = 6

So, the syntax of the for loop is: (begin, end + 1, difference)

The program explanation goes thus:

<em>This iterates through the -13 to 1 with a difference of 6</em>

for i in range(-13,0,6):

<em>This prints the required output</em>

   print(i)

6 0
3 years ago
Paul listed the websites he searched to find information on a career in biology ​
balandron [24]

Answer:

The frustration-aggression hypothesis

Explanation:

7 0
3 years ago
In computing, what does LAN stand for?​
Arlecino [84]

Answer:

LAN stands for Local Area Network

4 0
3 years ago
Read 2 more answers
Other questions:
  • For any element in keysList with a value greater than 60, print the corresponding value in itemsList, followed by a semicolon (n
    14·2 answers
  • You will use the _____
    15·2 answers
  • While investigating the settings on your SOHO router, you find two IP addresses reported on the device’s routing table, which is
    15·1 answer
  • Which tab allows you to modify the width of a page margins in Microsoft word?
    7·2 answers
  • The Start menu on Windows computers changes based on actions performed by their users. True False
    15·2 answers
  • Discuss the infrastructure necessary for the Internet of Things and Cloud computing to exist. What unique services does this ena
    7·1 answer
  • A customer seeks to buy a new computer for private use at home. The customer primarily needs the computer to use the Microsoft P
    9·1 answer
  • Computers were originally developed to accomplish various tasks in relative isolation, very different from the collaboration and
    14·1 answer
  • What dose a hard drive do
    8·2 answers
  • A network administrator has asked robin, a network engineer, to use ospf (open shortest path first) along with rip (routing info
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!