2.7 Code Practice: Question 1

Write a program that takes three numbers as input from the user and prints the largest

Can someone please help me with this because I’ve been struggling all day

Answers

Answer 1

Answer:

You didn't specify the programming language

I'll answer using Python

nums = []

for i in range(1,4):

     inp = int(input("User Input: "))

     nums.append(inp)

nums.sort()

print(nums[-1])

Explanation:

I made use of list in answering this question.

Start by declaring an empty list

nums = []

Use iteration to enter the list elements

for i in range(1,4):

     inp = int(input("User Input: "))

     nums.append(inp)

Sort the list

nums.sort()

Then print the element on the last index

print(nums[-1])

Answer 2

The code below is in Java

It uses if-else structure to find out the largest number among three numbers given by the user.

Comments are used to explain each line of the code

//Main.java

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

    //Create a Scanner object to be able to get input

    Scanner input = new Scanner(System.in);

   

    //Declare the variables

    int number1, number2, number3, largest;

   

    //Ask the user to enter three numbers

 System.out.print("Enter the first number: ");

 number1 = input.nextInt();

 System.out.print("Enter the second number: ");

 number2 = input.nextInt();

 System.out.print("Enter the third number: ");

 number3 = input.nextInt();

 

 /*

     Check if the first number is greater than or equal to the second and third number.

     If it is, the largest is the first one.

     Otherwise, check if the second number is greater than or equal to the first and third number.

     If it is, the largest is the second one.

     If the previous conditions are not satisfied that means third is the largest one

 */

 if(number1 >= number2 && number1 >= number3)

     largest = number1;

 else if(number2 >= number1 && number2 >= number3)

     largest = number2;

 else

     largest = number3;

 

 //Print the largest number  

 System.out.println("The largest number is " + largest);

}

}

You may see a similar question in the following link:

brainly.com/question/17132559


Related Questions

To interact with the World Wide Web, a client computer needs an application layer software package called a:

Answers

Answer:

web browser

Explanation:

The internet is a network, the www is a system of websites and webpages that uses the internet. A browser makes sense of the data of webpages.

Given an "out" string length 4, such as "<<>>", and a word, return a new string where the word is in the middle of the out string, e.g. "<>". Note: use str.substring(i, j) to extract the String starting at index i and going up to but not including index j.
makeOutWord("<<>>", "Yay") → "<>"
makeOutWord("<<>>", "WooHoo") → "<>"
makeOutWord("[[]]", "word") → "[[word]]"

Answers

Answer:

The following are the answer to this question.

Explanation:

In the given code, a "makeOutWord and word" is already used to hold some value. In this code, we define a string method "makeOutWord" that accepts two string variables "out and the word" in its parameter.

Inside the method, a return keyword is used that uses the string variable "out and the word" with the "substring" method, this method is used to returns a new string from an old string value, and it also uses the "word" string variable for the return value.  

please find the attached file for code:

Different types of names given to explicit convertion in java

Answers

Answer:

Different types of name given to explicit conversation in java are

1. Automatic

2. Explicit

On a webpage, a _____ provides supplemental material such as social networking feeds and ads. Group of answer choices footer sidebar header navigation bar

Answers

Answer:

sidebar

Explanation:

The part of the webpage that is being described in this question is known as a sidebar. These are the far left/right sides of the webpage and are usually used for networking feeds, ads, related information, major points of the main page, biographical info, as well as persuasive information. This section of the webpage serves two main purposes to provide the viewer with advertisements and to encourage the reader to read the more detailed main article.

The questions are from HTML. State whether the following statements are true or false. 1. HTML is the programming language. 2. Web page is the collection of website. 3. <marquee> tag is used to link the Hyper text. 4. Heading tag supports different levels from H1 to H6. 5. Attributes provide additional information to the HTML tags. 6. Empty tags must be closed with ending tag </>. ​

Answers

Answer:

true

Explanation:

hope this helps

What does it mean to say RAM is volatile? *

Answers

It means that it’s computer memory that needs power to keep the stored information. You can easily lose your data when the power is interrupted.

evolution of new technology also increased the crime in our society explain​

Answers

Answer:

yes ,for sure evolution of new technologies also increased the crime in our society. Many cyber crime are occurring due to the use of new technologies. People can hack the data , transfer money from others account and so on . People are using new technology to harm others ,steal others data and information . It has given an opportunity to many people to do various crime easily .

If something is copyrighted,
how can it be used?
A. Only with credit
B. Only with permission
C. With credit or in certain "fair use" cases
D. With permission or in certain
air use" cases

Answers

D
Because you need permission

adding transition slides to a presentation

Answers

Answer:

