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
Allisa [31]
2 years ago
5

PLEASE HELP I NEED TO CHECK MY ANSWER ASAPPP

Computers and Technology
1 answer:
Vadim26 [7]2 years ago
5 0

Functions are code segments that are executed when called or invoked

The function definition is not given; so, the output of the program cannot be outrightly determined.

However, the following are the possible scenarios.

  • The program would return 35.55 if the 2 represents the digits after decimal.
  • The program would return 36 if the 2 represents the significant digits.

It is unlikely for the program to return (a) 35.555 and (d) 40

Read more about functions at:

brainly.com/question/14284563

You might be interested in
True or false a relational database is one in which every data item is related to every other data item
Vilka [71]
I think false, because the rows in a table for instance, do not relate to each other, but can relate to rows in another table, if some of the columns are foreign keys, pointing to primary keys in another table.
8 0
3 years ago
Write a program that uses a stack to test input strings to determine whether they are palindromes. A palindrome is a sequence of
Maslowich

Answer:

Here the code is given as follows,

Explanation:

def isPalindrome(x):

   stack = []

   #for strings with even length

   if len(x)%2==0:

       for i in range(0,len(x)):

           if i<int(len(x)/2):

               stack.append(x[i])

           elif stack.pop()!=x[i]:

               return False

       if len(stack)>0:

           return false

       return True

   #for strings with odd length    

   else:

       for i in range(0,len(x)):

           if i==int(len(x)/2):

               continue

           elif i<int(len(x)/2):

               stack.append(x[i])

           elif stack.pop()!=x[i]:

               return False

       if len(stack)>0:

           return false

       return True  

def main():  

   while True:  

       string = input("Enter a string or Return to quit: ")  

       if string == "":  

           break  

       elif isPalindrome(string):  

           print("It's a palindrome")  

       else:  

           print("It's not a palindrome")  

if __name__ == '__main__':  

   main()

8 0
3 years ago
Helppppp meeee eeeeeee eee
zlopas [31]

Answer:

Thats the gas petal i believe so the accelerator

Explanation:

3 0
3 years ago
Read 2 more answers
What is the main difference between EDBAC and EDNIAC......​
lawyer [7]

Answer:

EDVAC (Electronic Discrete Variable Automatic Computer) was the successor to ENIAC, was binary based, and used stored programs, and was also designed by Eckert and Mauchly, UNIVAC I (UNIVersal Automatic Computer I) was the first commercial computer. It was designed by the same two men who designed ENIAC and EDVAC.

Explanation:

6 0
4 years ago
Read 2 more answers
List out any five input and output devideos​
monitta
Asks issiaksmskskskejehshsjsjsnsdkxxkdnsabhwssns
4 0
3 years ago
Other questions:
  • What will be the value of i after the C statements at the right have been executed
    6·1 answer
  • Write a loop that continually asks the user what pets the user has, until the user enters "rock", in which case the loop ends. I
    12·1 answer
  • Which of the following is the correct code to link the text "Sunny Days" to the website www.sunnysunshine.com?
    15·1 answer
  • Can some one help me i do not now how to give a BRANLEST. if you help i will give you one BRANLEST.
    7·2 answers
  • An alarm clock draws 0.5 A of current when connected to a 120 volt circuit. Calculate its resistance.
    10·1 answer
  • Explain the principle of a Kimball as a data input device<br>​
    5·2 answers
  • Is the address 7b invalid regarding cell references?
    8·1 answer
  • Write a program to check whether the number is odd or even using 'if' statement in python
    13·1 answer
  • ____ is a technology that exists inside another device
    9·2 answers
  • You need to design an online login form in which users have to type their name and password to log into an application. The pass
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!