Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

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

The following training set obeys the rule that the positive

The following training set obeys the rule that the positive examples all have vectors whose components sum to 10 or more, while the sum is less than 10 for the negative examples. (a) Which of these six vectors are the su ...

A find a simple nondeterministic finite-state machine

a) Find a simple nondeterministic finite-state machine accepting the language (01 ∪ 001 ∪ 010)∗ over Σ = {0, 1}. b) Convert the nondeterministic finite state machine of part (a) to a deterministic finite-state machine by ...

Clipping algorithms are an important component of the

Clipping algorithms are an important component of the creating a scene view. Explain why clipping is necessary. Choose an example of a boundary and a line and show how the endpoints of the clipped line can be calculated.

Bioinformatics algorithmsproblem 41write an algorithm that

Bioinformatics Algorithms Problem 4.1 Write an algorithm that, given a set X, calculates the multiset ΔX. Problem 4.2 Consider partial digest L = {1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 9, 9, 10, 11, 12, 15}. Solve ...

Consider the specific application environment in your

Consider the specific application environment in your organization, how would different QA alternatives compare? In addition, is cost a critical factor in your market segment? How would it affect the choice of different ...

How can health and safety practices impact on an

How can health and safety practices impact on an organisations public image, its stakeholder and shareholder relationships and ultimately, the bottom line - profitability? What are the likely repercussions of poor health ...

A what is the premise of fagins work on dknfb summarize the

a. What is the premise of Fagin's work on DK/NF? b. Summarize the three categories of normalization theory. c. In general, how can you transform a relation not in BCNF into ones that are in BCNF? d. What is a referential ...

Describe a protocol combing the sliding window algorithm

Describe a protocol combing the sliding window algorithm with selective ACKs. Your protocol should retransmit promptly, but not if a frame simply arrives one or two positions out of order. Your protocol should also make ...

In unix-like operating systems there is both a api library

In Unix-like operating systems, there is both a API library function named read(), and asystem call referred to as read in the Unix documentation. However, Unix system calls do notactually have names like a library funct ...

What are the short term and long term consequences of

What are the short term and long term consequences of designing a system with contract-to-logic coupling? What are the effects on the service itself and what are the effects on the overall service inventory when this occ ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate