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
weeeeeb [17]
3 years ago
6

Help is always very appreciated

Computers and Technology
1 answer:
Andrew [12]3 years ago
3 0

16.

num = float(input("Enter a number: "))

if num >= 0:

   print(num**0.5)

17.

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

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

operation = input("Which operation would you like to perform (a/s/m/d): ")

if operation == "a":

   print("{} + {} = {}".format(num1, num2, num1+num2))

elif operation == "s":

   print("{} - {} = {}".format(num1, num2, num1-num2))

elif operation == "m":

   print("{} * {} = {}".format(num1, num2, num1*num2))

elif operation == "d":

   print("{} / {} = {}".format(num1, num2, num1/num2))

18.

The answer is algorithm

19.

The correct answer is C

20.

We analyze algorithms to see which algorithm is the best fit for the job.

I hope this helps!

You might be interested in
Ask the user to type in an integer greater than 50 and assign it to a variable called x. Write a program to calculate the sum of
Zinaida [17]

Answer:

The solution in Python is as follows:

<em>num = int(input("Number: "))</em>

<em>if num>50:</em>

<em>     sum = 0</em>

<em>     count = 0</em>

<em>     for i in range(1,num):</em>

<em>          count = count + 1</em>

<em>          sum = sum + i**2</em>

<em>          if sum > num:</em>

<em>               sum = sum - i**2</em>

<em>               count = count - 1</em>

<em>               break;</em>

<em>    </em>

<em>     print("Sum: "+str(sum))</em>

<em>     print("Numbers: "+str(count))</em>

<em>else:</em>

<em>     print("Number must be greater than 50")</em>

<em />

Explanation:

The condition stated in the question do not conform with the example. The question says, the loop should stop when sum > x.

But:

When x = 100 and sum = 91, the program loop should not stop because 91 is not greater than 100.

However, I'll answer based on the example given in the question.

This prompts user for number

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

The following if condition is executed if number is greater than 50

if num>50:

This initializes sum to 0

    sum = 0

This initializes count to 0

    count = 0

The iterates through the inputted number (e.g. 100)

    for i in range(1,num):

This increases the count

         count = count + 1

This calculates the sum of square of the positive integer

         sum = sum + i**2

The following removes excess number from the sum

<em>          if sum > num:</em>

<em>               sum = sum - i**2</em>

<em>               count = count - 1</em>

<em>               break;</em>

This prints the calculated sum    

    print("Sum: "+str(sum))

This prints the count of number used

    print("Numbers: "+str(count))

The following is executed if user input is less than 50

<em>else:</em>

<em>     print("Number must be greater than 50")</em>

<em />

<em></em>

3 0
3 years ago
Routing and remote access services allow users to connect to private networks using or:.
Luda [366]

Answer:

Users can connect to a remote access server through a dial-up connection or a virtual private network (VPN) connection.

Explanation:

A dial-up connection requires both the server and the client computer to have a correctly configured modem. The client and the server connect over analog public telephone networks. To enhance the security of a dial-up connection, use data encryption, Windows logon and domain security, remote access policies and callback security.

8 0
2 years ago
What is the name of the time delay in a CPU caused by differences between the speed o CPU, the system bus, and memory circuits?
Digiron [165]

Answer:

Option b is the correct answer for the above question.

Explanation:

The wait state is a state in which any process is waiting in a queue for his option. It happens when the other process is going on. It is because the CPU has not the capability to solve the problem of more processor. The above question asked about the name of the delay which is caused by the CPU for any processor then the answer is wait state because when a process is ready for the process but it is waiting for his turn then the state of the process is known as a wait state. so the Option b is the correct because it states about the wait state which is the correct answer which is described above but the other is not because--

  • Option 'a' states about the wait cycle which is not the correct option.
  • Option c states about the dead cycle which is also not the correct answer.
  • Option d states about the memory write which is also not the correct answer.

4 0
3 years ago
Anyone free to inbox me plz....​
MArishka [77]

Answer:

To message you? Here is my alt number (240-918-2355) you can text me if you want ¯\_(ツ)_/¯

8 0
3 years ago
Read 2 more answers
Is the method a network interface uses to access the medium and send data frames and the structure of these frames?
Alja [10]
Network technology <span>Is the method a network interface uses to access the medium and send data frames and the structure of these frames.</span><span />
3 0
3 years ago
Other questions:
  • When setting quotas for disk space, what are the two tools for enabling and configuring quotas? and which of the two are the mor
    8·1 answer
  • Which of the following agricultural clusters would require administrative and financial training? biotechnology agribusiness sys
    8·1 answer
  • Which of the following is the definition of Internet Protocol Security ( IPSec)? A remote access client/server protocol. It is a
    13·2 answers
  • Does players report you on Mobile legends bang bang for playing your own Music while your playing yes or no
    11·1 answer
  • Mario wants to make his document more accessible to those who do not have access to a Word application. He
    9·2 answers
  • What are the three types of event logs generated by windows 2003 and vista systems?
    12·1 answer
  • Which property of a DBMS lets you change the database structure without requiring you to change the programs that access the dat
    10·1 answer
  • The primary reason for a company to outsource jobs is to
    8·2 answers
  • Keli is unable to find a shape that meets her needs. Which feature in Power Point should she use to create shapes that are compl
    6·1 answer
  • Provide 10 points for each question
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!