Read the following code:

# Calculate average
average = numl + num2 + num3 / 3.0

There is an error in the code. How should the code be revised in order to get the correct output?

A:average = numl + num2 + num3 - 3.0

B:average = numl + num2 + num3 - 3.0

C: average = (numl + num2 + num3) / 3.0

D: average = numl + num2 + num3 / (3.0)

Answers

Answer 1
C is the correct answer

Related Questions

7.5 Code practice Plz answer ASAP

Answers

def calculate_GPA(grade, weight):

   grades = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

   if weight == 0:

       return grades[grade]

   else:

       return grades[grade] + 1

classes = int(input("How many Classes are you taking? "))

total = 0

for x in range(classes):

   letter = input("Enter your Letter Grade: ")

   user_weight = int(input("Is it weighted? (1 = yes) "))

   grade = calculate_GPA(letter, user_weight)

   total += grade

   print("Your GPA score is: ", grade)

print("Your weighted GPA is a",(total/classes))

I wrote my code in python 3.8. I was able to replicate the output in your picture exactly. If you need me to make any changes, I'll do my best.

The function is an illustration of for loops

For loops are used to perform repetitive operations; just like the while loop

The program in Python, where comments are used to explain each line is as follows:

#This defines the studentGPA function

def studentGPA(grade, weight):

   #This initializes a dictionary for all grades

   allGrade = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

   #This sets the return grade to 0

   retValue = 0

   #If the grade is valid

   if grade in allGrade:

       #If the weight is 0

       if weight == 0:

           #Then score is not graded

           retValue = allGrade[grade]

       #If otherwise

       else:

           #This adds 1 to the return grade

           retValue = allGrade[grade]+1

   #This returns the grade point

   return retValue

#The main begins here    

#This gets the number of classes

klass = int(input("How many Classes are you taking? "))

#This initializes the total grade to 0

total = 0

#This following is repeated for each class

for x in range(klass):

   #This gets input for the letter grade

   letterGrade = input("Enter your Letter Grade: ")

   #This gets input for the weight

   weight = int(input("Is it weighted? (1 = yes) "))

   #This gets the corresponding grade

   grade = studentGPA(letterGrade, weight)

   #This prints the grade point

   print("Your GPA score is: ", grade)

   #This calculates the total grade

   total += grade

#This calculates the GPA

GPA = total/klass

#This prints the GPA

print("Your weighted GPA is a",GPA)

Read more about for loop at:

https://brainly.com/question/12736327

pleasee help meeeeeeeeee I’m stuckk!!!!

Answers

Answer: Charles Babbage

Answer:

a

Explanation:

trust

A career in culinary arts can best be described as working in the __________ industry.
A.
food
B.
clothing
C.
computer
D.
entertainment

Answers

Answer:

A-Food

Explanation:

The answer would be A:Food


What does an effect allow you to do in
EarSketch?

Answers

Answer:usbebdos did did I’d did d

Explanation:

Bash six ska over five. I did a sis a and

what key do I use to start my presentation

Answers

Answer:

The answer to this question is given below in this explanation section.

Explanation:

Knowing how o start a presentation is crucial if you fail to capture the audience attention right of the bat your entire presentation will flop.Few listeners will stick with you to the end and retain what you have told.

That is mildly unpleasant when you are doing an in house presentation in front of your colleagues.But can become utterly embrassing when you are presenting in front of larger audience presentation to prospective customers.

Let you have most of your presentation slides and polished up you dont check and quick and effective power point presentation design tips.Many ideas are broken into bits sized statements for your slides and complemented with visuals.The best way is to appeal and invoke certain emotions with your audience curiosity,surprise fear or good old amusements.

What would be the final step to applying your customized voting butons in Outlook messages?
O Type your new choices in the Text Bar.
O Click on Voting Buttons and choose Custom.
O Open the Voting Buttons menu and choose your customized choices.
O Click Submit and your custom voting choices will appear in the message body.

Answers

Answer:

Open the Voting Buttons menu and choose your customized choices.

Explanation:

Answer:

C

Explanation:

Why is it a good idea not to change the subject line when replying to a message?
O so that the reply is sent to the original sender
O so that the reply does not bounce back as undeliverable
O so that the reply matches with the sender's original message
O so that the reply does not inadvertently include unintended recipients

Answers

Answer:

the correct answer is C

Explanation: i just did it on edge 2021

Answer:

C. so that the reply matches with the sender’s original message

Explanation:

so i am taking to edhesive computer science course in my school, and i am confused on 1.6 code practice,
here are the intructions, it is also for the python coding language

Write a program that uses two input statements to get two words as input. Then, print the words on one line separated by a space. Your program's output should only include the two words and a space between them.

Hint: To print both words on one line, remember that you can concatenate (add) two phrases by using the + symbol. Don't forget that you'll need to add a space between the words as well.

Sample Run

Enter a word: Good
Enter a word: morning
Good morning

Answers

I included my code in the picture below. Best of luck.

Justice wrote a program and forgot to put the steps in the correct order. Which step does she need to review?

Planning
Filtering
Ordering
Sequencing

Answers

Answer: Sequencing

Explanation: I did test!

Sequencing step does she need to review.

What is Sequencing?

Sequencing is the act of placing a process's phases in order from start to finish. It is a crucial ability that is employed in math, physics, and other subject areas in addition to reading comprehension.

Look at a few sequence structures that can be used to structure instructions in a passage.

Students simply arrange a series of stages in a process or method in the proper order as part of sequencing activities. They might include topics like how to assemble equipment, set up and name a word processing file, or install an electrical switch.

Therefore, Sequencing step does she need to review.

To learn more about Sequencing, refer to the link:

https://brainly.com/question/30586864

#SPJ3

What is the difference between an appointment and a meeting?
O An appointment does not require coworkers, but a meeting includes coworkers.
O An appointment is for personal obligations, but a meeting is work related.
O An appointment does not have a location, but a meeting has a specific site.
O An appointment is for tasks to accomplish, buta meeting is a time slot on the calendar.

Answers

Answer:

The correct option is;

An appointment does not require coworkers, but a meeting includes coworkers

Explanation:

The correct option is an appointment does not require coworkers, but a meeting includes coworkers

A meeting differs from an appointment mainly because an appointment is an schedule that has an effect only on a personal calendar while a meeting is a schedule that can involve the attendance of one or more other people who will be invited and indicate readiness to attend. Therefore, a meeting can affect the calendars of more than one person working on a task.

In an organization, an internal meeting will require coworkers, while an appointment does not require the attendance of coworkers

Answer:

the one above is right

Explanation:

or for ads A

What is one way programmers benefit from using Python's Math Module?

A: Create programs faster and easier

B: Learn to solve complicated equations

C: Prevent logic errors in their code

D: Prompt user input in numeric form

Answers

Answer:

Python's Math Module helps developers provide direct access to the mathematical functions in our programs, thus saving a lot of complexity and time, and helping the developers program faster.

Therefore, we conclude that option A is true.  

Explanation:

Python's Math Module is a very important module designed to deal with certain mathematical operations.

It includes:

Trigonometric functonsrepresentation functionslogarithmic functions

and many more mathematical tasks.

It also contains two mathematical constants:

PieEuler number, etc.

Python's Math Module helps developers provide direct access to the mathematical functions in our programs, thus saving a lot of complexity and time, and helping the developers program faster.

Therefore, we conclude that option A is true.  

Answer:

Create programs faster and easier.

Explanation:

Tonya wants to group some messages in his inbox. What are some of the ways that she can do this? Check all that apply. assign messages a color-coded category. Create a rule to move messages to a new folder. Create a new folder, select/ highlight messages, right-click, and choose Move to folder. Highlight messages, right-click, and choose Group Messages.

Answers

Answer: Create a new folder, select/highlight messages, right-click, and choose group messages.

Explanation: answer above!

Tonya wants to group some messages in his inbox. Some ways that she can do this are:

Assign messages to a color-coded category. Create a rule to move messages to a new folder.To create a new folder, select/highlight messages, right-click, and choose group messages.

What is organizing massages?

A list of folders can be found in the left-side menu of Messages. Click the New Folder button under My Folders. A new window with the title "Create New Folder" will open. In the text box, type the name you want for the new folder.

Touch Conversation categories > Add category, then tap Done to create a category. To view the newly added tab or label, return to the app's home screen. Tap Conversation categories to rename a category. Rename can be selected in the bottom men after selecting the desired category.

Therefore, the correct options are A, B, and C.

To learn more about organizing massages, refer to the link:

https://brainly.com/question/28212253

#SPJ2

Do the lengths of 10,4 and 5 form a triangle explain why please I’m confused

Answers

Answer:

no

Explanation:

Imagine having sticks of these lengths. Attach the 4 and 5 to both ends of the 10. No way you can have them touch each other, not even when the triangle is flat.

The 4 and 5 add up to 9, that is less than 10.

The Triangle Inequality Theorem states that the sum of any 2 sides of a triangle must be greater than the measure of the third side.

Which explanation best describes the importance of continuing education?

1.Continuing education is important to maintain certification and keep up with new advances in the field.
2.Continuing education can be very costly and opportunities are difficult to find.
3.Only physicians and nurses are required to have continuing education.
4.Continuing education is not required, but it is a good way to learn more in your field.

Answers

Answer:

1.Continuing education is important to maintain certification and keep up with new advances in the field.

Explanation:

Continuing education is any additional formal learning that is not focused on a  college degree outcome.

Continuing education helps one to acquire more knowledge and to be relevant in one's field.

So, continuing education is important to maintain certification and keep up with new advances in the field.

Someone plz answer my question!!
There are infinite black and white dots on a plane. What is the distance between one black dot and one white dot?​ If you get it right I will give you the crown!!!!!​

Answers

Answer:

infinite I know I got it right so might as well give me brainliest :)

Explanation:

Amy wants to make an exact replica of a specific area in an image. Which tool Amy will use?

Answers

Answer:

Explanation:

.

How do you describe packet switching in your own words

Answers

Answer:

this is your answer bhaiya

The coordinates that determine the position of an element in space are expressed as:

A. Different Shapes
B. 1, 2, 3
C. X, Y, Z
D. L, T, P​

Answers

Answer:

xyz

Explanation:

think of it like a graph, you graph on the x, y, and z coordinates

what purpose would the auto fill feature be most helpful for?

Answers

Answer:

Completing the items in a series

Explanation:

Auto fill is a function found in software and applications that allows you to input a range of numbers or characters in a specific range and finish the entry you began typing with the program.

AutoFill effectively helps you to build tablets more efficiently, allowing you to fill cells with a set of data quickly, It allows you to create whole columns or rows of data that are centered on other cells' values. Autofill is used in all the rows to fill out a specific feature.

Which of the following statements best illustrates how value was created for eggs? when a farmer sells a chicken who is no longer producing eggs when a chef raises the price of his omelet to match a competitor's price when a consumer throws away cracked eggs and only uses the good ones when a baker uses eggs to create cookies and cakes

Answers

Answer:

When a baker uses eggs to create cookie and eggs

Explanation:

I got it right on edg

KAPWING Video Editing Software allows you to use existing You Tube Videos in your design.

Answers

Answer:

Yea it should, it depends are you using a phone or a PC? because most of the time internally built in editing software on computers is better.

