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
Allushta [10]
3 years ago
13

Can you identify one syntax error and one logic error in these lines? How do you think you could avoid making logic errors like

the one in this code?
You are creating a program in which the user will input his or her age. The program will calculate the year that the user was born and will then tell the user which decade he or she was born in. Here is part of the code:if year > 1989 and year < 2000 print("You were born in the 1980s")
Computers and Technology
1 answer:
algol [13]3 years ago
5 0

Answer:

(a) Syntax Error: Missing colon symbol

(b) Logic Error: The condition is wrong

Explanation:

The programming language is not stated; so, the syntax error may not be correctly identified.

Assume the programming language is Python, then the syntax error is the missing colon symbol at the end of the if statement. This is so because, Python required a colon symbol at the end of every if condition statement.

The logic error is also in the condition.

The condition states that all years later than 1989 but earlier than 2000 are 1980s. This is wrong because only years from 1980 to 1989 (inclusive) are regarded as 1980s.

You might be interested in
A _____ is a specially formatted file that, once mounted, or connected to a virtual machine appear and operate pretty much ident
Sever21 [200]

A <u>Virtual hard disk</u> is a specially formatted file that, once mounted, or connected to a virtual machine appear and operate pretty much identically to a physical hard drive.

<h3>What is a virtual hard disk?</h3>

A virtual hard disk (VHD) is a disk picture file format for storing the entire ranges of a computer's hard drive.

The disk image, sometimes called a virtual machine (VM), duplicates an existing hard drive, including all data and structural elements.

<h3>Why would you count a virtual hard disk?</h3>

Typically, a VHD comes in handy to add additional storage to a Hyper-V virtual machine, and thanks to its capacity to support other OS installations, you can even use this storage virtualization technology to make a dual-boot system without modifying an existing partition.

To learn more about  virtual hard disk , refer

brainly.com/question/4733444

#SPJ4

4 0
2 years ago
I want to make apps but I don't know how and which things I have to learn first ,so if you know mention from starting to ending​
anyanavicka [17]

Answer:

There are a lot to learn, especially the basics. I'd suggest using SolorLearn for this.

6 0
3 years ago
You are investigating the use of website and URL content filtering to prevent users from visiting certain websites. Which benefi
Rzqust [24]

A benefit for implementing this technology in an organization is the enforcement of the organization's Internet usage policy.

<h3>What is content filtering?</h3>

Content filtering can be defined as a process which involves the use of either software or hardware devices, so as to screen, limit or restrict the access of an Internet user to objectionable webpages, websites, email, URL, and other executables.

Some of the benefits for implementing website and URL content filtering in an organization are:

  • The enforcement of Internet usage policy.
  • Increase in bandwidth availability.

Read more on content filtering here: brainly.com/question/3198358

#SPJ1

5 0
2 years ago
How do I get the most points, without any effort?
frez [133]

Answer:

Do the tasks on the side or if there are multiple of a question then take the answers from one that is already completed and use it on the other similar answer

Explanation:

3 0
4 years ago
Read 2 more answers
Which of the following actions would help people determine their interests?
lorasvet [3.4K]
That depends on what the actions are, and what their personality is like.
8 0
3 years ago
Other questions:
  • How many degrees of freedom does any unconstrained object have in 3-D modeling?
    6·1 answer
  • What channel will the republian debate be broadcast on?
    6·2 answers
  • If you want to insert a column into an existing table what would you do
    11·1 answer
  • Which function returns a valid value without any arguments?
    13·2 answers
  • Which of the following is the most significant outcome of the formation of the SMPTE?
    6·2 answers
  • Where are super computer mainly used​
    13·2 answers
  • In cell J6, insert a formula using the OR function that returns TRUE if the rating (cell 16) equals "A" or the email reminder (c
    5·1 answer
  • List and briefly describe the major types of system in organization?​
    15·2 answers
  • To meet the requirement for the number of vdss on board, what must be true about pyrotechnic vdss?
    15·1 answer
  • Pieter is a network administrator for a growing company and has decided to implement Kerberos. He knows that Kerberos uses a tic
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!