013 Ask the user to enter a number that is under 20. If they enter a number that is 20 or more, display the message "Too high", otherwise display "Thank you".​

Answers

Answer 1

num = int(input("Please enter a number below 20:    "))

if num >= 20:

   print("Too high")

else:

   print("Thank you")

Answer 2

The provided Python code is a simple input validation script. It prompts the user to enter a numerical value using the `input()` function and converts the input to an integer using `int()`.

var = int (input ("Enter a value less than 20: " ))

if var >= 20 :

     print("To high")

else:

      print("Thank you")

The code then checks if the entered value (`var`) is greater than or equal to 20 using an `if` statement.

If the user enters a number that is 20 or more, the script prints "Too high," indicating that the input is not within the desired range.

However, if the user enters a number less than 20, the `else` block is executed, and the script prints "Thank you," acknowledging the valid input. This code helps ensure the user provides an appropriate value within the specified limit.

Know more about Python code:

https://brainly.com/question/30427047

#SPJ5


Related Questions

making smart communication system is main application of?​

Answers

Answer:

Typical communications applications include wireless systems using RF and microwave, MIMO, wireless LAN's, mobile phones, base station monitoring, surveillance, satellite communications, bus testing, cable testing, antenna and transmitter testing.

Can you solve this program?

Answers

The attributes of the InventoryTag object red_sweater with sample output for the given program with inputs: 314 500 ID: 314 Qty is given:

The Attributes

Sample output for the given program with inputs: 314 500

ID: 314

Qty: 500

1 class InventoryTag:

2 def __init__(self):

3 self. item_id

4 self. quantity remaining – olol

5

6 red_sweater – InventoryTag

7 red sweater. itemid input

8 red_sweater. quantity remaining – input

9 def split. check(check_amount, numdiners, tax rate 0.09, tip. rate 0.15):

10 return check mount (180 + tip. rate 100 tax rate 100)/(100 num diners)

Read more about computer programs here:

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

Which roles Primary responsibility is the handling of the physical media

Answers

The physical layer is in charge of transmitting computer bits from one device to another across the network.

What is physical media?

Physical media are the physical materials used to store or transmit data in data communications.

These physical media are typically physical objects made of metals or glass. They have physical properties such as weight and color and can be touched and felt.

Unguided Media or Unbounded Transmission Media are other terms for wireless communication. There is no physical medium required for the transmission of electromagnetic signals in this mode.

The physical layer is in charge of sending computer bits across the network from one device to another.

Thus, this is the role that Primary responsibility is the handling of the physical media.

For more details regarding physical media, visit:

https://brainly.com/question/5045828

#SPJ1

Hello, I've tried everything and I cannot get this code to be fair. I need help. Can someone provide guidance so I can understand how to formulate the proper code for this question so I can understand how it should be set up in Python or Python #. Thanks truly. I really appreciate a response. Enjoy your day:

2.26 LAB: Seasons
Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day.

Ex: If the input is:

April
11
the output is:

Spring
In addition, check if the string and int are valid (an actual month and day).

Ex: If the input is:

Blue
65
the output is:

Invalid
The dates for each season are:
Spring: March 20 - June 20
Summer: June 21 - September 21
Autumn: September 22 - December 20
Winter: December 21 - March 19

Answers

A program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day is given below:

The Program

input_month = input()

input_day = int(input())

months= ('January', 'February','March', 'April' , 'May' , 'June' , 'July' , 'August' , 'September' , "October" , "November" , "December")

if not(input_month in months):

  print("Invalid")

elif input_month == 'March':

   if not(1<=input_day<=31):

       print ("Invalid")

   elif input_day<=19:

       print("Winter")

   else:

      print ("Spring")

elif input_month == 'April' :

   if not(1<=input_day<=30):

       print("Invalid")

   else:

      print("Spring")

elif input_month == 'May':

   if not(1<=input_day<=31):

       print("Invalid")

   else:

       print("Spring")

elif input_month == 'June':

   if not(1<=input_day<=30):

       print("Invalid")

   elif input_day<=20:

       print ("Spring")

   else:

       print("Summer")

elif input_month == 'July' or 'August':

   if not(1<=input_day<=31):

       print("Invalid")

   else:

       print("Summer")

elif input_month == 'September':

   if not(1<=input_day<=30):

       print("Invalid")

  elif input_day<=21:

       print ("Summer")

   else:

       print ("Autumn")