pleaseeeeee help me or I’m going to fail & I really want to graduate :(!!!

Answers

Answer:

Konrad Zuse

Explanation:

KONRAD ZUSE (1910-1995) 1935-1938: Konrad Zuse builds Z1, world's first program-controlled computer. Despite certain mechanical engineering problems it had all the basic ingredients of modern machines, using the binary system and today's standard separation of storage and control.

Decision support systems help managers use structured data to identify problems and find solutions to business-related problems. The financial management system is an example of this system.

Answers

Answer:

sorry about this

Explanation:

Dr. Wayne is trying to developing techniques to cure Parkinson’s disease by inserting genetic material into patients’ cells to counteract defective genes. This type of treatment is called

.

Answers

I think it called gene therapy

Answer:

gene therapy

Explanation:

It is correct. I just did it

An IP subnetting design effort is under way at a company. So far, the senior engineer has decided to use Class B network 172.23.0.0. The design calls for 100 subnets, with the largest subnet needing 500 hosts. Management requires that the design accommodate 50 percent growth in the number of subnets and the size of the largest subnet. The requirements also state that a single mask must be used throughout the Class B network. How many masks meet the requirements

Answers

Answer:

The answer is "0".

Explanation:

The mask should describe sufficient subnet bits for build 150 subnet masks with 50% development. The Mask thus needs a minimum of 8 subnet bits (7 subnet bits supply 27, or 128, subnets, and 8 subnet bits supply 28, or 256, subnets). Similarly, such a need to grow by 50% of its size of the main subnet needs, that host part to amount to 750 hosts/subnet. There's not enough 9 host bits (29 - 2 = 510), yet 10 network bits have 1022 host(s)/subnet (210 – 2 = 1022). This same maximum mask project requires to be 34 bits, (at least) in the form of 16 network bits, because of the Class B network, but there are only 32 bits, therefore no single mask meets its requirements.

Write a method that takes a RegularPolygon as a parameter, sets its number of sides to a random integer between 10 and 20 inclusive, and sets its side length to a random decimal number greater than or equal to 5 and less than 12. Use Math.random() to generate random numbers.


This method must be called randomize() and it must take an RegularPolygon parameter.


Could someone help me out here thanks! C:

Answers

Answer:

public static void randomize(RegularPolygon r){

   int side = (int)((20-10) * Math.random()) + 10;

   int length = (int)((12-5)  * Math.random()) + 5;

   // assuming the regularpolygon class has setSide and setLength methods.

   r.set.Side(side);

   r.setLength(length);

}

Explanation:

The randomize method is used to access and change the state of the RegularPolygon class attributes sides and length. The method accepts the class as an argument and assigns a random number of sides and length to the polygon object.

a file that serves as a starting point for a new document

Answers

Answer:

The appropriate response is "Template".

Explanation:

A template would be a document that might open new opportunities for such a new folder. Because once you launch a framework, that's already pre-formatted sometimes in a manner. This same template will indeed presumably have such identification and phone number environment throughout the upper left, a person receiving identify location somewhat below something on the opposite side, a response body location further below, as well as a signature, identify at either the lower part.

What are three ways that functions can be useful when you are writing programs

Answers

Answer:

Reduces the overall complexity of your program

Allows you to easily call a function from different parts of your program after defining it.

Helps break a problem into logical chunks

Explanation:

In a computer language, a function is the set of instructions that are made for reducing the need to repeat a large amount of data by breaking it into small chunks of codes and giving concise readable human names.

They thus help in reducing the complexity in writing and maintaining the program, Hence they help in breaking it into logical chunks. They can be useful in increasing the reusability of the code. Can be used as a good alternative. Perform a single high-level task.

Learn more about the three ways that functions can be useful when.

brainly.com/question/13728820.

1. While cell phones provide Freedom and mobility,they can also become a leash, compelling user's to answer them anywhere and anytime​

Answers

Cellular phones have had a major impact on our lives and the way that we perform every day tasks. Many of these changes are apparent, while others we may not even be aware of.

Cell phones have brought a whole new meaning to the term multitasking. Twenty years ago, it was not possible to talk to the office while you were at the grocery store picking up some necessary items. You could never have had a three-way business conference while you were fixing dinner or been able to deal with a business client from home while caring for a sick child.

In one sentence, how would you sum up the internet?

Answers

Answer:

an informational system

Explanation:

A source to get information from.
Other Questions
Eleanor is 12 years younger than mabel. Mabel is 6 years older than izzy. Izzy is twice as old as Patrick. Patrick is 5 years old. What is the combined age of these four people? Analyze the political cartoon and explain what is going on in the image. Which statement best completes the table? Achievements of Greek Civilization Developed literature and myths Made advances in medicine ? A. Gave women equal rights B. Destroyed the Roman Empire c. Spread democracy across Europe D. Studied the world using logic Which of the following is a monomial?O A. 11x-9O B. 20x^9O C. 9/xO D. 20x^9 - 7x Ryan works at a cell phone store Monday to Friday. He earns $80 per day plus $8 per phone sold. On Tuesday, Ryan makes at least $176.Hurry up pls pls guys help meThe value of the expression StartFraction 2 x squared Over x EndFraction plus x (100 minus 15 x) when x = 5 is119.129.135.145. The stem of a plant is experiencing phototropism. Which statement correctly describes the plant's response? The law requires that everyone..........his car Checked at least once a year Take on the role of a teacher who is helping students understand Macbeth. Choose one scene from the play and create 12 to 18 annotations, or explanatory notes, to explain the meanings of words and figurative language and to analyze the poetic structure. Then write one or two conclusion paragraphs explaining how Shakespeare's language supports the tone and character development in the scene. Your assignment should include the following elements: Annotations that explain unfamiliar words and expressions in a scene from Macbeth, including the pronunciation and origins of at least two words Annotations that describe the meaning of the figurative language in the same scene from Macbeth Annotations that show the meter of three to six lines of the scene A paragraph or two examining the development of one of the scene's characters and the scene's overall tone You should have completed a draft of this assignment in the activity before this one. If you haven't done so, go back and complete that activity now. Which choice describes the Djanggawul Sisters in Aboriginal mythology?SELECT 2 ANSWERS1. The Djanggawuls produced humans.2. The Djanggawuls left holy marks on the ground in the lands they visited.3. The Djanggawul Sisters were tricksters.4. There were three Djanggawul sisters. A bag contains 30 lottery balls numbered 1-30. A ball is selected, replaced, then another is drawn. Find each probability.1. p(even, then odd)2. p(7 and then a number greater than 16)3. p(a multiple of 5 and then a prime number)4. p(two even numbers) Based on Webster's words, many southerners would have most likely concluded thatabolitionist forces from the North were about to invade.O northerners were going to leave the Union out of anger.the possibility of compromise on the issue of slavery still existed.the North was going to stop importing cotton from the South. itemise the importance of marketing in an economy CAN SOMEONE PLEASE HELP ME PLEASE What does a sound waves frequency tell you? HELP IF YOU WANT BRAINLEIST AND TO HAVE YOUR COMMENT LIKED!!A. the loudness or softness of the sound from an objectB. the type of medium in which the sound is travelingC. the number of vibrations per second an object is makingD. the amplitude of the sound wave Which statement provides the best explanation for India's involvement in World War 1?India didn't have many soldiers so the casualties would be limitedIndia was also being threatened by German aggression at homeBritain was allied with India and called upon them for helpIndian soldiers had been trained under British military and were enlisted to fight for their colonial ruler Who does Odysseus see in the underworld?a. Laertesb. Polyphemusc. Anticleiad Antinous Why would a reader compare a story's futuristic setting to life in the present time?will pay give cash app pls ;]to get through the storys descriptive details more quicklyto help them imagine the future more clearly and completelyto decide whether or not the story is worth finishingto understand the main character's traits more fully Digital citizens are creators and consumers of: Your friend's parents have the bloodtypes A (genotype I^i) and B (genotype 1Bi). What possiblebloodtypes does your friend have? (Choose all that apply)None of theseBA