Create a Python program that asks the user to enter 3 positive numbers. The program should validate that the characters that the user entered formulate a valid positive integer and display an appropriate error message if they do not. The program should use a sequence of conditional (if) statements to display the 3 positive numbers in ascending order.

Answers

Answer 1

Answer:

num1 = input("Enter the first number: ")

num2 = input("Enter the second number: ")

num3 = input("Enter the third number: ")

if num1.isdigit() and num2.isdigit() and num3.isdigit():

   num1 = int(num1)

   num2 = int(num2)

   num3 = int(num3)

   if num1 > 0 and num2 > 0 and num3 > 0:

       if num1 < num2 and num1 < num3:

           if num2 < num3:

               print(num1,num2,num3)

           else:

               print(num1,num3,num2)

       elif num2 < num1 and num2 < num3:

           if num1 < num3:

               print(num2,num1,num3)

           else:

               print(num2,num3,num1)

       else:

           if num1 < num2:

               print(num3,num1,num2)

           else:

               print(num3,num2,num1)

   else:

       print("Please enter positive numbers only.")

else:

   print("Please enter positive numbers only.")


Related Questions

What term describes storing personal files on servers over the internet to provide access anywhere, anytime, and on any device?

Answers

Fairly certain that’s the cloud.
Not 100% though.

Design a 4-bit ripple counter and draw the timing diagram of that counter

Answers

Answer:

Explanation:

In 4-bit ripple counter, n value is 4 so, 4 JK flip flops are used and the counter can count up to 16 pulses. Below the circuit diagram and timing diagram are given along with the truth table. 4 bit Ripple Counter using JK Flip Flop 4 bit Ripple Counter Timing Diagram 4 bit Ripple Counter Using D Flip Flop

How do computer programs ask us for information?

Answers

Answer:

Computer Programs

Explanation:

Computer Programs , in some program language Actualy best program languages is javascript(using in big firms) , C# C Sharp , Python , C++ C Plus Plus in some provincions and technology , program you can doo in best Compilator is Visual Studio "Community"  for free 2015 , 2019 , 2022 like I Remember this versions  in this Compiler you can doo programs in C# , F# , C++ , class/es , biblioteks and plicks dll. , Console Aplications , Graphic Aplications  all i Plicks .exe  or other biblioteks , class or types but you mast doo Decision for programing language and start learning for many time for many years... too BIG SPECIALISATIONS

Which of the following is the wireless technology that can connect with most mobile devices?
Select one:
O a. Touchscreen
O b. Wi-Fi
Oc. Cellular
Od. Bluetooth

Answers

C ……………………………………………………

Cellular is the wireless technology that can connect with most mobile devices. Thus, option C is correct.

What is Bluetooth?

Bluetooth is a wireless technology standard that allows electronic devices to communicate with each other over short-range radio frequencies. The technology uses a range of low-power radio waves to connect devices together without the need for cables or wires.

It was developed in the late 1990s to replace cables and wires used to connect different types of electronic devices, such as smartphones, tablets, laptops, printers, and more. Bluetooth is widely used for hands-free headsets, wireless keyboards, wireless mice, and wireless speakers.

Therefore, Cellular is the wireless technology that can connect with most mobile devices. Thus, option C is correct.

Learn more about Bluetooth on:

https://brainly.com/question/13072419

#SPJ2

What is the difference between biometrics devices and biometrics input devices

Answers

Answer: A biometric input device measures a unique physical chracteristic of a person.

Explanation: The most common biometric devices are used to input a person's fingerprint into a computer. More sophisticated devices use a camera to input a description of a person's iris (the coloured part of the eye).

What is the best GPU for the computer I am building.

Answers

Answer:

If it is a gaming pc, you should use a high end gpu such as Nvidia Gtx 1650+ or if u want rtx, you should also go and buy a very high 350v power.

Explanation:

If it is general, you should use something in Intel Hd Graphics series but not more than 3000 below.

If it is for both, best I can recommend is Gtx 1650

If it is mining BTC, ETC etc. you should get BEST graphics card there is out there for gaming.