elif input_month == "October":

   if not(1<=input_day<=31):

      print("Invalid")

   else:

       print("Autumn")

elif input_month == "November":

   if not(1<=input_day<=30):

       print("Invalid")

   else:

       print ("Autumn")

elif input_month == "December":

   if not(1<=input_day<=31):

       print("Invalid")

   elif input_day <=20:

       print ("Autumn")

   else:

       print ("Winter")

elif input_month == 'January':

   if not(1<=input_day<=31):

       print("Invalid")

   else:

       print("Winter")

elif input_month == "February":

   if not(1<=input_day<=29):

       print("Invalid")

   else:

       print ("Winter")

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

which of these indicators could be represented by a single ?

Answers

Answer:

The charge level of the battery (0-100%)

Explanation:

Write the web HTML code for inserting an image into a web run output in case the suggested image is not available​

Answers

Answer:

[tex]{ \tt{ < img \: { \blue{src ={ \orange{"www.image.com" \: { \green{alt = " \: "}}}} }}}/ > }[/tex]

That's the code

What devices do you or people you know use that may have an accelerometer or compass to perform certain tasks or functions

Answers

Answer: your smart phone and even tablet

Iphone( smart phone) tablet computer

write a script that creates and calls a stored procedure named insert_category. first, code a statement that creates a procedure that adds a new row to the categories table. to do that, this procedure should have one parameter for the category name. code at least two call statements that test this procedure. (note that this table doesn’t allow duplicate category names.)

Answers

The script that creates and calls a stored procedure named update_product_discount that updates the discount_percent column in the Products table is given below:

//This procedure should have one parameter for the product ID and another for the discount percent.

If the value for the discount_percent column is a negative number, the stored procedure should signal state indicating that the value for this column must be a positive number.//

Code at least two CALL statements that test this procedure.

*/

DROP PROCEDURE IF EXISTS update_product_discount;

DELIMITER //

CREATE PROCEDURE update_product_discount

(

 product_id_param         INT,

 discount_percent_param   DECIMAL(10,2)

)

BEGIN

 -- validate parameters

 IF discount_percent_param < 0 THEN

   SIGNAL SQLSTATE '22003'

     SET MESSAGE_TEXT = 'The discount percent must be a positive number.',

       MYSQL_ERRNO = 1264;  

 END IF;

 UPDATE products

 SET discount_percent = discount_percent_param

 WHERE product_id = product_id_param;

END//

DELIMITER ;

-- Test fail:

CALL update_product_discount(1, -0.02);

-- Test pass:

CALL update_product_discount(1, 30.5);

-- Check:

SELECT product_id, product_name, discount_percent

FROM   products

WHERE  product_id = 1;

-- Clean up:

UPDATE products

SET    discount_percent = 30.00

WHERE  product_id = 1;

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

In this case:


var a = 6, b = "ten";


if ( a < b || b < a ) {


alert("this is true!");


}


the alert will not be run. It seems that a

Answers

Answer:

I'm sure that code is JS,

so the problem is you are using the < > operator with a number and a string. This is a comparison operator and wouldn't work with any other type than number

Which of the following statements is false? A JavaScript identifier
- is case-sensitive
- can start with a $ sign
- can start with a number
- can be more than 128 characters long

Answers

Answer:

case sensitive, assuming iddentifier here means a variable.

Which of the following is an operating system? Dell MacBook air or windows 10

Answers

Answer:

Windows 10

Explanation:

Dell & Mac Book Air are brands.

Write JavaScript code to convert the number 236.2363611111556 into currency format
and JavaScript statement to show output.

please someone help me, I am asking this for second time.

Answers

The JavaScript code to convert the number 236.2363611111556 into currency format and show output is given below:

The JavaScript Code

function financial(x) {

return Number.parseFloat(x).toFixed(2);

}

This code helps to convert the given number: 236.2363611111556 into currency format..

The code defines a method and function which is x, then uses curly brackets to tell the compiler that a new command is being sent.

Then an already declared variable, Number would be parsed to another variable using float so it could contain decimal numbers.

At the end, the given number: 236.2363611111556 would be converted into currency format..

Read more about javascript here:

https://brainly.com/question/16698901

#SPJ1

Which of these terms refers to a paper printout?

Answers

Answer:

A term that refers to a paper printout is a hardcopy output.

Explanation:

Any output that is available in paper form is typically referred to as a hard copy. It served as a word to set it apart from soft copy (which referred to any electronic form). It was talking about how the paper version appeared to be permanent; you couldn't update the data on a hard copy format without it being clear.

Data that was seen on a screen or saved to disk was considered soft copy, whereas data that was printed out was considered hard copy.

Thanks,

Eddie

When newer consoles are being released, companies make the consoles
compatible. What does this mean?
(1 point)
O The newer consoles are released with higher speeds that allow for better graphics.
O The newer consoles can play games from other brands of consoles.
O
The newer consoles can play the new games but cannot play the games for the
older consoles.
The new consoles can play the games made for the older consoles as well as new
games.

Answers

Answer:

The last option

Explanation:

As the newer consoles allow old console games and also can support the new games made for the console. The games are high graphic and with high fps even if the game is from an older console. Which in turn means making it compatible

A design team is working on an app for a government information tool and suggests this problem statement: Casey just moved to the area and needs to get information about setting up utilities because he doesn’t know who to contact. What element is missing in the problem statement?

User name

Insight

User characteristics

User need

Answers

Answer:

User characteristics

Explanation:

Choose the type of malware that best matches each description.
to be triggered
:infects a computer or system, and then replicates itself, but acts independently and does not need
: tricks the user into allowing access to the system or computer, by posing as a different type of file
infects a computer or system, and then replicates itself after being triggered by the host

Answers

Answer:

B - tricks the user into allowing access to the system or computer, by posing as a different type of file

Answer:

Worm: infects a computer or system, and then replicates itself, but acts independently and does not need to be triggered

Trojan horse: tricks the user into allowing access to the system or computer, by posing as a different type of file

Virus: infects a computer or system, and then replicates itself after being triggered by the host

Explanation:

explain why it is important for you to understand and explain the basic internal and external parts of a computer in the work place setting

Answers

Answer:

Having a good understanding of the terminology and jargon used with computers helps you be more efficient with other technology. 

Explanation:

Anyone connected to the Internet has a better understanding of using the Internet and connecting other devices.

Activity 1 1. How important is ICT in today's generation?​

Answers

ICT help us to make research and it help us to know a lot of things about I.T

What is the output?

int x=5;

if( x > 5)

cout << "x is bigger than 5. ";

cout <<"That is all. ";

cout << "Goodbye\n";

Answers

The output of the given program is "That is all. Goodbye"

What is an Output?

This refers to the result or information that is gotten from a computer system after processing has been done.

Hence, we can see that if-else conditional statement is used and it should prompt the user for input, but the output based on this code fragment is  "That is all. Goodbye"

The given code is:

int x=5;

if( x > 5)

cout << "x is bigger than 5. ";

cout <<"That is all. ";

cout << "Goodbye\n";

Read more about output here:

https://brainly.com/question/25983065

#SPJ1

State two input devices and two output devices, explaining how they would be useful in graphic design work.​

Answers

Answer:

input: keyboard, mouse

output: monitor, printer

Explanation:

keyboard: to type out any words needed on designs

mouse: to be able to click/draw

monitor: to see the work you've done

printer: to print any physical designs to send to client or to use as samples

HELP ME OUT PLEASE!!!!!

_______ are creations which include major copyright-protected elements of an original

A) Fair Use Doctrine

B) Derivative Works

C) Intellectual Property

D) Copyrighted​

Answers

Answer:

Derivertive works

Explanation:

 In copyright law, a derivative work is an expressive creation that includes major copyright-protected elements of an original, previously created first work (the underlying work). The derivative work becomes a second, separate work independent in form from the first.

What is the difference between hardware and software?
(1 point)

A. Software is physical; hardware is not.

B. Hardware is physical; software is not.

C. Software is open-source; hardware requires a license.

D. Hardware is open-source; software requires a license.

Answers

Answer:

b

Explanation:

The coder assigned a CPT code to "x-ray, right femur" and an ICD-10-CM code to "fracture, right humerus." The health insurance company denied
reimbursement for the submitted claim due to lack of medical necessity. What action should the provider's office take?

Answers

The action that the provider's office need to take is that  the  provider's office need to review the codes and ensure sure they are the correct ones. The provider then need to inform  the coder to do a lot of  investigation on the code as well as  also add a lot of details to all of the code.

What is the issue about?

The provider's office in the above case of the fracture need to look through the claim and the patient record to be able to tell if the patient has gotten a fractured femur or a fractured humerus.

