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

1 some of the application programs can use the services of

1. Some of the application programs can use the services of two transport-layer protocols (UDP or TCP). When a packet arrives at the destination, how can the computer find which transport layer is involved? 2. A client r ...

Implement a recursive algorithm to compute the n

Implement a recursive algorithm to compute the n! permutations of the first n integers. In your implementation, the internal recursive call should be of the form permutations (n -1) rather than permutations (k + 1) as we ...

Coursemultimedia systems developmentquestionsq1 identify

Course: (Multimedia Systems Development) Questions: Q.1 Identify and explain the three major interrelated tasks for creating 3-D animation. Q.2 Identify and explain the advantages of sampled sound and synthesized sound. ...

What is the time complexity as a function of the number n

What is the time complexity, as a function of the number n of vertices and m of edges, of the following network operations if the network in question is stored in adjacency list format? a) Calculating the mean degree. b) ...

1 if one-time pads are provably secure why are they so

1. If one-time pads are provably secure, why are they so rarely used in practice? 2. Prove that the DES key consisting of all 0-bits and the DES key consisting of all 1-bits are both weak keys. What are the other two wea ...

1 using your security lab as your fictitious company

1. Using your security lab as your fictitious company, develop a disaster plan for the lab. 2. Study vendor tools in disaster recovery. Write about five of them, listing their merits and costs involved. 3. Study and deve ...

Over the course of the past 8 weeks has your view or

Over the course of the past 8 weeks, has your view or conception of ethics changed in any way? If yes, is there a specific moment you can identify and describe that triggered the change (a reading(s), or posting(s), disc ...

Create a c program that computes the areas of rectangles

Create a C++ program that computes the areas of rectangles and tells the user which rectangle has the greatest area, or if the areas are the same. Create a C++ program that calculates the gross cost and net cost for call ...

1 it is said that unix uses access control lists does the

1. It is said that UNIX uses access control lists. Does the UNIX model include capabilities as well as access control lists? 2. Suppose a user wishes to edit the file xyzzy in a capability-based system. How can he be sur ...

Metrics paperresearch the following topicmetricsreview nist

Metrics Paper Research the following topic: Metrics Review NIST SP 800-55 Rev. 1, Performance Measurement Guide for Information Security. Discuss measures you would be interested in finding the results, based on your hom ...

  • 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

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

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen