Write a program that asks user to enter three number and find the largest number using FUNCTION..... END FUNCTION and smallest using SUB....END SUB.​

Answers

Answer 1

Answer:

My brother taught me about programming soo...

Explanation:

# Function to find the largest number

def find_largest(a, b, c):

return max(a, b, c)

# Sub-routine to find the smallest number

def find_smallest(a, b, c):

smallest = a

if b < smallest:

smallest = b

if c < smallest:

smallest = c

return smallest

# Main program

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

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

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

largest = find_largest(num1, num2, num3)

smallest = find_smallest(num1, num2, num3)

print("The largest number is:", largest)

print("The smallest number is:", smallest)

In this program, we define a function called find_largest that takes three parameters (a, b, c) and uses the max() function to find the largest number among them. We also define a sub-routine called find_smallest that takes the same three parameters (a, b, c) and compares them using conditional statements to find the smallest number. Finally, in the main program, we prompt the user to enter three numbers, call the functions/sub-routines, and print the largest and smallest numbers.


Related Questions

users have been experiencing periodic system lockups that generate the same error message. after checking microsoft's website, you find that a hotfix is available to address the issue. what should you do next?

Answers

The next step should be install the hotfix for those who have encountered issues.

To address defects, programmers must be at the top of their game, especially after the product has gone live and is being used by real users. You must choose the bug's optimal debugging strategy based on its kind to ensure minimal user experience disruption.

When a security flaw is identified, the situation becomes even more urgent, and all hands must be on deck until a hotfix is put in place to stop a threat from successfully exploiting the system's flaw.

An informational package (typically in the form of one or more files), known as a hotfix or quick-fix engineering update (QFE update), is used to correct an issue in a software product (i.e., a software bug). Hotfixes are frequently created to solve a particular consumer issue.

To know more about hotfix click here:

https://brainly.com/question/14600931

#SPJ4

Which of the following commands can an administrator run to quickly locate and determine the TTL of the further reachable node? A. route. B. ping. C. traceroute

Answers

An administrator can run the command `traceroute` to quickly locate and determine the TTL of the further reachable node. So the correct option is C. traceroute.

This command is also known as `tracert` on Windows and it is used to track the path of network packets and display them on a map of hops between the client and server. The command provides a list of all the network nodes that packets travel through to get to their destination and shows the time it takes for each hop.Traceroute is commonly used to troubleshoot network problems and to determine the exact location of an issue.

The TTL is the maximum number of hops that a packet can travel before it is discarded. The traceroute command sends packets with increasing TTL values until it reaches the destination, at which point the host returns an ICMP Time Exceeded message that contains the TTL value.

To know more about administrator visit:-

https://brainly.com/question/32491945

#SPJ11

which cisco ios command shows the current settings of the switch?

Answers

The "show running-config" command in Cisco IOS is used to display the current configuration settings of a switch.

In Cisco IOS, the "show running-config" command is commonly used to view the current configuration settings of a switch. This command displays the running configuration, which represents the current operational state of the device. By entering this command, administrators can see a comprehensive list of all configured parameters, including interface settings, VLAN configurations, routing protocols, access control lists, and other network-related settings.

The "show running-config" command provides a detailed output that can be used for troubleshooting, verifying configurations, and understanding the current state of the switch. It is particularly useful when comparing the running configuration with the startup configuration (which represents the saved configuration that will be loaded on device boot) to identify any discrepancies or changes made since the last save. This command is a fundamental tool for network administrators when managing and maintaining Cisco switches.

Learn more about IOS here:

https://brainly.com/question/32289111

#SPJ11

What came first, the internet or WIFI?

Answers

Answer: wifi

Explanation:

because you can't have the internet if you don't have wifi to power it up

A large part of Kelly's job with a software development company is to monitor the servers to ensure that they are not overloaded by the computers that are connected to them. Kelly holds the position of __________ in the organization. Infrastructure Manager Database Administrator Support Analyst Network Administrator

Answers

Kelly holds the position of Network Administrator in the software development company.

As a Network Administrator, Kelly is responsible for monitoring and managing the company's network infrastructure, including the servers. One of Kelly's key responsibilities is to ensure that the servers are not overloaded by the computers connected to them.

