Challenge 13 - Create a program to ak the uer their age and if it i between 4 and 16 it hould output
"You are in chool", otherwie output "You are not of chool age"

Answers

Answer 1

Answer:

age = int(input("Enter your age: "))

if age >= 4 and age <= 16:

   print("You are in school")

else:

   print("You are not in school age")

Explanation:

since you didnt mention the program you’re using, im going to answer it using python. if there's anything to amend let me know!


Related Questions

nonvolatile in the context of a data warehouse means _____.
a. the data can only be changed if it is also modified in the system where it was originally calculated
b. the data can't be changed while reports are running
c. the data cannot be changed or updated by users of the data warehouse
d. the data mart must be used when modifying information

Answers

Answer:

c. the data cannot be changed or updated by users of the data warehouse

true or false: the ticketing area is more secure than the area beyond the security check point. (antiterrorism scenario training, page 3) true

Answers

False. In an antiterrorism scenario training, the area beyond the security checkpoint is typically considered to be more secure than the ticketing area.

Why is ticketing area not as secure as security checkpoint?

This is because the security checkpoint is designed to prevent unauthorized individuals from entering the secure area, and to detect and prevent any potential threats from entering.

In contrast, the ticketing area is generally open to the public and is not as heavily guarded or monitored as the area beyond the security checkpoint. As a result, the ticketing area is considered to be less secure than the area beyond the security checkpoint.

To Know More About Airport Safety, Check Out

https://brainly.com/question/28295545

#SPJ1

(576)8. In to ( )16 ( )8

Answers

Answer:

around ()72381 approx

Explanation:

approximately not accurate

the act of attempting to acquire information such as user names, passwords, and credit card details by acting as a trustworthy entity in an electronic communication is called

Answers

The act of attempting to acquire information such as user names, passwords, and credit card details by acting as a trustworthy entity in an electronic communication is called phishing.

What are the types of social engineering attacks?

Generally speaking, cyber attacks often require long periods of planning and intelligence gathering to lay the groundwork. Also, some examples of social engineering attacks include the following:

VishingBaitingTailgatingWater-holingSpear phishingPretextingPhishingQuid pro quo

What is phishing?

In Computer technology, phishing can be defined as a type of cyber attack (social engineering) which involves making an attempt to obtain sensitive user information such as a password, especially by disguising as a trustworthy entity in an electronic communication (email), and usually over the Internet.

In conclusion, a training on phishing attacks is a topic that would benefit many employees and end users.

Read more on phishing here: brainly.com/question/23850673

#SPJ1

programming terminologies ​

Answers

There are many different terminologies used in the field of programming. Some common ones include:

Algorithm: A set of well-defined instructions used to perform a specific task or solve a problem.

Compiler: A program that translates source code written in a high-level programming language into machine code that can be executed by a computer.

Debugging: The process of finding and fixing errors or bugs in a program.

Syntax: The set of rules governing the structure and form of expressions in a programming language.

Variable: A named storage location in a program that can hold a value.

Function: A named block of code that performs a specific task and can be reused in a program.

Object: A self-contained entity that combines data and functionality, often used in object-oriented programming languages.

Loop: A control flow construct that allows a block of code to be repeated multiple times.

Class: A template or blueprint for creating objects in object-oriented programming languages.

Library: A collection of pre-written code that can be used to add functionality to a program.

These are just a few of the many terms used in programming, and the specific terminology used can vary depending on the programming language and the context in which it is used.

What aspect of today’s business environment is central to the need for robust transaction management processing systems?

Answers

The aspect of today’s business environment that is central to the need for robust transaction management processing systems is option C - need to handle financial calculations to monitor performance.

What does financial oversight entail?

The delay between capital expenditure and the receiving of goods and services is shortened by e-commerce. Every day, more businesses are using the internet to sell their products and services. E-commerce is having a favorable impact on business marketing.