Therefore, The action that the provider's office need to take is that  the  provider's office need to review the codes and ensure sure they are the correct ones. The provider then need to inform  the coder to do a lot of  investigation on the code as well as  also add a lot of details to all of the code.

Learn more about fracture from

https://brainly.com/question/5404553

#SPJ1

Q: Health care providers are responsible for documenting and authenticating legible, complete, and timely patient records in accordance with federal regulations and accrediting agency standards. The provider is also responsible for correcting or altering errors in patient record documentation. A patient record documents health care services provided to a patient and includes patient demographic data, documentation to support diagnoses and justify treatment provided, and the results of treatment provided.

The coder assigned a CPT code to "x-ray, right femur" and an ICD-10-CM code to "fracture, right humerus." The health insurance company denied reimbursement for the submitted claim due to lack of medical necessity. What action should the provider's office take?

Pretend that you must explain your favorite information technology pathway to a friend that is in middle school. Select one of the information technology pathways (your preferred I.T. pathway) explain why it is your favorite pathway, and describe specific careers available within that pathway.


Information Support & Services

Network Systems

Programming & Software Development

Web & Digital Communications


YOU HAVE TO WRITE PLEASE I BEG SOMEONE WRITE THIS PLEASE

Answers

The one of the information technology pathways that is my most preferred I.T. pathway is Web & Digital Communications.

What is the Web and digital communication?

The web and digital communication pathway is known to be one that is made of people or workers who are said to be involved in the act of making, designing as well as creating of interactive multimedia products as well as services.

It is also made up of the development of digitally made or computer-enhanced kind of media that is often used in business, training, communications and others and this is the reason why i love it.

Therefore,  The one of the information technology pathways that is my most preferred I.T. pathway is Web & Digital Communications.

Learn more about Digital Communications from

https://brainly.com/question/13171893

#SPJ1

Words that when clicked on can link to another website are called:

Answers

Answer:

hyperlink

Explanation:

youwelcome:)

In this lab, you add a loop and the statements that make up the loop body to a C++ program that is provided. When completed, the program should calculate two totals: the number of left-handed people and the number of right-handed people in your class. Your loop should execute until the user enters the character X instead of L for left-handed or R for right-handed.
The inputs for this program are as follows: R, R, R, L, L, L, R, L, R, R, L, X
Variables have been declared for you, and the input and output statements have been written.
Instructions
Ensure the source code file named LeftOrRight.cpp is open in the code editor.
Write a loop and a loop body that allows you to calculate a total of left-handed and right-handed people in your class.
Execute the program by clicking the Run button and using the data listed above and verify that the output is correct.
// LeftOrRight.cpp - This program calculates the total number of left-handed and right-handed
// students in a class.
// Input: L for left-handed; R for right handed; X to quit.
// Output: Prints the number of left-handed students and the number of right-handed students.
#include
#include
using namespace std;
int main()
{
string leftOrRight = ""; // L or R for one student.
int rightTotal = 0; // Number of right-handed students.
int leftTotal = 0; // Number of left-handed students.
// This is the work done in the housekeeping() function
cout << "Enter an L if you are left-handed, a R if you are right-handed or X to quit: ";
cin >> leftOrRight;
// This is the work done in the detailLoop() function
// Write your loop here.
// This is the work done in the endOfJob() function
// Output number of left or right-handed students.
cout << "Number of left-handed students: " << leftTotal << endl;
cout << "Number of right-handed students: " << rightTotal << endl;
return 0;
}

Answers

A loop and the statements that make up the loop body to a C++ program that is provided. When completed, the program should calculate two totals: the number of left-handed people and the number of right-handed people in your class. Your loop should execute until the user enters the character X instead of L for left-handed or R for right-handed.

The Program

#include <iostream>

#include <string>

//  R, R, R,  L, L, L,  R,  L,  R, R,  L,  X  ==>  6R 5L  X

void getLeftOrRight(std::string &l_or_r, int &total_l, int &total_r) {

// notice how the above line matches:   getLeftOrRight(leftOrRight, leftTotal, rightTotal);

// the values provided from the loop are given nicknames for this function getLeftOrRight()

if (l_or_r == "L") {  // left-handed

  total_l++;

} else if (l_or_r == "R") {  // right-handed

  total_r++;

} else {  // quit

  // option must be "X" (quit), so we do nothing!

}

return;  // we return nothing, which is why the function is void

}

int main() {

std::string leftOrRight = "";  // L or R for one student.

int rightTotal = 0;            // Number of right-handed students.

int leftTotal  = 0;            // Number of left-handed students.

while (leftOrRight != "X") {  // whilst the user hasn't chosen "X" to quit

  std::cout << "Pick an option:" << std::endl;

  std::cout << "\t[L] left-handed\n\t[R] right-handed\n\t[X] quit\n\t--> ";

  std::cin  >> leftOrRight;  // store the user's option in the variable

 getLeftOrRight(leftOrRight, leftTotal, rightTotal);  // call a function, and provide it the 3 arguments

}

std::cout << "Number of left-handed students:  " << leftTotal  << std::endl;

std::cout << "Number of right-handed students: " << rightTotal << std::endl;

return 0;

}

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

What is the final step in conducting a competitive audit? (UX)


Outline the goals

Create a list of your competitors

Summarize your findings

Research each product

Answers

The final step in conducting a competitive audit is create a list of your competitors. The correct option is B.

What is competitive audit?

A UX competitive analysis is a technique used by UX researchers to understand the competition, identify opportunities, and gain a competitive advantage.

This analysis provides valuable insights to UX design teams in developing a UX strategy to improve a product's user experience and business value.

The final step in conducting a competitive audit is to examine the competitor's overall market performance.

You can learn more about what the target customers are looking for by reading reviews and testimonials left by previous customers on review sites or social media platforms.

Thus, the correct option is B.

For more details regarding audit, visit:

https://brainly.com/question/14652228

#SPJ1

Which method of sending data uses routing?

Answers

Answer:

The Internet Protocol (IP) is the protocol that describes how to route messages from one computer to another computer on the network. Each message is split up into packets, and the packets hop from router to router on the way to their destination.

Which access control method relies on access being defined in advance by system administrators?

Answers

Answer:

The access control method which relies on access being defined in advance by system administrators is the "Mandatory Access Control ( MAC )"

did anyone can help me css code please I really need help​

Answers

Hi there!

In order to help, we’ll need to see an image, or have you explain the instructions. Please repost this with that.

Thanks, take care!
Other Questions
Atoms were thought to be indivisible (not able to be broken down). We nowknow that they are made of smaller particles. Should we still think of them asthe building blocks of matter? Why or why not? How can we change the definition of atoms in this case? If f(x)=3x-2 , find f^-1(x) opy the vectors. Then find each sum or difference. w + z Efforts to discover whether the intelligence of children is more heavily influenced by their biology or by their home environments are most directly relevant to the debate regarding. -1/6 + (-3/7) = please help Una empresa tiene costos fijos de $300 y vende cada artculo en $15. Si se sabe que el punto de equilibrio es q=100. Plantear la funcin de Costos TotalesCT=__________________________ Given: 1 and 2 form a linear pair; m2 + m3 = 180 prove: 1 is congruent to 3 Imagine that you plan to write a procedural document. What question should you ask yourself to ensure that you address your audience correctly? OD. What research should I do in order to understand my topic better? C. How long and detailed should my document be? OB. Do I know anyone who has a lot of experience with this topic? OA. What level of interest do my readers likely have in my topic? Which cities in the West African trade network were probably located in the vast Sahara Desert? Explain why you think so.? A farmer decided to undertake continues arable mono cropping on the sloping land. Comment on his/her practice giving five (5) reasons to support or condemn his/her practice? Health education campaigns such as state tobacco programs are included under which core area of public health? Graph this function.f (x) = x -2 how to solve 4x -12x Why did France and other European nations decideto help the Americans fight the British? Point J is on line segment I K IK . Given J K = 10 JK=10 and I K = 19 , IK=19, determine the length I J . IJ What evidence suggests that the english forced the indians to trade their grain? A client with a gastric ulcer has a prescription for sucralfate 1 gram by mouth 4 times daily. the nurse should schedule the medication for which times? Question 2 of 10 Which two processes must happen before cells can make large amounts of ATP for every glucose molecule split in two? A. Glycolysis B. The electron transport chain C. The Krebs cycle D. Fermentation An open-top water tank is in the shape of a cuboid. The tank has a square base of side length s m, and has a volume of 216 m^3. Find expressions, in terms of s, for: a) the height of the tank. b) the surface area of the tank Given that the surface area of the open-top water tank is minimised: c) find the value of s.(looking for clear workouts and reasoning / explanation behind every step taken no matter how basic it may be)Answers:a) h = 216/s^2b) A = s^2 + 864c) s = cube root of 432 Which Remark Code would appear, N210 or N211?