Programming Exercise 11 in Chapter 8 explains how to add large integers using arrays. However, in that exercise, the program could add only integers of, at most, 20 digits. This chapter explains how to work with dynamic integers. Design a class named largeIntegers such that an object of this class can store an integer of any number of digits. Add operations to add, subtract, multiply, and compare integers stored in two objects. Also add constructors to properly initialize objects and functions to set, retrieve, and print the values of objects. Write a program to test your class.

Answers

In order to prevent confusion that can arise when utilizing several variables, arrays help maintain vast sets of data under a single variable name. Arranging the data components.

What is the role of large integers using arrays?

Diverse array algorithms, including bubble sort, selection sort, and insertion sort, can aid in the efficient and effective organization of various data items.

No matter how many digits the numbers have or how many numbers you are adding together, the addition process always follows the same pattern. The integers are stacked in place value order. Starting with the column on the right, add the values in the columns.

Therefore, As necessary, carry numbers into the place value that is adjacent to the left.

Learn more about array here:

https://brainly.com/question/19570024

#SPJ1

Why were dramas on radio called soap operas?

Answers

Answer:

Most of its major sponsors for many years were manufacturers of soap and detergents.

Explanation:

soap opera, broadcast dramatic serial program, so called in the United States because most of its major sponsors for many years were manufacturers of soap and detergents.

Answer:

because they were sponsored by soap companies

Write a program that determines if the user rolled doubles in dive. Read in two integers from the user which represent dice rolls. Create a variable called rolledDoubles which has the value of whether or not the two values are equal. Print that out. Please do this in JAVASCRIPT NOTTT phyton. The picture is what I have so far

Answers

Answer:

is it like this?

function start(){

   var rolledDice = readInt ("Did you roll double?");

   var rolledDoubles = rolledDice <= 6:

   println("Dice rolled double:" && rolledDoubles);

   if (rolledDoubles){

       println("You rolled doubles!");

   } else {

       println("You did not roll doubles");

   }

}

Choose the best collection for each situation.

You have a set of data that will not be changed and you will not need to add new items.


You wrote a loop to ask the user for a set of 100 numbers. You will add a number to the collection on each pass through the loop, then pass the collection to a function for processing.


You have the unique inventory number and description of every item in a store. You will need to add items when they come in and delete items when they are sold.

Answers

Answer:

first: tuple

second: list

third: dictionary

Explanation:

first: tuple

tuples are immutable, so you can't add or remove items from a tuple

second: list

lists are mutable, so you can add and remove items from a list

third: dictionary

dictionaries are mutable, so you can add and remove items from a dictionary

Q1)Find the name and nickname of all kings or queens that have a nickname that does not begin with "The".
Q2)Several times in British history, kings or queens have deposed one another, so that their reigns overlapped. Find all such pairs, listing the pairs in both orders; i.e., list both (A,B) and (B,A). However, be careful not to list pairs A and B where the only overlap is that A's reign ended in the same year that B's began, or vice-versa.

Answers

In general, a deposed king retains the title of king until the day of his death, but his heir, who will eventually succeed him as king, continues to use a title typically held by the heir to the throne.

What kings or queens have deposed one another?

Dethroning a monarch refers to removing them from office, as when Mary, Queen of Scots, was expelled from Scotland.

For example, when Peter II, the former king of Serbia, passed away, his son continued to use the title of Crown.

Therefore,  Dethroning someone can also be done in a less formal way, such as when you defeat the fastest mile runner in your school.

Learn more about kings here:

https://brainly.com/question/29490293

#SPJ1

Choose the line needed.

In order to use deques, you need to bring the deque methods into active memory.

You do this by entering this line at the top of your program.

Answers

Answer:

from collections import deque

In terms of processor performance explain an effective measure that you would put in place to ensure that Moore’s law stays in effect

Answers

Every few years, the number of computers produced doubles, is one of the effective measure that a person would put in place to ensure that Moore’s law stays in effect.

What is the significance of Moore's law?