Therefore, the use of Balance sheets, income statements, and cash flow statements are financial statements that are used to assess overall financial performance. Hence, Financial performance indicators are quantitative measurements used to assess an organization's performance and thus widening one's business reach demands more robust system.

Learn more about business environment from

https://brainly.com/question/26589766
#SPJ1

What aspect of today's business environment is central to the need for robust transaction management processing systems? desire to track the stages of project fulfillment need to handle financial calculations to monitor performance proliferation of e-commerce-based organizations need to replace manual drafting and design

what type of detector can be installed in elevator lobbies that interface with elevator control systems to establish recall priorities during fire emergencies?

Answers

A type of detector which can be installed in elevator lobbies that interface with elevator control systems to establish recall priorities during fire emergencies is: C. Smoke.

What is a smoke detector?

A smoke detector simply refers to a mechanical and electrical device that is designed and developed to detect the presence of smoke in a particular place, while alerting residents through an alarm system.

Generally speaking, a smoke detector is best used in small confined places such as a kitchen. Additionally, a smoke detector should be installed in elevator lobbies as a safety precaution in order to mitigate fire emergencies and other smoke-related hazards.

Read more on smoke detector here: https://brainly.com/question/29376187

#SPJ1

Complete Question:

What type of detector can be installed in elevator lobbies that interface with elevator control systems to establish recall priorities during fire emergencies?

Flame

Heat

Smoke

Beam

rather than retrieving or manipulating the data directly, applications send instruction to the dbms and the dbms carries out those instructions and sends the results back to the application. question 51 options: true false

Answers

Applications can submit instructions to the DBMS, and the DBMS executes those instructions, rather than directly accessing or altering the data.

What is Structured Query Language?

The exceptionally comprehensive set of questions is intended to strengthen and advance students' comprehension of the ideas. database manipulation and processing. Data manipulation language is used to process or manipulate the database's data. A standard programming language known as "structured query language" is used to extract, organise, manage, and manipulate data held in relational databases. A computer language called Structured Query Language is used to interact with and communicate with databases. To retrieve data from a database, use the data manipulation command databases.

To learn more about Data manipulation from given link

brainly.com/question/18298234

#SPJ4

when using a(n) join, only rows from the tables that match on a common value are returned. a. full b. outer c. inner d. set. multiple choice answer

Answers

The rows as from tables that correspond on a shared value are returned when utilizing an inner join.

What is the name of a computer table?

A computer table, often known as an array in video processing, is a logical collection of fields. Tables may include data that is updated often or instantly. For instance, as sectors are written, a table saved within such a disk sector is updated. A table's primary purpose is to organize data.

What purposes do tables serve?

Data that is far too complex or extensive to be fully conveyed in the text is organized in tables so that the reader may easily see the outcomes. Icons are able to draw attention to the news or patterns among the data or to improve the readability of a publication by excluding text-based numerical information.

To know more about Tables visit :

https://brainly.com/question/22736943

#SPJ4

Write a program that takes in a line of text as input and outputs that line of text in reverse.

Answers

Answer:

Here is one possible implementation of a program that takes a line of text as input and outputs the line in reverse:

# Get input from the user

line = input("Enter a line of text: ")

# Reverse the line of text using the slicing technique

# with a step of -1 to go through the string backwards

reversedLine = line[::-1]

# Print the reversed line of text

print(reversedLine)

Here is an example of how this program might be used:

Enter a line of text: Hello, world!

!dlrow ,olleH

Develop a program that allow to determine through a function the alary to be paid for a aleperon baed on 15% of the ale made. The ale made are undetermined or may vary. - indicate through comment in programming which variable identifier are local, - demontrate the ue of the concept of a global variable, ue a variable identifier called alary to repreent the concept of a global variable. Which are global and the

Answers

Here is an example of a program that allows you to determine the salary to be paid to a salesperson based on 15% of the sales made. This program uses the concept of global and local variables, as well as comments to indicate which variables are local.

// Global variable to hold the salary

double salary;

