Question

Help needed related python ! Thanx

6. What makes the exclusive-or the most interesting of the logic operations in Boolean algebra? (Hint: try them and see.) 7. The How Computers Work Part III video from Week 1 talks about assembly level abstraction. Why is it better than machine code? Why is the assembly level abstraction still not abstract enough? Give the 2300 year old algorithm by Euclid for finding the greatest common divisor which is: 8. 9. Get two positive integers as input; call the larger value i and the smaller value j. Divide i by j and call the remainder r. If r is not equal to 0, then reset to the value of j; reset jto the value of r and go back to part b. Print out the answer, which is the value ofj after all of the looping. Try the algorithm above for the numbers 20 and 32; prepare a table that shows the values of i, j, and r after each step of the algorithm and tell me what would print out at the end of the algorithm. a. b. c. d. e. 10. Write a definition (for the text) of computer science, algorithm, and abstraction. These are the 3 most important words you will learn this term. Memorize them.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Help needed related python ! Thanx 6. What makes the exclusive-or the most interesting of the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Help needed related python ! Thanx :) #First let's ask the user for one of their...

    Help needed related python ! Thanx :) #First let's ask the user for one of their favorite book. # Now let's use concatenation to ask who wrote this book. # Create an empty dictionary to hold the favorite books and authors. # Use a for loop to prompt the user to enter 5 of their favorite books. # A general structure is given below. for book in favorite_book range(5): print (book) favorite_book = input("What is one of your favorite books?...

  • Urgent help needed related python ! Thanx *On average the population increases by 30% each year...

    Urgent help needed related python ! Thanx *On average the population increases by 30% each year due to immigration and natural births. * Every 18 years the population is reduced by 40% due to children coming of age and being drafted for football. Year O is considered a draft year. The calculation for draft numbers is done after the calculation for population growth. * Each unit of food is enough to feed a single person for an entire year. *...

  • 12p I need help this is Python EXCEPTIONS: It's easier to ask forgiveness than permission. Try...

    12p I need help this is Python EXCEPTIONS: It's easier to ask forgiveness than permission. Try the code and catch the errors. The other paradigm is 'Look before you leap' which means test conditions to avoid errors. This can cause race conditions. 1.Write the output of the code here: class MyError(Exception): pass def notZero(num): if num == 0: raise MyError def run(f): try: exec(f) except TypeError: print("Wrong type, Programmer error") except ValueError: print("We value only integers.") except Zero Division Error:...

  • SHORT ANSWER QUESTIONS Part 1 Classes Abstraction: What is Abstraction in terms of representation? Specifically what...

    SHORT ANSWER QUESTIONS Part 1 Classes Abstraction: What is Abstraction in terms of representation? Specifically what choices does one make when creating a class that is an example of Abstraction? Encapsulation: What is encapsulation? What is information hiding? What does a public interface to a class consist of (not in the sense of actual java interfaces but what the client uses to manipulate objects of the class) What is an object of a class? What is the constructor? How do...

  • Game Description: Most of you have played a very interesting game “Snake” on your old Nokia...

    Game Description: Most of you have played a very interesting game “Snake” on your old Nokia phones (Black & White). Now it is your time to create it with more interesting colors and features. When the game is started a snake is controlled by up, down, left and right keys to eat food which appears on random locations. By eating food snake’s length increases one unit and player’s score increases by 5 points. Food disappears after 15 seconds and appears...

  • CMPS 12B Introduction to Data Structures Programming Assignment 2 In this project, you will write...

    can i get some help with this program CMPS 12B Introduction to Data Structures Programming Assignment 2 In this project, you will write a Java program that uses recursion to find all solutions to the n-Queens problem, for 1 Sns 15. (Students who took CMPS 12A from me worked on an iterative, non-recursive approach to this same problem. You can see it at https://classes.soe.ucsc.edu/cmps012a/Spring l8/pa5.pdf.) Begin by reading the Wikipcdia article on the Eight Queens puzzle at: http://en.wikipedia.org/wiki/Eight queens_puzzle In...

  • Hello I need help with this program. Should programmed in C! Program 2: Sorting with Pointers...

    Hello I need help with this program. Should programmed in C! Program 2: Sorting with Pointers Sometimes we're given an array of data that we need to be able to view in sorted order while leaving the original order unchanged. In such cases we could sort the data set, but then we would lose the information contained in the original order. We need a better solution. One solution might be to create a duplicate of the data set, perhaps make...

  • Deck of Cards Program I need help printing a flush, which is showing the top 5...

    Deck of Cards Program I need help printing a flush, which is showing the top 5 cards of the same suite. Below is the code I already have that answers other objectives, such as dealing the cards, and finding pairs. Towards the end I have attempted printing a flush, but I cannot figure it out. public class Shuffler {    /**    * The number of consecutive shuffle steps to be performed in each call    * to each sorting...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

  • Can you please help me with creating this Java Code using the following pseudocode? Make Change C...

    Can you please help me with creating this Java Code using the following pseudocode? Make Change Calculator (100 points + 5 ex.cr.)                                                                                                                                  2019 In this program (closely related to the change calculator done as the prior assignment) you will make “change for a dollar” using the most efficient set of coins possible. In Part A you will give the fewest quarters, dimes, nickels, and pennies possible (i.e., without regard to any ‘limits’ on coin counts), but in Part B you...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT