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

I have created 10 com files that use last weeks concept of

I have created 10 .com files that use last week's concept of polymorphism. Each of these files is different in contents than the other but they all have the same basic purpose of printing "Hello World!" For the purposes ...


Audacity/Podcastin Audacity-Podcast Project Record at least a 1-2 minutes of audio. You can record yourself or someone else such as a short interview. Topic:Keep it educational or possibly te ...

Your company will hold a national convention of all of the

Your company will hold a National Convention of all of the executive staff members from all 15 locations of the company in the U.S. next week. The CIO has chosen the topic, "IT Security Awareness" and has chosen you to c ...

M write an ia-32 program to solve problem 227 in chapter

[M] Write an IA-32 program to solve Problem 2.27 in Chapter 2. Problem 2.27 [M] Write a subroutine MEMCPY for copying a sequence of bytes from one area in the main memory to another area. The subroutine should accept thr ...

Consider your home school or current place of employment

Consider your home, school, or current place of employment. What would you do to increase your organization's physical security? Try to think of the most cost-effective measures that would have the biggest impact. You're ...

How would you count all item sets of size 3 by a

How would you count all item sets of size 3 by a generalization of the triangular-matrix method? That is, arrange that in a one-dimensional array there is exactly one element for each set of three items.

Implementing network awareness explain exactly what happens

Implementing network awareness. Explain exactly what happens in the network (what messages are sent and when) during the execution of the distributed lexical scoping example given in section 11.4. Base your explanation o ...

What is the advantages and disadvantages of the world bank

What is the advantages and disadvantages of the world bank and the international monetary fund?

Design a data warehouse for a regional weather bureau the

Design a data warehouse for a regional weather bureau. The weather bureau has about 1000 probes, which are scattered throughout various land and ocean locations in the region to collect basic weather data, including air ...

Android provides the dalvik virtual machine which allows

Android provides the Dalvik Virtual Machine, which allows native Android apps to be developed using a combination of Java and the Android API. Apple's iOS does not provide a Java Virtual Machine; instead, native iOS apps ...

  • 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