// Function to calculate the salary based on the sales made

double calculateSalary(double sales)

{

   // Local variable to hold the percentage of the sales

   double percentage = 0.15;

   

   // Calculate the salary based on the percentage of the sales

   double salary = sales * percentage;

   

   // Return the calculated salary

   return salary;

}

int main()

{

   // Input the sales made by the salesperson

   double sales = 0;

   cin >> sales;

   

   // Calculate the salary using the calculateSalary function

   salary = calculateSalary(sales);

   

   // Output the calculated salary

   cout << "The salary is: " << salary << endl;

   

   return 0;

}

In this program, the calculateSalary function takes in the sales made by the salesperson as an input and returns the salary to be paid based on 15% of the sales. The calculateSalary function has a local variable called percentage that holds the percentage of the sales to be used to calculate the salary.

The main function is used to input the sales made by the salesperson and call the calculateSalary function to calculate the salary. The salary variable used in the main function is the same global salary variable defined at the beginning of the program, which is used to store the calculated salary.

The comments in the program indicate which variables are local (e.g. percentage) and which are global (e.g. salary). This can help to clarify the scope and purpose of each variable used in the program.

What is the default sprite provided by Scratch?

A.
dog

B.
cat

C.
frog

D.
bird

Answers

The answer is cat if you listen

Which type of programming language translates the entire code before running any of the instructions/steps?.

Answers

A compiled programming language is a type of programming language that translates the entire code into machine code before running any of the instructions or steps. This machine code can then be executed by the computer directly, without the need for a separate compiler to be run each time the code is executed.

In contrast, an interpreted programming language translates the code into machine code at runtime, meaning that the instructions are executed by the computer as they are encountered in the code. This can make interpreted languages slower than compiled languages, but it also allows for more flexibility and can make it easier to debug and modify the code.

Examples of compiled programming languages include C, C++, and Rust, while examples of interpreted programming languages include Python, JavaScript, and PHP.

Which type of programming language translates the entire code before running any of the instructions/steps?.

Answers

A compiler translates code in a high-level language all at once and then runs it.

which methods can you use to migrate user settings from windows 8.1 to windows 10? (choose all that apply.)

Answers

Note that the methods can you use to migrate user settings from Windows 8.1 to Windows 10 are:

Use the User State Migration Toolkit. (option A)Perform an upgrade over the top of the old operating system. (Option E). This is called Windows Migration.What is Windows Migration?

Migration programs are available to migrate settings from one Windows PC to another. These tools only transfer program settings and not the applications themselves. See the Application Compatibility Toolkit for additional information on application compatibility (ACT).

Migration Toolkit is a robust command-line utility that provides granular control over the migration process. The Migration Toolkit assists in the migration of database objects and data from an Oracle database to an EDB Postgres Advanced Server or PostgreSQL database.

Note that the Windows Update is a cloud-based service that keeps Microsoft Windows and other Microsoft applications, such as Windows Defender, up to date. Patches and updates often offer feature additions as well as security fixes to safeguard Windows against viruses.

Learn more about Windows MIgration:
https://brainly.com/question/29353983
#SPJ1

Full Question:

Which methods can you use to migrate user settings from a previous operating system to Windows 10? (Choose all that apply.)

Use the User State Migration Toolkit.

Use Remote Desktop to copy to files.

Use Windows Easy Transfer.

Copy the user profile from the old computer to the new computer.

Perform an upgrade over the top of the old operating system.

which part of the data packet is the actual data from the file?

Answers

Answer:

The payload is the actual data

Explanation:

packet is divided into three parts; the header, payload, and trailer

Which characteristics differentiate a solid state drive (ssd) from a hard disk drive (hdd)? select all that apply.

Answers

The characteristics that differentiate a solid state drive (ssd) from a hard disk drive (hdd) is option B and C:

Smaller form factorNon-moving parts

What is SSD about?

SSDs employ more recent technology that saves data on memory chips that are readily accessible. SSDs are more dependable, faster, quieter, smaller, and use less energy. HDDs are more affordable, offer greater storage space, and make data recovery from damage simpler.

Therefore, in terms of smaller form factor; SSDs use non-volatile memory in addition to having no moving parts and a tiny form factor and in terms of non-moving components; SSDs are smaller, use non-volatile memory, and contain no moving parts.

Learn more about solid state drive from

https://brainly.com/question/28346495

#SPJ1

See full question below

What characteristics distinguish a Solid State Drive from a Hard Disk Drive? Check all that apply.

High RPMs

Smaller form factor

Non-moving parts

Uses Disk Platters

Why would politicians choose to use online videos to effectively convey a message quizlet.

Answers

Answer:

Because today's society is most likely to watch the video then to read a newspaper or letter

I hope this helps :)

How do online pharmacies challenge the traditional business model of pharmacies and drug firms

Answers

Online pharmacies challenge the traditional business model of pharmacies and drug firms to a larger extent in this modern world of science and technology.

What is the drawback of using an online pharmacy?

The drawback of using an online pharmacy is that there is no one you can contact face to face. When patients want to ask questions about the drugs they are taking, it is very difficult for them to reach a licensed pharmacist. For this reason, it may not be possible for patients to access their medication on the same day.

In this era of technology, people want to take their prescriptions along with the delivery of medicines online. This is because they are busier in their lives and do not have time to arrange an appointment with doctors very frequently.

Apart from this, the preparation of drugs also has certain kinds of technology that easy and efficient it's production.

To learn more about Online pharmacies, refer to the link:

https://brainly.com/question/28569528?source=archive

#SPJ1

a rule that requires that the values in a foreign key must have a matching value in the primary key to which the foreign key corresponds is called:

Answers

A referential integrity restriction is a requirement that the values in an unique identifier must match the values in the main key to which the unique identifier belongs.

Primary and foreign keys: what are they?

To guarantee that the data in a given column is unique, a key value is employed. A relational database table's foreign key refers to a column or set of columns that creates a connection between the data in two tables. That gives a record in a relational database table a special identification.

What characteristics does a foreign key have?

A primitive kind property (or group of primitive kind properties) on one entity type that includes the object key of some other entity type is known as an unique key property inside the Entity Database Schema (EDM). In a relational database, a foreign key column is equivalent to a foreign key property.

To know more about foreign keys visit :

https://brainly.com/question/15177769

#SPJ4

true or false: on-site seo deals with the formatting of content on the website to maximize its chances of ranking for all desired searches.

Answers

On-site SEO deals with the formatting of content on the website to maximize its chances of ranking for all desired searches: True.

What is Search engine optimization (SEO)?

Search engine optimization (SEO) can be defined as a strategic process which is typically used to improve and maximize the quantity and quality of the number of visitors (website traffics) that visits a particular website, by making it appear topmost among the list of results displayed by a search engine such as the following;

BingGoo-gleYah-oo

This ultimately implies that, search engine optimization (SEO) can help individuals and business organizations to maximize the amount of traffic that is generated by their website, through the strategic formatting of content on the website and placement at the top of the results returned by a search engine.

Read more on search engine here: brainly.com/question/27965856

#SPJ1

which term is not a method for practicing green computing? choices: virtualization, cloud computing, cookies, server workloads moved to off-peak hours, tidal powered servers

Answers

To "virtualize" anything is to create a virtual or artificial version rather than the real thing. virtualization  term is not a method for practicing green computing.

What is green computing?The design, manufacture, use, and disposal of computers, chips, other technology components, and peripherals in a way that limits the negative impact on the environment, including reducing carbon emissions and the energy consumed by manufacturers, data centres, and end-users, is known as green computing (also known as green IT or sustainable IT). In addition to choosing raw materials with sustainable sourcing, minimising electronic waste, and promoting sustainability through the use of renewable resources are all included in green computing.There is a lot of potential for green computing to be environmentally beneficial. Between 1.8% and 3.9% of the world's greenhouse gas emissions are attributable to the information and communication technology (ICT) industry. Furthermore, data centres now consume 3% of all energy consumed annually, a 100% increase over the previous ten years.

