Ask Question, Ask an Expert


Ask Computer Engineering Expert

problem 1: You have eight bars of gold, one of which is counterfeit and is heavier than the rest. You also have a balance: you load both pans of the balance, and whichever side is heavier sinks. If both pans contain the same weight, the balance stays level. Describe a process for discovering which bar is counterfeit.

problem 2: Using processing, you want to make an ellipse travel around the perimeter of the window, going clockwise starting from the top left corner. That is, it will go across the top until it reaches the edge, then down the right side, then travel left across the bottom, up the left edge to the top, and then begin again. Describe a plan for this program. (Don't actually prepare the program, just give a plan, including listing variables and giving details of the actions you would take during the setup and draw phases.)

problem 3: You want to plot a graph of the function y=x^2 (x squared). Describe a plan for doing it in processing. (Don't prepare a program, just describe how you would go about it, including listing variables and saying what actions you would take during setup and during the draw loop.)

problem 4: prepare a program that draws a square on the screen. The square should appear at a new random location every time you run the program.

problem 5: prepare a "countdown": starting with 9, the numbers 8, 7, 6, and so on should appear, until 0 is reached, at which point the numbers should disappear.

problem 6: Modify the "simplepaint" program from last time so that it can draw in different colors. prepare your initials (at least three characters) using three different colors, one color per letter. Submit the code and your drawing.

problem 7: Draw an ellipse in the middle of the screen. The ellipse should be one color when the mouse is touching it and another color when the mouse pointer is off it. (It will be easier if the ellipse is a circle -- do the full calculation for an arbitary ellipse only if you want the challenge.)

problem 8: Display the x position of the mouse as a percentage of the window width. For ex, if the pointer is three-quarters of the way across the window, you should display "75".

problem 9: An old style of grading has four possible grades: "first class" (80% and above), "second class" (65 to 80), "pass" (50 to 65), and "fail" (below 50). Modify your program from #8 to display the appropriate grade from among these four possibilities instead of displaying the percentage.

problem 10: Draw three bubbles (use ellipses). The bubbles should rise towards the top of the screen as time passes. When a bubble reaches the top, it should vanish and a new bubble should appear at a random location and then start rising.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91237

Have any Question? 

Related Questions in Computer Engineering

1 complete the matrix class by implementing the remaining

1. Complete the Matrix class by implementing the remaining methods: sub , mult , and transpose(). 2. Implement the numLiveNeighbors() method of the LifeGrid class. 3. Complete the implementation of the prog ...

We have talked a lot about designing models but we have

We have talked a lot about designing models, but we have assumed so far that you know what the level of complexity of your model will be. Is there always an appropriate level of complexity of an agent-based model? Discus ...

1 why do many organizations ban port scanning activities on

1. Why do many organizations ban port scanning activities on their internal networks? Why would ISPs ban outbound port scanning by their customers? 2. What is an open port? Why is it important to limit the number of open ...

Assignmentpart ithis assignment requires you to write a

Assignment Part I This assignment requires you to write a paper to discuss your experience of human-computer interface. This paper should cover but not limited to topics such as what features you find are most user frien ...

I the game of life we can define the speed of light c

In the Game of Life, we can define the " speed of light " ( c , just as in physics) as the maximum attainable speed of any moving object, a propagation rate of one step (horizontally, vertically, or diagonally) per tick. ...

Propose an ofb mode scheme which encrypts one byte of

Propose an OFB mode scheme which encrypts one byte of plaintext at a time, e.g., for encrypting key strokes from a remote keyboard. The block cipher used is AES. Perform one block cipher operation for every new plaintext ...

In tcp assume a client has 100 bytes to send the client

In TCP, assume a client has 100 bytes to send. The client creates 10 bytes at a time in each 10 ms and delivers them to the transport layer. The server acknowledges each segment immediately or if a timer times out at 50 ...

Open the sandpile model from the chemistry and physics

Open the Sandpile model from the Chemistry and Physics section of the NetLogo models library. This model, originally developed by Bak, Teng, and Weisenfeld (1987), was the first model in which self-organizing criticality ...

Overviewyou are a mobile application developer working for

Overview: You are a mobile application developer working for Mick Jagger who owns Wild Horses Incorporated (WHI).  Mick's company is just getting started with Android mobile application development. Mick wants to make su ...

What is the size k of the minimum vertex cut set between s

What is the size k of the minimum vertex cut set between s and t in this network? Prove your result by finding one possible cut set of size k and one possible set of k independent paths between sand t. Why do these two a ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro