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
ollegr [7]
4 years ago
15

For this question you should write code using the tools you learned so far. The code will find all the integers in the interval

from 1 to 12000 that are divisible by both 3 and 14. Print all the numbers that satisfy this criterion and also print a statement saying how many such number exist in the range. Hint: The "modulo" operator is denoted by a percent sign % in Python. It returns the remainder when two integers are divided. For example, 5%2 (read: "5 mod 2") returns a value of 1, because 5 divided by 2 is 2 with the remainder 1. The result of a modulo x%d is always between 0 and d-1. Use the modulo operator to help determine if one integer is divisible by another. Second Hint: Remember the logical operators and, or and not are available in Python.
Computers and Technology
1 answer:
kvasek [131]4 years ago
8 0

Answer:

The code in Python 3.7 than answers this question is given below:

def main():

 cont = 0

 for i in range(1, 12001):

   if i%3 == 0 and i%14 == 0:

     print(i)

     cont += 1

 print("{} numbers are divisible by 3 and 14".format(cont))

if __name__== "__main__":

 main()

Explanation:

#Create the main function, inside this is our logic to solve the problem

def main():  

#Define a cont variable that storage the amount of numbers that satisfy the condition given

 cont = 0  

 #For loop between 1 and 12000

 for i in range(1, 12001):

   #Use the mod function to know if is divisible by 3 and by 14

   if i%3 == 0 and i%14 == 0:

     #Print the number that satisfy the condition

     print(i)    

     #Refresh the cont variable if the condition is satisfied

     cont += 1

     #Print the output  

  print("{} numbers are divisible by 3 and 14".format(cont))

if __name__== "__main__":  

 #Run the main function

 main()  

 

You might be interested in
A circuit has a resistance of 300 ohm and a current of 0.024 A. What is the voltage in the circuit?
fomenos
**Formula

If u want to calculate voltage:
Current x Resistance

so the answer is D

Current:
Voltage ÷ Resistance

Resistance:
Voltage ÷ Current
7 0
3 years ago
How computer viruses spread from one computer to another​
morpeh [17]
Viruses spread when the software or documents they get attached to are transferred from one computer to another using a network, a disk, file sharing methods, or through infected e-mail attachments. Some viruses use different stealth strategies to avoid their detection from anti-virus software.
8 0
3 years ago
You are the security administrator for a bank. The users are complaining about the network being slow. It is not a particularly
bulgar [2K]

Answer:Denial of service

Explanation:Denial of service is the type of attack that is caused to the computer attacks. These attacks basically cause the circumstances such as difficulty in accessing of the website or resource, accessing particular computer system , creation of the traffic in network, This attack occurrence stops or create difficulties for the legal person to access the network .

Therefore, there is the occurrence of the Denial of service(DoS) in the bank's computer network.

3 0
3 years ago
How do we know if we can believe the things on the internet?
Gnom [1K]

Answer:

you have to check for reliability

Explanation:

3 0
3 years ago
Read 2 more answers
Which is an example of oversharing using GPS?
sergij07 [2.7K]
I believe it is D


Social media networks make it easy to help share what’s going on in your life. The problem is when the wrong people get hold of that information. Criminals are smart. They’re connected, and they know how to use the Internet to their advantage. Stalking a victim, getting to know their routines and the times they’re home (and when they’re not) is as easy as opening a web browser and checking an open account. This excellent infographic from Credit Sesame helps illustrate exactly how your social media info can be misused. Last week, Cult of Mac ran a story that went viral about an app called Girls Around Me which aggregated public profiles of women in an area. Everything from check-ins, status updates, profiles and photo albums were aggregated for app users to see. As a result of the article, Foursquare has since revoked the app’s API access, disabling many of the app’s features. Scary stuff. While the app is hopefully mothballed, it highlighted a lot of security risks that are associated with being on social media. The safest option is to simply not use social media. But I’ll be honest: I can’t imagine deleting my social profile. Luckily, you don’t have to. Being vigilant about safeguarding your profile – and being selective about what you share and who you share it with – can help reduce the risk of using social media.


If you need more info LMK. If this is incorrect please comment that it is, along with the correct answer so I can figure out my error, have a great day TPWK
7 0
3 years ago
Read 2 more answers
Other questions:
  • When a chart is inserted into a Word document, it displays
    15·2 answers
  • Approximately what percent of U.S. businesses have some form of remote work program? (from Chapter 1)
    14·1 answer
  • Excel solver is the only method that one can utilize for automated linear programming solutions. True or False
    8·1 answer
  • Write a program that reads in two integers typed on the keyboard and outputs their sum, difference, and product.
    12·1 answer
  • What is the output of the following code snippet? double salary = 55000; double cutOff = 65000; double minSalary = 40000; if (mi
    6·1 answer
  • What do you need to know when buying screws<br>​
    12·2 answers
  • Could someone give an example or tell me what all of these mean? (For internet source citing)
    10·1 answer
  • How do I make someone "Brainiest". <br> First person to reply will get "Brainiest"
    8·2 answers
  • State Newton’s second law of motion. Show that Newton’s first and third laws of motion are contained in the second law​
    9·1 answer
  • PLEASE HELP
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!