To learn more about green computing refer to:

https://brainly.com/question/22879179

#SPJ4

as you configure your client for public key authentication, you decide to generate the dsa key pair. you would like to configure the client to automatically provide the private key passphrase when needed so that you do not need to type the passphrase for every new ssh connection to a server. which command should you use in conjunction with the ssh-agent bash command? (enter the command and options as if you are at the command prompt.)

Answers

The command that you should use in conjunction with the ssh-agent bash command is: ssh-add ~/.ssh/id_dsa

What does SSH-add ~/ ssh Id_rsa do?

SSH's key manager is called ssh-agent. Your keys and certificates are kept there in memory, unencrypted and available for use by ssh. You don't have to type a passphrase each time you connect to a server because of it.

Therefore, the private key password is requested from the user and added to the list kept by ssh-agent using the ssh-add command. When using SSH or scp to access to hosts with your public key, you won't be prompted for your password once you've added it to ssh-agent.

Learn more about ssh-agent from

https://brainly.com/question/29658823
#SPJ1

Within minutes, flashing lights illuminated the shattered windows. Paramedics examined both of them. When they were told they needed to go to the emergency room, Eli protested. He refused to get into the ambulance as Dave had already done.

The paramedics tried to reason with him. Eventually, he relented and mounted the stretcher.

His panic about the coming medical costs distracted him from the pain in his neck. All he could think about was the hardship this would bring upon his parents. Soon, though, his thoughts were drowned out completely by the siren’s shrill blaring.

Several months later, the insurance claims had all been processed. Because Dave was not at fault in the crash, the other driver’s insurance had to pay for everyone’s medical bills. Eli and his father breathed a sigh of relief.

Which conclusions can be drawn about Eli’s situation? Check all that apply.

He may still be covered in some cases.
He can avoid problems by being cautious.
He faces more risk than insured people do.
He may have to take precautions, but many factors are beyond his control.
Not being able to afford insurance was a factor in him not being covered.

Answers

Not being able to afford insurance was a factor in him not being covered. Hence option D is correct.

What is insurance?

Insurance is defined as a legal arrangement whereby an insurer defends another against losses resulting from particular calamities or dangers. It helps shield the insured person or their family from monetary loss.

It should be mentioned that Eli initially resisted being placed on the stretcher even after the accident. Textual proof demonstrates that he became anxious about the impending expenses as a result of his lack of insurance.

Thus, not being able to afford insurance was a factor in him not being covered. Hence option D is correct.

To learn more about insurance, refer to the link below:

https://brainly.com/question/27822778

#SPJ1

Answer:

AAAA BBBB DDDDD EEEEE

Explanation:

if there are multiple functional dependencies (fds) for the relation, then we have multiple choices for the order in which we apply the fds in the bcnf normalization procedure. question: would those different orders (of applying fds) lead to different sets of new relations?

Answers

If there are multiple functional dependencies (fds) for the relation, then we have multiple choices for the order in which we apply the fds in the bcnf normalization procedure. Would those different orders (of applying fds) lead to different sets of new relations , yes.

What is normalization ?In a big database with just one relation, data duplication could happen. Repetition of the data may result in: Significantly expanding associations. Data maintenance and updating are challenging due to the need to look through several connected entries. Resources are wasted, and disc space is used inefficiently. Inconsistencies and errors are more likely to happen. The best way to overcome these challenges is to break down relations with redundant data into smaller, simpler, and well-structured relations that satisfy desirable qualities. The process of normalization involves breaking down the relationships into relationships with less traits. The main argument for normalizing the connections is to get rid of these irregularities

To learn more about normalization refer to:

https://brainly.com/question/28170867

#SPJ4

Nadia has found some interesting information on the internet that supports the main idea of a paper that she is writing. She wants to make sure the information she has found is valid and comes from a credible source. What steps can Nadia take to effectively determine if the information she has found online is accurate and valid?

Answers

Nadia can effectively determine if the information she has found online is accurate and valid by knowing that the importation gotten from the below factors are valid and credible:

Encyclopedias.Textbooks.Websites that stat with . edu or . org domains.News sources that has  first-hand reporting.Research-oriented magazines such as ScienceMag, Nature Weekly etc.

Why is a source reliable and trustworthy?

The ability to recognize reliable sources is crucial. Understanding depth, objectivity, currency, authority, and purpose are prerequisites for this skill. It is a good idea to assess your source using these five criteria regardless of whether or not it has undergone peer review.

Therefoe, one can say that complete, well-supported hypothesis, argument, discussion, etc. based on solid evidence is a sign of a credible source. scholarly, peer-reviewed books or articles that have been authored by academics for academics. original study with a large bibliography.

Learn more about credible source from

https://brainly.com/question/24266723
#SPJ1

a user receives an e-mail warning of a dangerous computer virus and instructing the user to delete files it claims were put there by the virus. however, the files are actually critical system files. which term best describes this scenario?

Answers

You gave an example of a hoax when you said that a user would get an email warning them of a deadly computer virus and be told to destroy important system files.

Which of the following describes the best way to stop a shoulder surfing assault from obtaining information? Users must be conscious of their surroundings and prevent others from occupying a space from where they may see what the user is about to enter.Using this software, known as Master boot record ransomware, an attacker could threaten to publish the victim's data online if they refuse to pay a ransom.You gave an example of a hoax when you said that a user would get an email warning them of a deadly computer virus and be told to destroy important system files. A hoax is a message that is intentionally untrue or misleading in order to fool or deceive the recipient.      

To learn more about Computer virus refer to:

https://brainly.com/question/26128220

#SPJ4

Please help with coding from a beginner's computer sci. class (Language=Java)

Assignment details=

1. Write code for one round.
a. Get the user’s selection using a Scanner reading from the keyboard.
Let's play RPSLR!

1. Rock
2. Paper
3. Scissors
4. Lizard
5. Spock
What is your selection? 4

b. Get the computer’s selection by generating a random number.
c. Compare the user’s selection to the computer’s selection.
d. For each comparison, print the outcome of the round.
You chose Lizard.
The Computer chose Spock.
Lizard poisons Spock.
The User has won.

2. Modify your code by adding a loop.
a. Add a loop to your code to repeat each round.
b. Ask if the player wants to play again. If the player doesn’t want to play again, break out
of the loop.
Do you want to play again? (Y or N) Y
3. Add summary statistics.
a. Add variables to count rounds, wins, losses, and draws and increment them
appropriately.
b. After the loop, print the summary information.
______SUMMARY_______
Rounds: 13
Wins: 5 38.5%
Loses: 7 53.8%
Draws: 1 7.7%

Answers

Answer: Here is some sample code that demonstrates how to complete the assignment using Java:

import java.util.Random;

import java.util.Scanner;

public class RPSLR {