In this role, Kelly is tasked with implementing and maintaining network security measures, troubleshooting network issues, and optimizing network performance.

Kelly monitors network traffic and server performance to identify potential bottlenecks or signs of overload. By analyzing network usage patterns and implementing appropriate network management techniques, Kelly ensures that the servers operate smoothly and efficiently.

Furthermore, Kelly collaborates with other IT professionals, such as system administrators and database administrators, to ensure the overall stability and reliability of the company's infrastructure.

Kelly may also participate in the planning and implementation of network upgrades and expansions to support the growing needs of the organization.

Overall, as a Network Administrator, Kelly plays a crucial role in maintaining the stability, performance, and security of the company's network infrastructure, specifically focusing on preventing server overload caused by connected computers.

For more such questions on Network Administrator,click on

https://brainly.com/question/29462344

#SPJ8

What is a user data?

Answers

Answer:   Any data the user creates or owns.

Explanation:

the user being the one on the otherside of the computer, usually a human.

but examples of user data are intalled programs, uploads, word documents created by user (computer user)

Which of the following is based on the visibility and location of an object’s features?


arch

lines

prisms

curves

Answers

Answer:

The answer is Lines.

Explanation:

A visible line, or object line is a thick continuous line, used to outline the visible edges or contours of an object. A hidden line, also known as a hidden object line is a medium weight line, made of short dashes about 1/8” long with 1/16”gaps, to show edges, surfaces and corners which cannot be seen.

Ana is a music lover. She loves to download songs and videos on her computer every time she hears a new song. One day, her computers started to malfunction, and all her files were no longer accessible. What do you think happened to Ana’s computer and what can you do to avoid the same problem​

answer pleasssseeee

Answers

Answer:

Storage outage

As many new songs are released to the Internet every day, Anna might have download thousands of them, which made her computer ran out of storage and RAM(random access memory )

What are the steps for consolidating data from multiple worksheets? 1. Select the range of data on the first worksheet you wish to consolidate. 2. Go to the Data tab on the ribbon and select Data Tools. 3. Then, select and the dialog box will appear. 4. Choose the in the drop-down. Then, select the first group of data and press Enter. 5. To add from more worksheets, select from the View tab. 6. To include more references, click .

Answers

Answer:

2. Go to the Data tab on the ribbon and select Data Tools.

3. Then, select and the dialog box will appear.

4. Choose the in the drop-down. Then, select the first group of data and press Enter.

1. Select the range of data on the first worksheet you wish to consolidate.

5. To add from more worksheets, select from the View tab.

Explanation:

Consolidation in Microsoft Excel is used to gather information from several worksheets. To consolidate data in a new worksheet, select the new worksheet and click on the upper left side where the data should be.

Click on Data > Consolidate, then a dialog box would appear. From the dialog box click on the function to consolidate with, then click on the reference area and select the first data range by clicking on the first worksheet and drag the data range to the box and click Add.

To add more data range, click on the reference area and do the same as the first data.

Answer:

consolidate, function, switch windows, add

Explanation:

I just took the test on

maria has a feature class of feedlots and needs to know how many are found in each county of iowa. which technique provides the simplest solution to the problem?

Answers

The simplest technique for Maria to determine how many feedlots are found in each county of Iowa is to use the "Spatial Join" method.

Spatial Join is a GIS (Geographic Information System) operation that allows Maria to combine the features of two different feature classes based on their spatial relationship. In this case, Maria has a feature class of feedlots and wants to find out how many are in each county of Iowa. By performing a spatial join between the feedlots layer and the county boundaries layer, Maria can easily count the number of feedlots that fall within each county boundary.

1. Obtain the feature class for Iowa counties: Maria needs a feature class containing the boundaries of all Iowa counties to compare with the feedlots layer.
2. Open GIS software: Maria should use a GIS software such as QGIS or ArcGIS to perform the spatial join.
3. Load both feature classes: Import the feedlots layer and the Iowa counties layer into the GIS software.
4. Perform Spatial Join: In the GIS software, find the Spatial Join tool or function (the name might slightly differ depending on the software) and set the target layer to the Iowa counties and the join layer to the feedlots layer.
5. Configure the join operation: Choose an appropriate operation (such as "intersect" or "within") that will count the feedlots inside each county boundary.
6. Run the Spatial Join: Execute the tool and wait for the operation to complete.
7. Examine the results: The output will be a new feature class containing the original county boundaries with an additional attribute showing the number of feedlots in each county.