Moore's Law has primarily been used to emphasize the rapid evolution of information processing technologies.

Moore's law refers to Gordon Moore's 1965 observation that the number of transistors in a dense integrated circuit (IC) doubles about every two years. Most forecasters, including Gordon Moore, believe Moore's law will be terminated by 2025.

Learn more about the Moore's law, refer to:

https://brainly.com/question/17600211

#SPJ1

What is the missing line?

>>> myDeque = deque('dog')
_____
>>> myDeque
deque(['d', 'o', 'g', 'cat'])

>>> myDeque.insert('cat')
>>> myDeque.insert('cat')

>>> myDeque.appendleft('cat')
>>> myDeque.appendleft('cat')

>>> myDeque.append('cat')
>>> myDeque.append('cat')

>>> myDeque.appendright('cat')
>>> myDeque.appendright('cat')

Answers

Answer:

i think myDeque.append('cat')


Identify current and emergent telecommunications systems

Answers

The current and emergent telecommunications systems are:

Telephone networkThe radio broadcasting systemComputer networksARPANETEthernetInternetSocial MediaWireless networks

Which emergency communication method is best?

Talking devices Information can be sent as well as received using two-way radios. They are incredibly useful for both short-distance communication and long-distance information transmission, even across the globe with the right tools.

Therefore, Wired and wireless local and wide area networks, as well as hardware and software, are all components of telecommunications systems, which enable systems to communicate with one another and with users.

Learn more about telecommunications systems from

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

What is the result of successfully applying a Machine Learning (ML) algorithm to analyze data?

Answers

Answer:

ML predicts patterns based on previous experiences

Explanation:

The thought process is that the more information available to the machine gives it the ability to create a model based on historical, labelled data, to predict the value of something unknown or of unknown quantity but still based on new data.

example of this is predictive text.

This is the program for the SMPL Simulation Model. What does this program model do? Give and explain the output from the execution of the program. #include #include "smpl.h" void main(void) { real Ta = 1; real Ts = 1.2; real te = 3.5; int customer = 1; int event; int server; smpl(0, "Mystery program"); 2 server=facility("server", 1); schedule(1, 0.0, customer); while (time() < te) { cause(&event,&customer); switch(event) { case 1: printf("(1) at %f ", time()); schedule(2, 0.0, customer); schedule(1, Ta, customer); break; case 2: printf("(2) at %f ", time()); if (request(server, customer, 0) == 0) printf("(2a) at %f ", time()); schedule(3, Ts, customer); } break; case 3: printf("(3) at %f ", time()); release(server, customer); break; } } }

Answers

This application looks to be a simulation of a system with a single server and consumers approaching it. The program's output will be a sequence of messages showing when various events in the simulation occur.

The software tracks the arrival of a client (case 1), the customer being treated by the server (case 2), and the customer departing the server (case 3). (case 3). To mimic the system, the application use the SMPL library.

What is a simulation system?

The practice of experimenting with and understanding how changes to the properties of a complex system (or sub-system) affect the system as a whole is known as system simulation. Advanced simulation software predicts and illustrates the impact of proposed system modifications using mathematical methods.

Simulation is used to assess the impact of process modifications, new processes, and capital equipment investments. Engineers can use simulation to compare various solutions and designs and analyze the performance of a current system or estimate the performance of a planned system.

Simulation is utilized as a cost-effective alternative to testing hypotheses and adjustments in the actual world.

Learn more about Simulation Systems;
https://brainly.com/question/14515688
#SPJ1

What are the missing parts to produce the following output?

0
1
2



num in range(

):
print (num )

Answers

Answer:

for num in range(0, 3):

   print(num)

   

or

for num in range(3):

   print(num)

both will produce the output

0

1

2

Which of the following describes both product packaging and magazine advertising?

a. Paragraphs
b. Subheadings
c. Large amounts of copy
d. Small amounts of copy

Answers

Both magazine advertising and product packaging are described by subheadings.

Regarding Advertisement:

We must first understand what advertising is in order to understand what an advertisement is. Advertising is defined as a method in which the public is drawn to something, usually a good or service. A item, brand, or service is advertised to an audience using an advertisement to pique their attention, encourage interaction, and increase sales. Adverts, often known as adverts or adverts, exist in a variety of formats, from copy to animated experience, and have developed into an integral part of the app store.

To know more about advertisement
https://brainly.com/question/3163475
#SPJ1

7.2.5 Height in Meters codehs

Answers

Answer:

INCHES_TO_CM = 2.54

CM_TO_METERS = 0.01

FEET_TO_INCHES = 12

def convert_height_to_meter(feet, inches):

   inches_total = (feet * FEET_TO_INCHES) + inches

   cm_total = inches_total * INCHES_TO_CM

   meters = cm_total * CM_TO_METERS

   print(str(feet)+" feet, "+str(inches)+" inches is "+str(meters)+" meters")

   

convert_height_to_meter(6, 4)

convert_height_to_meter(5, 8)

convert_height_to_meter(5, 2)

what is the fnajofnjanfaofoafnka

Answers

Answer: that is the letter f,n,a,j,o,f,n,j,an,f,a,o,f,n,k,a

Which are ether random letters or….. it’s a word scramble.

I well now organize the letters.

1F 2F 3F 4F                                                

1N 2N 3N 4N

1A 2A 3A 4A

1J 2J

1O 2O

1K

Words that can be written are

Fan four times there are other things such as names it can write such as Joan Jon or it could be abbreviations but I believe It’s just random letters you wrote to confuse the brainly community trust me you confused me lol.

Explanation:

You see these people's differences as positives and consider them
to possess traits you value.
These people's differences don't matter to you. You notice how
they are the same as you and ignore how they are different.
You're slightly uncomfortable with these people's differences. You
think they should be treated respectfully, but you'd rather not
interact with them.
You feel very uncomfortable around people with these differences.
You try to avoid them and do not want to work with them.
You strongly believe that these people are different in ways that
are not normal, and they do not belong in your workplace.

Answers

Explanation:

Get to know their views and stay with them for a while.

You may understand them.

hope this helps

What advantages would there be to using both subsystems and logical partitions on the
same machine?

Answers

Answer:

Explanation:

Advantages of using subsystem and logical partitions on same machine

Subsystems and logical partitions on the same machine reduces the data backup function.Hence there is no need to take the backup regularly.It increases the hardware utilization.Resource availability is high and it provides security to the resources.

Hi whats the name of this game because i forgot we have to make a project on IT lesson about puzzle games and i forgot the name of this one please

Answers

The name of the Puzzle Game Requested is called "Monument Valley".

What is Monument Valley?

Ustwo Games created and distributed Monument Valley, an independent puzzle game. The player guides Princess Ida through mazes of optical illusions and impossible items, altering the environment around her to reach different platforms.

Monument Valley is a fanciful journey through impossible mathematics and amazing buildings. The player leads the mute princess Ida through intriguing monuments, unraveling optical illusions and outwitting the enigmatic Crow People.

Monument Valley is around 112 hours long while focused on the primary objectives. If you are a gamer who wants to see every facet of the game, you will most certainly spend roughly 212 hours completing it completely.

Learn more about Puzzle Games:
https://brainly.com/question/13546872
#SPJ1

Describe the web and application policies you would put in place to support the
following teams/departments:
a. Recruitment Team
b. Data Science Team
c. Executive Team
d. General Employees
e. Guests

Answers

Identification, attraction, interviewing, selection, hiring, and onboarding of personnel are all included in the recruitment process.

Describe recruitment ?Various employees are in charge of recruiting, depending on the size of the company.While some smaller organizations only have one recruiter, larger organizations may have entire teams of recruiters.The task of managing people inside a business is known as human resource management, or HR for short.Internal Recruiting: Internal recruiting refers to the process of filling open positions within an organization with current employees.Retained Recruiting: Employing a recruiting firm can be done in a number of ways, with retained recruiting being one of the more popular ones.

To learn more about recruitment refer to:

