1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ne4ueva [31]
3 years ago
13

Can someone please give me the 3.6 code practice answer I will mark you brainlyist

Computers and Technology
1 answer:
Stolb23 [73]3 years ago
3 0

3.6 Code Practice Question:

Write a program to input 6 numbers. After each number is input, print the biggest of the number entered so far:

Answer:

nums = []

biggest = 0

for i in range(6):

    num = int(input("Number: "))

    nums.append(num)

    if(i == 0):

         print("Largest: "+str(nums[0]))

         biggest = nums[0]

    else:

         if nums[i]>biggest:

              print("Largest: "+str(nums[i]))

              biggest = nums[i]

         else:

              print("Largest: "+str(biggest))

                       

Explanation:

This question is answered using python

This line declares an empty list

nums = []

This line initalizes the biggest input to 0

biggest = 0

This iteration is perfoemed for 6 inputs

for i in range(6):

This prompts user for input

    num = int(input("Number: "))

This appends user input to the list created

    nums.append(num)

For the first input, the program prints the first input as the largest. This is implemented in the following if condition

<em>     if(i == 0):</em>

<em>          print("Largest: "+str(nums[0]))</em>

<em>          biggest = nums[0]</em>

For subsequent inputs

    else:

This checks for the largest input and prints the largest input so far

<em>          if nums[i]>biggest:</em>

<em>               print("Largest: "+str(nums[i]))</em>

<em>               biggest = nums[i]</em>

<em>          else:</em>

<em>               print("Largest: "+str(biggest))</em>

<em />

You might be interested in
Which of these is mostly likely to help a teen have healthy online behavior
Damm [24]
What are the choices
8 0
4 years ago
What does the coding phase involve?
Harman [31]

Answer:

I do believe it is D im not sure

5 0
3 years ago
Read 2 more answers
The East Coast sales division of a company generates 62 percent of total sales. Based on that percentage, write a Python program
Gennadij [26K]

Answer:

def prediction(sales):

print(0.62 * sales)

prediction(4600000)

Explanation:

Code written in python :

We could write it out has a function :

The code is written has a function ;

'def' starts the function which is named prediction. The function takes in a single argument which is the amount of sales made. Since the percentage of sales generated is a constant pegged at 62%. The expression print( 0.62 * sales) outputs the amount generated by east coast. The function call; prediction(4600000) prints the amount generated if a sales of $4600000 is made.

8 0
3 years ago
A(n) ____ string contacts the data source and establishes a connection with the database using the Data Source Configuration Wiz
rjkz [21]

Answer:

Option(b) i.e "connection " is the correct answer for the given question.

Explanation:

In the visual basics of .Net when we want to establish the connection with the database we have to use the data configuration wizard. A connection is the string contacts of the data source that establishes a connection with the database.

  • The connection string connects the particular project to the data source configuration wizard.
  • After creating the string we have to follow the steps on how to create the data set and connect with the database.

Option(a),Option(c) and Option(d) are not relate the connection of the database.

So the "connection" is the correct answer.

7 0
3 years ago
Write a for loop that uses the loop control variable to take on the values 0 through 10.
Vikki [24]

Answer:

1.Ensure the file named NewestMultiply.java is open. Write a do while loop that uses the loop control variable to take on the values 0 through 10. In the body of the loop, multiply the value of the loop control variable by 2 and by 10. Execute the program by clicking Run and verify that the output is correct.

Explanation:

7 0
3 years ago
Other questions:
  • What is not critical when you are first designing a database?
    9·1 answer
  • what happens when you double-click on a file with an extension that represents an executable program?
    5·1 answer
  • What does the hard drive do
    10·2 answers
  • When malicious code is planted on your computer and alters your browser's ability to find web addresses, it is known as ________
    7·2 answers
  • Microsoft ________ is a cloud storage and file sharing service
    12·1 answer
  • What is green computing in non-technical term?​
    15·1 answer
  • A bug collector collects bugs every day for seven days. Write a program in Python that finds the highest number of bugs collecte
    11·1 answer
  • A(n) ________ is a server-based operating system oriented to computer networking and may include directory services, network man
    5·1 answer
  • What are all the Answer Streaks (Fun Facts) for brainly?
    13·2 answers
  • explain how principles of computational thinking skills are applied in finding solutions that can be interpreted into software a
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!