1. Select the slide you want to add a transition to.

2. Select the Transitions tab and choose a transition. Select a transition to see a preview.

3. Select Preview to see what the transition looks like.

To remove a transition, select Transitions > None.

Can anyone help me
I will make you a brainalist

Answers

Answer:

Explanation:

Exercise A:

1. A table.

2. Categorical.

3. Access.

4.Queries.

5.ACCDB extension.

Exercise B:

1. Insert Tab.

2. DoCmd.Quit method.

3.Navigation Pane.

4. Modify table data.

5.The top pane and the bottom pane.

Hope this helped you!

Robert’s computer is not working properly. It has become too slow to respond to programs. What can he do to maintain his computer and help it function properly?

Answers

Answer: Utility Software

Explanation:

Utility software is software designed to help to analyze, configure, optimize or maintain a computer. It is used to support the computer infrastructure - in contrast to application software, which is aimed at directly performing tasks that benefit ordinary users.

Answer:

Utility software

Explanation:

The flowchart that show the sequence of logical operations executed by a computer is called a: A. Systems flowchart B. Operations flowchart C. Program flowchart D. Decision flowchart

Answers

Answer:

It is called a Program Flowchart.

Explanation:

It is implied in the AMS Climate Paradigm that components of Earth’s climate system (e.g., atmosphere, hydrosphere, cryosphere, geosphere, and biosphere) interact in a(n) ________ way as described by natural laws.

Answers

Answer:

orderly

Explanation:

The American Meteorological Society presents information, development, and an interdisciplinary approach towards the researches of atmosphere and hydrosphere. The goal of the society is intended towards developing a research-based idea covering the topics of atmosphere and science. The atmosphere, hydrosphere, cryosphere, geosphere, and biosphere are the components of the environment that helps in determining and analyzing the climatic condition of the Earth.

A technician is troubleshooting an expansion card in a computer that allows the computer to receive faxes over a VoIP line. The line connected to the expansion card is MOST likely which of the following cable types?A. CoaxialB. CAT3C. CAT6D. Multi-mode fiberE. Single-mode fiber

Answers

Answer:

C. CAT6

Explanation:

CAT6 cable is the standard twisted pair cable for Ethernet and other network physical layers, lagging behind with category 5 / 5e The cat 6 cable can be detected by printing on the side of the cable sheath. TIA / EIA-568 defines cable type, connector type and cabling topology. Cat 6 cable has a maximum length of 55 m (180 ft) when used for 10GBASE-T and is rated at 500 MHz At a frequency frequency of 500 MHz, the ISO / IEC CAT 6A connector performs 3 dB better than the Cat 6A connector, which is EIA / TIA specified.

When did the silent movie era end?
A.1919
B.1929
C.1939
D.1949

Answers

Answer:

The answer is 1929.

Pretty sure your answer is B. 1929

Which type of software can be used without paying a license fee and can be modified to add capabilities not realized by its originators? *
10 points
Application software
System software
Open-source software
Proprietary software

Answers

Answer:

Open Source software.

Answer:

open source software

Explanation:

JavaScript is very complex scripting ________________​

Answers

Answer:

yes it is was this a questipn

Answer:

Java script is very complex scripting language.

Explanation:

Java script is most commonly used in a client side scripting language, user request an html page with java script is sent to the browser.

Java script code is written into an the html page, java script can be used to the in other contexts  a web browser.Java script could not be used to write real complex programs, and site is used to the deals of java script in web browser.Java script is the primarily a scripting language for they use of html pages,java script is client side scripting language.Java script was the developed by the Brendan, and it can be used in a server side environment.Java script they descend to the both C and C++ languages gone in quite different directions.Java script is a lightweight interpreted programming language and java script source code compiled into a faster to the binary format.Java script is to contain the applied to your html page in a similar manner to CSS.Java script is the object oriented nature to understand to go further knowledge of that language and write more efficient code.Java script is developed by the Netscape, java script to run the designed Netscape navigator.

Two fingers are assigned to six letters each. What fingers are they?

Answers

Answer:

The left and right index finger

Explanation:

Left index finger: R, T, F, G, C, V

Right index finger: Y, U, H, J, B, N

Technologies are having a negative impact on businesses.

Answers

Answer: False

Explanation: I think its false because technologie has had a good impact on businesses.

Answer:

False

Explanation:

Technology has increased the capacity of businesses.

Using the drop-down menus, correctly match the name of the person with the computer-programming
innovation
In 1975,
founded Microsoft, which released Altair BASIC, the first
programming language for personal computers.
found the first computer bug in 1947, and invented the concept of a compiler in
1952
v led a team at IBM that developed FORTRAN and its compiler in 1957
developed C++ programming language, and published the reference guide
in 1987
released the Python programming language.