https://brainly.com/question/3700565

#SPJ1

On page 104, of Think Like a Computer Scientist, you learned about paired data. With paired data, you can use a for loop with two index variables to iterative through the data. In this exercise you will create a turtle drawing using pairs of data, where the first item of the pair is the distance to move forward , and the second item is the angle to turn.. Set up a list of pairs so that the turtle draws a house with a cross through the center, as show here. This should be done without going over any of the lines / edges more than once, and without lifting your pen.

Your first pair of data will be (100,135). In a list this will look like ls = [ (100, 135) ] Then you need to add the other pairs for the remaining lines and angles. The 100 represents the distance forward the turtle will travel. The 135 represents the angle the turtle will turn left.

Screen capture of run of program showing house figure

Hint: Your first line should be the bottom line. Then turn left 135 degrees and go forward. You may wish to create the drawing without the list first, then substitute a list and a for loop for the distances and angles.



Use two functions: a main() function that sets up screen and turtle objects, and a drawhouse() function that takes a turtle object as an argument.



Includes comments at the top to identify file name, project and a brief description.

For further documentation, include comment for each section of code. Write in Python asap

Answers

Answer:

import turtle

def drawhouse(t):

   # find the length of diagonal of a square with side = 100

   # formula: diagonal = sqrt(2) * side

   diagonal = 100 * (2 ** 0.5)

   data = [(100, 135), (diagonal, -135), (100, -135), (diagonal, -135), (100, -45), (diagonal / 2, -90),

           (diagonal / 2, -45), (100, 0)]

   for dist, angle in data:

       t.forward(dist)

       t.left(angle)

def main():

   t = turtle.Turtle()

   drawhouse(t)

   turtle.done()

main()

You have discovered that hackers are gaining access to your WEP wireless network. After researching, you discover
that the hackers are using war driving. You need to protect against this type of attack. What should you do?

Answers

Answer:

-Change the default Service Set Identifier (SSID).

-Disable SSID broadcast.

-Configure the network to use authenticated access only.

-Configure the WEP protocol to use a 128-bit key.

-Implement Wi-Fi Protected Access (WPA) or WPA2

can anyone help me with this question please?​

Answers

Answer: Torque 1

Explanation:


What happens when you add an extra line of text to SmartArt using the Text pane?

Answers

Shapes are automatically added to or removed from your SmartArt design as needed.

What is SmartArt design ?

SmartArt design is defined as a graphic depiction of your ideas and facts. Using SmartArt, you can transform plain text into something more aesthetically pleasing. It aids in highlighting crucial information or simplifies its interpretation and comprehension.

Click Add Shape After to add a box to the same level as the selected box but after it. Click Add Shape Before to add a box that is at the same level as the selected box but comes before it. Click Add Shape Above to add a box one level above the currently chosen box.

Thus, shapes are automatically added to or removed from your SmartArt design as needed.

To learn more about SmartArt design, refer to the link below:

https://brainly.com/question/28210906

#SPJ1

The Establishment Clause of the First Amendment forbids the government from passing any legislation "respecting an establishment of religion."

What is SmartArt?

This section opposes the establishment of an official religion by the government and also forbids government activities that unjustly favor one religion over another. Additionally, it forbids the government from unreasonably favoring either religion or non-religion.

Although some religiously-motivated government activity is acceptable—and perhaps inevitable it is unclear how much the Establishment Clause permits.

The Supreme Court has previously approved the use of public funds for private religious school transportation and textbooks as well as university monies for the printing and dissemination of publications produced by student religious organizations.

Therefore, Government legislation "respecting an institution of religion" is prohibited by the Establishment Clause of the First Amendment.

To learn more about smart art, refer to the link:

https://brainly.com/question/1980413

#SPJ1

How many types of switch cases are there in total?
(Python)

Answers

Answer:

Python does not have a switch or case statement.

Instead we use;

the dictionary data type functions as cases in a switch statement

the if-else statement

the class statement

Python 3.10 and later will allow using match instead of switch

