Which of the following is an example of a logic error in programming?

A: Not using quotation marks and parentheses to print a string literal

B: Printing an inaccurate statement, like print("Dogs have wings.")

C: Trying to perform an impossible task, like 5 / 0

D:Using camelcase when a variable name contains two or more words

Answers

Answer 1

Answer:

It's C

Explanation:


Related Questions

Denise found a volume of documents in the trash bin that contained individuals, names, social security numbers and years of birth. After additional inspection, she realized it was an extra report from one of their file systems that had been discarded. What should Denise do?

Answers

Answer:

All of the above

Explanation:

The report is a piece of critical information in the company's file system that should be saved and secure from adversaries. All the options should be implemented to prevent and manage data leakage.

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

Answers

Answer:

Explanation:

.

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.

what is main function of processing unit?

Answers

Answer:

to control the operation of all part of the computer.

hope it helps.

Answer:

to control the operations of the computer

Explanation:

hope it's help you have a great day keep smiling be happy stay safe ☺

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:

if you were any type of fnaf charater who would you be and why?

Answers

Answer:

Foxy

Explanation:

Cause he's cool and he's my favorite.

pleasee help meeeeeeeeee I’m stuckk!!!!

Answers

Answer: Charles Babbage

Answer:

a

Explanation:

trust


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

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

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.

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.

What are a few ways to format the text in a mail message in Outlook? Check all that apply.
Attach a file to the message to be opened separately.
Open the Font dialog box to access more detailed options.
Increase or decrease the indent.
Copy and paste text from a Word document
Use the Mini Toolbar to change the font appearance.
Click the Format Painter to paste a saved font format.

Answers

Answer:

The answers are b,c,d,e,f

Explanation:

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.

please help which one is the right symbol?​

Answers

Answer:

second one >

hope it helps.

I REALLY Need help on this.

Answers

Make a deposit talk to A representative transfer money and Check account balance
Other Questions
Which of the following best describes the proper use of a "Works Cited" page? A Works Cited page is not needed if you paraphrase your research. A Works Cited page is not needed if you use signal phrases. A Works Cited page is optional when writing a researched text. A Works Cited page is required when writing a researched text. Which of the following is true given that -4 > -9?A.-4 is to the left of -9 on a horizontal number lineB.-4 is at the same place as -9 on a horizontal number lineC.-4 is the opposite of -9 on a horizontal number lineD.-4 is to the right of -9 on a horizontal number line What is the calculated interest for $650, with a 3% simple annual interest rate, after 4 years? Can someone help me with this? I just need help understanding it. Hi please help. ive been stuck on this for 5 minutes 4.) 960 meters in 15 secondsWrite the following rate as a unit rate Write an algebraic expression or equation to represent each word phrase.The quotient of n and 12 is 20 Which of the following is a radioactive element?Sodium, Fluorine,Oxygen francium A submarine's descent was a change in depth of -6 feet per minute. At thisrate, how much time would it take the submarine to reach a level of 750 feetbelow sea level? please awnser the photo with the word How many solutions will this system of equations have??Please explain your thinking Help ill mark u brainliest An advertisement for a security system features a family sleeping in their beautiful home. It is dark and the audience hears someone trying to open the door. No one in the family wakes up as the thief open a window and climbs through. In the next scene, a famous actor tells the audience they should buy the security system.Which of the following correctly names the propaganda technique used in this ad? (1 point) aFacts and stats and card stacking bGlittering generalities and transfer cPlain folks and bandwagon dTestimonial and fear round 427963 to the nearest thousand 6 is 16% of what number? Mitosis is responsible for growth, repair, and maintenance in an organism because a. it occurs at a faster rate than meiosis.b. the chromosome number is reduced by half.c. exact duplicates of each mother cell are produced.d. it is the only process that involves replication of genetic material. -7/10 or -0.81 which is greater Which of the following possibilities will form a triangle? (1 point)Side = 10 cm, side = 5 cm, side = 6 cmSide = 10 cm, side = 6 cm, side = 3 cmSide = 11 cm, side = 5 cm, side = 6 cmSide = 11 cm, side = 5 cm, side = 5 cm The 7th grade basketball team has won 15 games out of the 20 games they have played this season. If they were to keep up this winning ratio, what is the probability they will win their next game? Will lactase, the enzyme that digested the ice cream's lactose, also work on the lactose found in cheese?