+1-415-315-9853

info@mywordsolution.com

## Engineering

 Civil Engineering Chemical Engineering Electrical & Electronics Mechanical Engineering Computer Engineering Engineering Mathematics MATLAB Other Engineering Digital Electronics Biochemical & Biotechnology

problem 1: Another pizza problem. Carnivorous Carla only eats pizza if it has at least three of the following ingredients: ham, pepperoni, salami, italian sausage, bacon. You have the function contains() to check whether a certain ingredient is on the pizza. prepare a brief list of instructions (pseudocode) to find out whether Carla will eat the pizza.

problem 2: prepare out a detailed plan for a program to find out the largest value in an array that is smaller than a ceiling C. For illustration, assume that the array has the values {4, 14, 11, 100, 6} and C = 12. The program must report 11 as the answer.

problem 3: prepare out a detailed plan for a program to reverse the order of an array. For illustration, if the array contains the elements {0, 99, 7, 4}, then after reversal it will contain {4, 7, 99, 0}.

problem 4: You previously wrote a program to draw a cow. Now, draw a cow standing amongst the grass, with (say) 500 blades of grass. Each blade of grass must be a separate random green line. Do all your drawing in the draw() loop. (Do not turn off the loop, either.)

problem 5: prepare a program to check whether a car will crash. There is an obstacle at a certain distance (say 100 m) and the car is travelling at a certain speed (try it with some various speeds). The user hits the brakes after 0.5 seconds, applying a deceleration of 5 m/s^2. Draw the progress of the car and report whether it stopped safely or hit the obstacle.

problem 6: prepare a program to display some data in bar graph form. Have at least 20 elements, that can be positive or negative; draw each element with a vertical bar, going up if the data is positive or down if the data is negative. Once you have displayed the bar graph, allow a user to choose a given element by cycling via the data with keys (e.g., 'a' to move left, 's' to move right) and print the exact value of the selected bar. Show the present selection by highlighting its bar somehow (ex: drawing a thick outline around it).

problem 7: prepare a program to display ten buttons with five possible colors: red, orange, yellow, green, blue. When the user clicks on a button, its color should advance to the next color, or go back to red if it was blue. Your buttons can be rectangles or ellipses (circles), depending on what you find simpler.

problem 8: prepare a program to display 20 ellipses which move away from the mouse pointer. Their initial locations must be random.

problem 9: Modify your solution to #8 so that if an ellipse is touched by the mouse, it turns permanently green. Bonus: a green ellipse stops moving, however recovers after 5 seconds, returning to its old color and regaining its ability to move.

problem 10: Implement a "lunar lander" simulation. The lander will fall according to gravity, but by firing the rockets (press spacebar) you can slow its fall (accelerate upwards). If the lander touches the ground with less than a certain speed, it landed safely, otherwise it crashed.

Allow rockets to fire side to side also, and have a "safe landing" zone, where landing outside the safe zone counts as a crash.

Computer Engineering, Engineering

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

Have any Question?

## Related Questions in Computer Engineering

### 1 your job is to cook 3 cakes as efficiently as possible

1. Your job is to cook 3 cakes as efficiently as possible. Assuming that you only have one oven large enough to hold one cake, one large bowl, one cake pan, and one mixer, come up with a schedule to make three cakes as q ...

### 1 show a pipeline execution diagram for the third iteration

1. Show a pipeline execution diagram for the third iteration of this loop, from the cycle in which we fetch the first instruction of that iteration up to (but not including) the cycle in which we can fetch the first inst ...

### 1 run the binary search method on a set of unordered data

1. Run the binary search method on a set of unordered data. What happens? 2. Using the CArray class with the SeqSearch method and the BinSearch method, create an array of 1,000 random integers. Add a new private Integer ...

### A program is to perform two products one is a vector

A program is to perform two products: one is a vector product of two 100-element vectors and the other is the product produced by multiplying the corresponding elements of a 1000 by 1000 element matrix by a scalar consta ...

### In computer science when we encounter an algorithm we often

In computer science, when we encounter an algorithm, we often need to ask about the complexity of that algorithm (how many computations we need to do). To find the complexity of the distance vector's algorithm, find the ...

### 1 draw the pipeline execution diagram for this code

1. Draw the pipeline execution diagram for this code, assuming there are no delay slots and that branches execute in the EX stage. 2. Repeat 4.14.1, but assume that delay slots are used. In the given code, the instructio ...

### Suppose that deborah peter and kathy are the only members

Suppose that Deborah, Peter, and Kathy are the only members of the group proj and that Deborah, Peter, and Elizabeth are the only members of the group exeter. Show how Peter can restrict access to the file design to hims ...

### Consider a complex signal composed of a dc term and two

Consider a complex signal composed of a dc term and two complex exponentials Plot each N-point DFT as a function of frequency fk = k/N. (a) Compute and plot the DFT of x[n] using 20 samples (0 ≤ n ≤ 19). From the plot, c ...

### 1 implement the sub method for the polynomial class

1. Implement the sub method for the Polynomial class implemented in the chapter. 2. The implementation of the Polynomial mul method is O(n 2 ) in the worst case. Design and implement a more efficient solution for this op ...

### In a survey of couples in the us city of san francisco

In a survey of couples in the US city of San Francisco, Catania et al. [65] recorded, among other things, the ethnicity of their interviewees and calculated the fraction of couples whose members were from each possible p ...

• 13,132 Experts

## 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.

### 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