Other Questions
christianity is a universalizing religion that emerged from its hearth in present day israel and was first spread throughout the roman empire by missionaries. this is an example of which of the following are not provided as part of the four main family functionsPattern and routinesAffection and loveSpending money and education Food and shelter Jordan adds 20 grams (g) of salt and 200 g of dry beans to a pot of warm water. Jordan made. suppose that the cash flow, in dollars , for a pharmacy are normally distributed with an unknown mean and standard deviation. the cash flow of 40 randomly sampled pharmacies are used to estimate the mean of the population. what t-score should be used to find the 80% confidence interval for the population mean? if a manufacturer of fast-moving consumer goods (fmcg) is interested in measuring consumers movement through the adoption hierarchy, which ad effectiveness measure should it employ comprehensive general liability (cgl) policies are the business equivalent of a homeowner's policy that protects the organization against personal injury claims and loss. A. True B. False if a household appliance is operating on 110 volts and electricity is flowing with a current of 0.2 amperes in this appliance, how many watts are consumed? 1. What is a naming model used for?2. List the four major activities associated with software configuration management.3. What are check-in and check-out?4. List three concerns you may need to look into before choosing a configuration management tool.5. What are the build steps of a single program?6. What is linking and what are we linking in a build process?7. Explain the difference between the view and the modify functions in the storage and access model of configuration management.8. Name a tool from each of the three tiers of automating the configuration management activities. Two units of measurement for energy are calories and joules. The measurement of 355 J is the same amount of energy as ___________. mrs. chan was diagnosed with alzheimer's disease 10 years ago. she is now 98 years old, confused, and needing help with activities of daily living. one day, she develops pneumonia, which is deliberately not treated. this might be termed a case of: Consider the curve given by the equation y - 6y - 9x - 144x = 576. It can be shown that dy/dx=9(x + 8)/ Y-3Find the x-coordinate of the point where the line tangent to the curve is the x-axis. Read the excerpt from dispatches. because, really, what a choice there was; what a prodigy of things to be afraid of! the moment that you understood this, really understood it, you lost your anxiety instantly. anxiety was a luxury, a joke you had no room for once you knew the variety of deaths and mutilations the war offered. the purpose of the paradox in the excerpt is to illustrate:____.a. the narrators desire to relieve his uneasiness. b. reinforce the physical and emotional challenges of war. c. show that indulgences are stolen during war, not provided. d. highlight the idea that fear can be viewed in different ways. gemma has been diagnosed with schizophrenia and only shows negative symptoms. what would she most likely exhibit? Solve the system of equation.4x-3y=-9 3x+2y=-11 Which statements are true regarding postsynaptic potentials? Select all that apply.-They depend on the myelination of nerve axons-They include EPSPs and IPSPsThey are changes in the membrane potential of the postsynaptic terminal of a chemical synapse-They are caused by neurotransmitters How did the business leaders use the Sherman antitrust act? antioxidants are natural and synthetic molecules that inhibit the reactions of reactive oxygen species (ros). which vitamins/minerals are examples of nonenzymatic antioxidants? select all that apply. Which Statements below are true?One of the primary advantages of simulation models is that they enable managers to answer what-if questions about changes in systems without actually changing the physical systems themselves.When we solve a nonlinear programming problem (NLP), it is very possible that Solver will obtain a suboptimal solution.A correlation matrix must always have 1s along its diagonal (because a variable is always perfectly correlated with itself) and the correlations between variables elsewhere.The built-in functions in Excel, along with the RAND function, can be used to generate random numbers from many different types of probability distributions.A common distribution for modeling product lifetimes is the binomial distribution.The random nature of games of chance make them poor candidates for simulation. assume that in a cell the ratio(s) listed is/are high. which ratio(s) would lead to a decrease in the rate of entrance of acetyl coa into the citric acid cycle? Length (cm): Length (m) 100: 1250: 2.578.2: .782123.9: 1.239y: ? I need to know what goes next to the y Write an equation for the proportional relationship. Let x represent a length measured in meters and y represent the same length measured in centimeters. I don't know what would be the equation.