   public static void main(String[] args) {

       // Initialize scanner for reading user input

       Scanner scanner = new Scanner(System.in);

       // Initialize random number generator for computer's selection

       Random random = new Random();

       // Initialize counters for rounds, wins, losses, and draws

       int rounds = 0;

       int wins = 0;

       int losses = 0;

       int draws = 0;

       // Main game loop

       while (true) {

           // Get user's selection

           System.out.println("Let's play RPSLR!");

           System.out.println("1. Rock");

           System.out.println("2. Paper");

           System.out.println("3. Scissors");

           System.out.println("4. Lizard");

           System.out.println("5. Spock");

           System.out.print("What is your selection? ");

           int userSelection = scanner.nextInt();

           // Get computer's selection

           int computerSelection = random.nextInt(5) + 1;

           // Compare selections and determine outcome

           String outcome;

           if (userSelection == computerSelection) {

               outcome = "draw";

               draws++;

           } else if ((userSelection == 1 && computerSelection == 3) ||

                      (userSelection == 1 && computerSelection == 4) ||

                      (userSelection == 2 && computerSelection == 1) ||

                      (userSelection == 2 && computerSelection == 5) ||

                      (userSelection == 3 && computerSelection == 2) ||

                      (userSelection == 3 && computerSelection == 4) ||

                      (userSelection == 4 && computerSelection == 2) ||

                      (userSelection == 4 && computerSelection == 5) ||

                      (userSelection == 5 && computerSelection == 1) ||

                      (userSelection == 5 && computerSelection == 3)) {

               outcome = "win";

               wins++;

           } else {

               outcome = "lose";

               losses++;

           }

           // Print outcome of round

           String userSelectionString;

           String computerSelectionString;

           if (userSelection == 1) {

               userSelectionString = "Rock";

           } else if (userSelection == 2) {

               userSelectionString = "Paper";

           } else if (userSelection == 3) {

               userSelectionString = "Scissors";

           } else if (userSelection == 4) {

               userSelectionString = "Lizard";

           } else {

               userSelectionString = "Spock";

           }

           if (computerSelection == 1) {

               computerSelectionString = "Rock";

           } else if (computerSelection == 2) {

               computerSelectionString = "Paper";

           } else if (computerSelection == 3) {

               computerSelectionString = "Scissors";

           } else if (computerSelection == 4) {

               computerSelectionString = "Lizard";

           } else {

               computerSelectionString = "Spock";

           }

Assignment 4 divisible by three
I need a little help. I do not understand what I am doing wrong. I keep getting this message in the picture included.

n = int(input("How many numbers do you need to check? "))

divisible = 0

notdivisible = 0

for x in range(n):

num = int(input("Enter number: "))

if num % 3== 0:

divisible += 1

print(str(num)+" is divisible by 3.")

else:
num % 3== 0

notdivisible += 1

print(str(num)+" is not divisible by 3.")

print("You entered "+str(divisible )+" number(s) that are divisible by 3.")

print("You entered "+str(notdivisible )+" number(s) that are not divisible by 3.")



n = int(input("How many numbers do you need to check? "))

divisible = 0

notdivisible = 0

for x in range(n):

num = int(input("Enter number: "))

if num % 3== 0:

divisible += 1

print(str(num)+" is divisible by 3.")

else:
num % 3== 0

notdivisible += 1

print(str(num)+" is not divisible by 3.")

print("You entered "+str(divisible )+" number(s) that are divisible by 3.")

print("You entered "+str(notdivisible )+" number(s) that are not divisible by 3.")

Answers

Answer:

I'm not sure if this is the problem, but you do else: num % 3 == 0. I don't think this should be here. In the else case, it is not divisible by 3, so you only need to add 1 to the notdivisible variable.

Explanation:

The issue is with the line num % 3 == 0 in the else statement. This is a comparison expression that evaluates to either True or False and does not change the value of notdivisible.

What is programming?

Computer programming is the process of carrying out a specific computation, typically by designing and constructing an executable computer programme.

Here's the corrected code:

n = int(input("How many numbers do you need to check? "))

divisible = 0

notdivisible = 0

for x in range(n):

   num = int(input("Enter number: "))

   if num % 3 == 0:

       divisible += 1

       print(str(num) + " is divisible by 3.")

   else:

       notdivisible += 1

       print(str(num) + " is not divisible by 3.")

print("You entered " + str(divisible) + " number(s) that are divisible by 3.")

print("You entered " + str(notdivisible) + " number(s) that are not divisible by 3.")

Thus, this code should correctly count the numbers that are divisible and not divisible by 3.

For more details regarding programming, visit:

https://brainly.com/question/11023419

#SPJ2

refer to the exhibit. from a laptop, which desktop icon is required to allow you to configure a switch using cli commands?

Answers

When we refer to the exhibit. from a laptop, the desktop icon that is required to allow you to configure a switch using cli commands is option  D; no connectivity: switch 2

How does CLI work?

A Command Line Interface, often known as CLI, links a user to an operating system or computer software. Users interact with a system or application through the CLI by inputting text (commands). The command is entered on a specified line after the computer displays a visual prompt.

Therefore, note that user types a command into the Command Line Interface (CLI), a non-graphical, text-based interface to the computer system, and the computer successfully carries it out. The platform or IDE that offers the user a command line interface (CLI) environment is known as the Terminal.

Learn more about cli commands  from

https://brainly.com/question/25480553
#SPJ1

See options bellow

connectivity: PC-B

no connectivity: switch 1

no connectivity: PC-C

connectivity: switch 2

connectivity: PC-D

Other Questions
Guillermo bought textbook and notebook at the booktore. The number of textbook wa three more than twice the number of notebook. He bought even notebook. How many textbook did he buy ? a nurse prepares an educational program for women during antenatal care. an outcome of the teaching is to lower the risk of antisocial personality disorder (aspd) in the population who access the program. which is a priority teaching need? an office building earns $850,000 per year, and expenses are 35% of that amount. if the property is capitalized at 12%, what is its approximate value Compared with people in developing countries, people in industrialized countries are more likely to eat. The Time Traveler's Guide to Elizabethan England,Ian MortimerEach theater shows twenty or thirty plays a year, changing the program every day. In 159495 the Lord Admiral's Men perform a total of thirty-eight plays, twenty-one of which are newly written. One in three adult Londoners sees a play every month.What is Ian Mortimer's primary purpose in this passage? Name one state that decide to use their colonial charter instead of a new state constitution Critical thinking can also be called problem solving. please select the best answer from the choices providedA. true B. false doreen schmidt is a chemist. she needs to prepare 36 ounces of a 11% How many years did the history and culture of the Sui and Tang Dynasties last, and what impact did it have on China later? What impact does the personification of the speakers heart and the imagined conversation between the speaker and her heart have on the tone in the poem? Which is the best definition of a boundary line for a linear inequality?The line that divides the plane into an area that is triangular and an area that is rectangular.The line that divides the plane into an area with solutions and an area that does not have solutions.The line that divides the plane into four quadrants.The line that divides the plane into eight quadrants. Graph the equation on the coordinate plane Y=1/2x-3 Question 12 of 20 What was one of President George Washington's economic policies? A. Using state taxes to pay off war debts OB. Creating a national bank C. Promoting trade with foreign countries O D. Having states assume government debt stars with more than 15 times the mass of our sun usually evolve from the main sequence to red giants If baeball cot $12 and are marked down by the ame percentage a baeball bat, how much will a baeball cot? The formula for explicit sequence A cold wind raked across the barren moor and night was beginning to set in when we reached our final destination. The horses' hooves beat a steady drum as the carriage proceeded up the sweeping length of the driveway. At last we came to a stop in front of a crumbling mansion. One light shone brightly near an upper window, but the rest of the house was in inky darkness.Which of these images from the selection most clearly contributes to the mood? The mood is bleak and eerie.a. the light shining in the upper windowb. the sweeping length of the drivewayc. the steady drum of the horses' hoovesd. the cold wind raking across the moor THE SOULITIONS TO the inequality y>-3x+2 are shaded in the graph. Which point is a solution?A. (0,2)B. (2,0)C. (1,-2)D.(-2,1) A car traveling at 70 m/s comes to a complete stop in a time of 50 sec. What is the car's acceleration? What is a difference between a formal inquiry and an informal inquiry? A formal inquiry supports causal research, while an informal inquiry supports in-depth research. A formal inquiry includes unofficial surveys, while an informal inquiry asks no specific questions. A formal inquiry includes a set purpose or goal, while an informal inquiry has no set procedure.