By using the Spatial Join technique, Maria can easily find out how many feedlots are located in each county of Iowa. This method is straightforward, efficient, and provides accurate results for her problem.

To know more about Spatial Join visit:

https://brainly.com/question/29727735

#SPJ11

Microsoft vs Sony who wins ​

Answers

Answer:

Microsoft

Explanation:

Yeah I’d say Microsoft toooo

Jemima has finished formatting her main headings. She now wants to format her two subheadings. She wants to apply the format of her first subheading, not the format of the main heading, to the second subheading. Which feature of Word would help her to complete this task efficiently?

Answers

Answer:

the Format Painter feature

Answer:

the format painter feature

Explanation:

2
ng and Upgrading Computers: Mastery Test
Select the correct answer.
Which of the following can computer maintenance software determine?
O A.
O B.
O C.
O D.
whether your hard drive is about to fail
whether your monitor or screen is drawing too much power
the humidity inside your desktop computer
the amount of dust inside your laptop
Reset
Next

Answers

whether your hard drive is about to fail can computer maintenance software determine.

What is computer maintenance software ?

Software that centralises maintenance data and streamlines maintenance operations is known as a computerised maintenance management system, or CMMS. It aids in maximising the use and accessibility of tangible assets like machines, transportation, communications, plant infrastructures, and other assets. CMMS systems, also known as computerised maintenance management information systems (CMMIS), are used in the manufacturing, energy, transportation, building, and other sectors where physical infrastructure is essential.

A CMMS's database is its fundamental component. The information regarding the assets that a maintenance organisation is responsible for maintaining, as well as the tools, supplies, and other resources needed to do so, are organised using a data model.

Read more about computer maintenance software:

https://brainly.com/question/28561690

#SPJ1

whts the mistake in this
pls do help me out

whts the mistake in this pls do help me out

Answers

Explanation:

i don't even know it's uclear what the mistake is

Keyboard shortcut for the following
Undo-
Find-
Cut-
Paste-
Save-
Open-​

Answers

Answer:

undo- ctrl+ z

find- ctrl + F and ctrl G

Cut- ctrl + x

Paste- Crtl + v

Save- Crtl S

Open - Crtl P + Crtl K

Explanation:

Answer:

and

Explanation:

Undo-(Ctrl + Z)

Find-(Ctrl + F)

Cut-(Ctrl + X)

Paste-(Ctrl + V)

Save-(Ctrl + S)

Open-(Ctrl + O)

PLEASE HELP! 30 POINTS!

PLEASE HELP! 30 POINTS!

Answers

Answer:

Repeat this 5 times:

Move Forward

Turn Left

Move Forward

Turn Right

Explanation:

Zigzag pattern

communication unfolds over time through a series of interconnected actions carried out by participants. this statement best describes which of these features of communication?

Answers

Via a sequence of related acts performed by participants, the process of communication develops over time.

What does the process communication model look like?

An unique paradigm called PCM (Platform To connect Model) enables you to comprehend the complexity of personality formation. For 20 years, NASA employed it in the selection and training of astronauts. Today, several renowned Fortune 500 organizations still employ this approach.

What might a communication process look like?

According on the sender's chosen communication channel, the recipient will interpret the message. For instance, the sender might talk directly to the recipient to convey the message. Instead, the sender may send the message throughout a board meeting for messages that are more official.

To know more about Process communication visit:

https://brainly.com/question/16170396

#SPJ4

Which of the following are disadvantages of assessments? Check all that apply. Some traits can be difficult to measure. Training and experience may be more important than aptitude for some positions. They cannot assess skills or abilities. Applicants may change their answers to fit whatever profile they think is being tested for. Assessments are typically too expensive.

Answers

Answer:

Some traits can be difficult to measure.

Training and experience may be more important than aptitude for some positions.

They cannot assess skills or abilities.

Applicants may change their answers to fit whatever profile they think is being tested for.

Assessments are typically too expensive.

Answer: 1, 2, 4

Explanation:

The disadvantages of assessments are statements (1), (2), and (3) are correct.

What is assessment?