Answers

Answer:

1. Bill Gates and Paul Allen

2. Grace Murray Hopper

3. John Backus

4. Bjarne Stroustrup

5. Guido van Rossum

A web developer overhears an executive’s username and password, and then uses it to download the company’s secret chocolate-chip cookie recipe. He makes the cookies at home and posts the recipe on his blog.

identity theft

corporate espionage

software piracy

sale of trade secrets

Answers

Answer:Sale of trade secrets

Explanation:

Just took it

Answer:

sale of trade secrets

Explanation:

Just took it edgen 2020 is correct

A web developer overhears an executive’s username and password, and then uses it to download the company’s secret chocolate-chip cookie recipe. He makes the cookies at home and posts the recipe on his blog.

trade

/trād/

the action of buying and selling goods and services.

Which of the following is not a method for opening Word software? right clicking on the desktop and selecting "view" selecting the Start button and navigating through all programs selecting the Start button and navigating to the most recently used programs using an icon on the desktop

Answers

Answer:

right clicking on the desktop and selecting "view"

Explanation:

A word software enables us to create, edit  two or more documents at the same time and print documents, to write text, store it electronically, display it on a screen and modify it by entering commands, and then print it.

It enables you to draw graphs, and possibly even convert videos into a document.

Word software cannot be opened by right-clicking on the desktop and selecting "view".

Answer:

right clicking on the desktop and selecting "view" selecting the Start button

Explanation:

Word pad is a word processing software included with all versions of MS- Windows starting from Windows 95 to Windows 10. It is more better compared to Notepad and much simpler than Microsoft Word. Microsoft replaced the Microsoft write.

You cannot access word pad by clicking on the desktop and selecting "view", the simplest way to access Word pad is by clicking on the start button and then clicking on the word pad.

In one to two sentences, explain how consumption is determined in a market economic system.

Answers

Answer:

In a free market economic system, consumption is determined based on the goods and services that make use of the most efficient use of resources and production factors such that consumers encourage producers to produce what they want as such consumer spending is equal to the sum of spending for essential commodities and the extra spending based on disposable income which reflects the wants, or trend of the consumers and therefore, the future pattern of production

Explanation:

Answer:

In a free market economic system, consumption is determined based on the goods and services that make use of the most efficient use of resources and production factors such that consumers encourage producers to produce what they want as such consumer spending is equal to the sum of spending for essential commodities and the extra spending based on disposable income which reflects the wants, or trend of the consumers and therefore, the future pattern of production

Explanation:

What type of network is a private network that can also be accessed by authorized external customers, vendors, and partners?

Answers

Answer:

extranet

Explanation:

An extranet is a controlled private network that allows access to partners, vendors and suppliers or an authorized set of customers – normally to a subset of the information accessible from an organization's intranet.

Programming environment is

Answers

Answer:

environments containing language specific editors and source level debugging facilities or all of the hardware and software in the environment used by the programmer.

Explanation:

quick google search.

Which business filing process puts documents or data in the order by date? a. Linear
b. Reverse chronological
c. Nonlinear
d. Chronological

Answers

Answer:

d. Chronological

Explanation:

Chronological can be defined as an arrangement of data, items or documents in the order in which they occurred or happened (in time), from the earliest to the most recent or latest.

Hence, chronological order is a business filing process which puts documents or data in the order by date.

For instance, the arrangement of documents in a shelf from January to December.

If the 5th term of an A.P is 7 and the first term is 2.Find the common difference.​

Answers

Answer:

5/4

Explanation:

a=2

a5=7

a+(5-1)d=7

2+4d=7

4d=5

d=5/4

Which of the following is the best definition of the
word aptitude?
personal interest
potential skill level

success factor
actual skill level

Answers

Answer: For the definition of aptitude the answer is B-potential skill level . For the definition of ability the answer is D -actual skill level

Explanation: I did the assessment:)!

The best definition of the word aptitude will be actual skill level. Then the correct option is D.

What do you mean by the word aptitude?

A component of the ability to perform a certain sort of task at a specific level is aptitude. Exceptional aptitude may be deemed to possess the skill. The capacity to carry out particular tasks, whether physical or cerebral but rather whether developed or underdeveloped, is referred to as aptitude. When compared to talents and abilities, which are acquired via training, the ability is frequently contrasted.

Both capability and IQ are terms that refer to a person's mental capacity. Unlike the basic concept of intelligence (IQ), aptitude frequently refers to any of a variety of diverse traits that can exist independently of one another, such as the ability for programming language, military flying, or air traffic control.