The systematic method of obtaining and analyzing empirical data on information, skill, attitudes, aptitude, and beliefs in order to enhance programs and academic achievement is known as classroom assessment or educational evaluation.

Some attributes might be challenging to quantify.

For certain jobs, training and experience may be more crucial than talent.

They are unable to evaluate talents or capabilities.

Candidates are free to alter their responses to match the profile they believe is being assessed for.

The disadvantages of assessments are:

1) Some traits can be difficult to measure.

2) Training and experience may be more important than aptitude for some positions.

4) Applicants may change their answers to fit whatever profile they think is being tested for.

Thus, the disadvantages of assessments are statements (1), (2), and (3) are correct.

Learn more about the assessments here:

https://brainly.com/question/11388671

#SPJ2

Complete the sentence.
One way to increase the reliability of a hard disk drive is by making it part of ____
an optical array
a capacitator
a RAID
an analog ray

Answers

I think it is the capacitor

Answer: It is raid

Explanation:

Took the test for edge

What term is defined as software that allows users to use and adapt it for any purpose, often allowing the public to participate in further development? open well open well open use open use open pit open pit open source

Answers

A terminology which is defined as software that allows users to use and adapt it for any purpose, often allowing the public to participate in further development is: open source.

The types of software license.

In Computer technology, there are four (4) main types of software programs based on usage rights and these include the following:

Freeware softwarePurchased licenseShareware softwareOpen source software

What is an open source software?

In Computer technology, an open source software can be defined as a terminology which is used to describe a type of software that all end users can use and adapt it for any purpose or modify it for free without paying any license fee (money).

Read more on software here: brainly.com/question/25703767

#SPJ1

Why do you need to have wells where no peptide has been added?

Answers

Wells without the peptide are necessary for control, background subtraction, reference point, and valid experimental design in order to obtain reliable and accurate data.

Having wells where no peptide has been added is necessary in certain experimental setups for several reasons. Control group: Wells without the peptide serve as a control group against which the effects of the peptide can be compared. By including wells without the peptide, researchers can assess the baseline behavior or response of the system being studied. Any changes observed in the wells with the peptide can then be attributed to the presence of the peptide. Background signal: In many assays or measurements, there can be background signals or nonspecific interactions that can contribute to the overall signal.

Learn more about peptide here:

https://brainly.com/question/32004016

#SPJ11

9. Which of the following statements about polymorphism is correct? a) Polymorphism is only possible through inheritance. b) Polymorphism is only possible through interfaces. c) Polymorphism is only possible through abstract classes. d) Polymorphism is possible through both inheritance and interfaces. e) Polymorphism is always possible.

Answers

Form the given statements, Polymorphism is possible through both inheritance and interfaces is True. Polymorphism refers to the ability of objects to take on different forms or to exhibit different behavior in different situations. So, option D is the correct answer.

Polymorphism in object-oriented programming refers to the ability of an object to take on multiple forms. Polymorphism enables treating objects from different classes as if they belong to a shared superclass or interface.

Inheritance is one way to achieve polymorphism by creating a hierarchy of classes where a subclass can override methods of its superclass.

Interfaces also enable polymorphism by defining a contract that classes can implement, allowing them to be treated uniformly through the interface type. Therefore, polymorphism can be achieved through both inheritance and interfaces. So, the correct option is d.

To learn more about polymorphism: https://brainly.com/question/29887432

#SPJ11

Which of these is a small'plain text file that a website might place on your local drive? Choose the answer.

cookie

spam

virus

spoof

Answers

The answer would be cookie

Answer:

the is anwer is cookie i took the test i made sure is the right anwers

Explanation:

Roxana is in her second year in college. She has figured out that when she starts writing down everything the professor says in lecture regardless of its relevance to the main topic, that is a sign that she is not getting much, and she stops writing, makes a note to study the related textbook chapter later, and just listens. Roxana is demonstrating:


Metamemory



Preassessment



Metacomprehension



Postassessment

Answers

Roxana, who is in her second year of college, demonstrates the concept of metacomprehension.

Metacomprehension is the awareness of one's comprehension or understanding of a particular topic. It is the ability to recognize what one knows and does not know about a specific subject. This entails the ability to determine the types of skills and knowledge required to comprehend, learn, and remember something successfully. This is a significant aspect of self-regulated learning.

According to the question, Roxana noticed that when she starts writing down everything the professor says in lecture regardless of its relevance to the main topic, it is a sign that she is not getting much. Therefore, she decides to stop writing and just listen while making a note to study the related textbook chapter later. Roxana's strategy is an example of metacomprehension.

She understands that she is not effectively comprehending the information provided and recognizes the need to adjust her approach. Therefore, she makes a note to study the related textbook chapter later, indicating that she knows how to handle the task of acquiring the knowledge required to understand the subject better.Metacomprehension involves being aware of one's own knowledge and abilities, which includes understanding one's own thought process, knowledge, and strengths and weaknesses regarding a particular topic.

Learn more about Metacomprehension :

https://brainly.com/question/12223365

#SPJ11


1. The structural framework for greenhouses is typically made of
A. metal or plastic tubing.
B. wooden slats
C. glass beams
D. All of the above

Answers

The answer is D it takes all those to make a green house

Introduction
In this unit, you learned about careers related to web technology. You also learned about common skills required for any professional in this field. In this activity, you will interview a professional from the web technology sector. __________________________________________________________________________

Directions and Analysis
Task: Careers in Web Design
You have learned about different careers in web technology. Now, interview any professional from the field of web technology and obtain information on aspects like career opportunities, required experience, responsibilities, technical skills, and soft skills. Prepare a questionnaire with questions you wish to ask and leave enough space to note down the professional’s responses. Once you are done, briefly describe the information you gathered from the interview.

Type your response here:

Answers

The Careers in Web Design are:

Applications developer.Game developer.Multimedia programmer.Multimedia specialist.SEO specialist.UX designer.UX researcher.

The career that the interview will be given on is Game developer.

What are likely questions to ask Game developer?

The likely questions to ask Game developer are:

What game are you very proud of creating and why? What systems type do you use to make game ideas as well as the story characters? How do you put together and plan your project work? What are the most difficult things about video game design?

The response are:

The game that I am very proud of creating is Uniz6 and it is special because it uses life events in its storyline.The system type is Cerberus X. because it is Light as well as Intuitive.I carefully planned it and them after putting the resources together, i began working on it.The most difficult things about video game design is most times is usable doors  as well as when one Underestimate things that are important.

Therefore, The Careers in Web Design are:

Applications developer.Game developer.Multimedia programmer.Multimedia specialist.SEO specialist.UX designer.UX researcher.

Learn more about Game developer from

https://brainly.com/question/15855357

#SPJ1

write hte sparsearray method getvalueat. the method returns teh value of the sparse array element at a given row and column in the spars array

Answers

You can write the sparsearray method getvalueat that returns the value of the sparse array element at a given row and column.

Implementing the getValueAt method:

1. Define the method getValueAt, taking two parameters - the row and column of the element you want to retrieve from the SparseArray.

```java
public int getValueAt(int row, int column) {
```

2. Inside the method, search for the element with the given row and column in the SparseArray. SparseArray typically uses a data structure (like a HashMap) to store the non-zero elements, with the key being a combination of the row and column, and the value being the element itself.

```java
Integer key = row * numberOfColumns + column; // Convert row and column to a unique key
```

3. Check if the key is present in the data structure storing the non-zero elements. If it is present, return the corresponding value. If it's not present, it means the element at that row and column is a zero, so return 0.

```java
if (sparseArrayData.containsKey(key)) {
   return sparseArrayData.get(key);
} else {
   return 0;
}
```

4. Close the method definition with a closing brace.

```java
}
```

Here's the complete method implementation:

```java
public int getValueAt(int row, int column) {
   Integer key = row * numberOfColumns + column; // Convert row and column to a unique key

   if (sparseArrayData.containsKey(key)) {
       return sparseArrayData.get(key);
   } else {
       return 0;
   }
}
```

With this method, you can now retrieve the value of an element at a specific row and column in the SparseArray.

To know more about HashMap visit:

https://brainly.com/question/30088845

#SPJ11

Which of the given original work is protected by the copyright law?
A.
NBC logo
B.
Monsanto’s genetically modified seeds
C.
BMW logo
D.
The Fault in Our Stars by John Green

Answers

Answer: D. the fault in our stars by john green