The term "aptitude" is best defined as real skill level. Then the correct option is D.

More about the word aptitude link is given below.

https://brainly.com/question/20372641

#SPJ2

This contains lists of commands that you can use to tell the computer what to do. o command prompt Finder folder Menu bar​

Answers

Answer:

Menu Bar

Explanation:

its right

Match the following
image editing software
Web browsers
Computer Aided Design, or the use of software to aid in
1,
technical drawings and models
2. Information processed or stored by the computer
3. software that organizes a collection of data
also known as graphics software, this software enables a
4.
person to change or create visual images on a computer
fields on a screen used to search for specific information in a
5.
database
CAD
query
Web page
dota
6. Software used to browse the World Wide Web
a page on the World Wide Web that may contain text,
7
Images, audio, or video
database

Answers

Answer:

4

Explanation:

because your wanting something that's well edit an image

Other Questions
1) Shannon wants to lower her stress level. She decides to take a yoga class and learns to meditate to help reduce her stress. What can Shannon do to monitor her progress toward her goal? A) She can avoid using alcohol and drugs. B) She can try to eat healthy food every day. C) She can make sure she is getting enough sleep. D) She can keep a diary to record her mood each day. About how many metric tons of oil were consumed in the world 2012 what is the simplest form of 85 + 250 - 720? ive been crying over this for an hour pls help 8. Choose the best answer.Which of these sentences uses the perfect tense of the verb?please help due in 45 minutes You are the manager of a fast-food store. Part of your job is to report to the boss at the end of each day which special is selling best. Use your vast knowledge of descriptive statistics to write one paragraph letting the boss know what happened today. Here are the data. Do this exercise by hand. Be sure to include a copy of your work.SPECIAL NUMBER SOLD COSTHuge Burger 20 $2.95Baby Burger 18 $1.49Chicken Littles 25 $3.50Porker Burger 19 $2.95Yummy Burger 17 $1.99Coney Dog 20 $1.99Total Specials Sold 119 While on a visit to Minnesota ("Land of 10,000 Lakes"), you sign up to take an excursion around one of the larger lakes. When you go to the dock where the 1500-kg boat is tied, you find that the boat is bobbing up and down in the waves, executing simple harmonic motion with amplitude 20 cm. The boat takes 3.5 s to make one complete up-and-down cycle. When the boat is at its highest point, its deck is at the same height as the stationary dock. As you watch the boat bob up and down, you (mass 60 kg) begin to feel a bit woozy, due in part to the previous nights dinner of lutefisk. As a result, you refuse to board the boat unless the level of the boats deck is within 10 cm of the dock level. Required:How much time do you have to board the boat comfortably during each cycle of up-and-down motion? Which label on the map shows the location of Peloponnesus Which coordinates best estimate the location of Woonsocket, SD? Answer the following question in 3-4 complete sentences.Define the following terms:- medium- technique- proportion 6. Toni can carry up to 18 lb in her backpack. Her lunch weighs 1 lb, her gym clothes weigh 2 lb, and her books (b) weigh 3 lb each. How many books can she carry in her backpack?Do not use the equal sign, we're using the greater than sign > and the < less than sign! Brian invests 8500 into his bank account. He receives 5.7% per year compound interest. How much will Brian have after 6 years? Give your answer to the nearest penny where appropriate. Ill give brilliant if answers are Right Security A has a higher standard deviation of returns than security B. We would expect that: I. Security A would have a higher risk premium than security B. II. The likely range of returns for security A in any given year would be higher than the likely range of returns for security B. III. The Sharpe ratio of A will be higher than the Sharpe ratio of B. A. I only B. I and II only C. II and III only D. I, II, and III what is the density of an object with 17 g and a volume of 3cm^3 Mylie went by the gas station to get 2.4 gallons of gas. She paid with a $10 bill and a $5 bill and received $4.68 as change. What was the cost for one gallon of gas before taxes? $4.30 $8.20 $10.32 $24.77 The stopper-puncturing needle should be completely pushed into the evacuated tube:__________. A. after the vein is entered. B. while the equipment is being assembled. C. just before the vein is entered. D. prior to anchoring the vein. 5. Suppose that when the price of hamburgers decreases, the Ruiz family increases their purchases of ketchup. To the Ruiz family, hamburgers and ketchup are __________ The Rococo art movement was born out of:O A. resistance to the strict rules of academic painting.O B. the creation of a standardized set of artistic styles.O C. conflict between Catholic and Protestant artists.D. a desire for a uniquely French artistic style. Need help doing homework Write the equation of the line that goes through the point (7, 10) and is parallel to the line y = 2x + 5