3. Choose the statement that best describes a ray. A ray extends forever in both directions. B ray is a part of a line with two endpoints. C ray is an exact location. D ray has one endpoint and continues forever in the opposite direction.

Answers

Answer:

Ray is part of a line that starts at one point and extends forever in one direction.

Explanation:

In geometry, a ray can be defined as a part of a line that has a fixed starting point but no end-point. It can extend infinitely in one direction. On its way to infinity, a ray may pass through more than one point. The vertex of the angles is the starting point of the rays.

Extra

B. A part of a line with two endpoints?

line segment

A line segment has two endpoints. It contains these endpoints and all the points of the line between them. You can measure the length of a segment, but not of a line. A segment is named by its two endpoints, for example, ¯AB.

Answer:

Ray is part of a line that starts at one point and extends forever in one direction.

Explanation:

software design and implementation are interleaved activities. the level of detail in the design depends on the type of system being developed and whether you are using a plan-driven or agile approach.

Answers

The statement given is true because both software design and software implementation are interleaved activities, where the level of design's detail depends on the type of software being developed and whether a plan-driven or agile approach is being used.

Both the activities such as software design and software implementation are invariably interleaved. Software design is a creative activity whereby based on a customer's requirements, software components and their relationships are identified. While software implementation refers to as the process of realizing the software design as a running program. The depth of detail of software design is depended on the software type being developed and also it depends on the software development approach whether it is agile or plan driven.

Thus, the given statement is true.

"

Below is given the complete question:

software design and implementation are interleaved activities. the level of detail in the design depends on the type of system being developed and whether you are using a plan-driven or agile approach.

True or False

"

You can leran more about Agile Approach at

https://brainly.com/question/23661838

#SPJ4

Other Questions
What is the percent hydrolysis in 0.075 M sodium acetate, NaCH3COO, solution?a. 0.0087%b. 0.012%c. 0.0064%d. 0.0038%e. 0.043% Jeweler Tiffany & Co. is following a differentiation strategy and wants to charge a high price for high quality jewelry.What would the organization's focus need to be to execute each strategy? TRUE / FALSE. the author of the source, ibn al-wardi, experienced the black death, but he was largely unaware of the epidemic's geographic extent. Do you think it would be nice to have your future career chosen for you? Why or why not? help yall!! its gradpoint!! this is the last question & ive failed this test so many times :( The electrons of an atomSelect one:a. have a positive charge.b. are attracted to the positive charge of neutrons.c. orbit the nucleus in various energy levels.d. are found in the nucleus along with the protons. Find f. f(x)=cos(x),f(0)=3,f(0)=6,f(0)=9 f(x)= sri lankan is hotter than nepal . why? pls answer if u know the answer ^w^ thx! Friction _____.A) is always and unwanted forceB) works in the opposite direction of motionC) causes machines to work 100 percent efficientlyD) can be increased using lubricants, like oil mothers of children with adhd often describe their children as being ____ as infants. The ITCZ is a zone of pressure. none of theseOmedium Lovehigh industries that process raw materials before being transported to the market Which are the two most important reasons for continuing education in the healthcare fields?A. Rapidly increasing medical costs and a competitive job marketB. Technological advancement in new discoveries in health care C. Job satisfaction in an unstable economyD. Government requirements and rapid Computerization Crimson company's journal shows a debit to the dividend account and a credit to cash. crimson company must have:________ as a modern musical retelling of romeo and juliet, bernstein's west side story recasts the feuding families as __________. Which of the following is a nonrenewable energy source? O A. Solar B. Hydroelectric C. Natural gas D. Biomass Is perpendicular to the line y = 2x + 1and through the point (-1,5) A candidate from the Green Party in the United States runs for the presidency to bring attention to issues involving the environment and social justice. The Green Party could be considered which of these?answer choicesA. ideological partyB. major partyC. single-issue partyD. splinter party Being fiscally responsible, meaning not spending too much, includes:(Choose all that apply)Making careful spending decisionsSaving and investing for the futureSpending every cent of your paycheck as soon as you get itKeeping to a budgetUsing credit wisely kyle wishes to purchase a used car that has a cash price of $12,000. the installment terms include a down payment of $3,000 and 48 monthly payments of $224.what finance charge will kyle pay?what is the APR to the nearest half percent?