# LAB 2 SUBJECT: Algorithms, Compiling, Debugging Goal: Enter and compile a program. Write an algorithm (psuedo...

###### Question:

LAB 2 SUBJECT: Algorithms, Compiling, Debugging Goal: Enter and compile a program. Write an algorithm (psuedo code) to calculate the shaded area of the object below Algorithm should be general: It should work for all values of A,B,C,D and different number of boxes (drawing below shows 3 x 3 shaded boxes and 1 x 1 white boxes). Do not assume A=B or C-D (as shown in the first diagram). Do not assume that the boxes are 3x3 and 1x 1. Dimensions A & B refer to the small box indicated by the dotted line. The second image shows a second possible object. Your algorithm should work for both images. USE GOOD VARIABLE NAMES (NOT ABCD). 1)

#### Similar Solved Questions

##### How do you find the roots, real and imaginary, of y= (x+2)^2-x-5  using the quadratic formula?
How do you find the roots, real and imaginary, of y= (x+2)^2-x-5  using the quadratic formula?...
##### A student adds 5.00 g of dry ice (solid CO_2) to an empty balloon. What will be the volume of the balloon at STP after all the dry ice sublimes (converts to gaseous CO_2)?
A student adds 5.00 g of dry ice (solid CO_2) to an empty balloon. What will be the volume of the balloon at STP after all the dry ice sublimes (converts to gaseous CO_2)?...
##### For each of the following words, write the affix and how the affix changes the lexical...
For each of the following words, write the affix and how the affix changes the lexical category of the word. Indicate the type of the affix (derivational or inflectional affix). Some words may have more than one affix. In this case indicate the type of each affix and how each affix changes the lexic...
##### An example of a capacity option in aggregate operations planning for services is inventory. True or...
An example of a capacity option in aggregate operations planning for services is inventory. True or False...
##### Laurel contributed equipment worth $150,000, purchased 8 months ago for$164,500 cash and used in...
Laurel contributed equipment worth $150,000, purchased 8 months ago for$164,500 cash and used in her sole proprietorship, to Sand Creek LLC in exchange for a 20 percent profits and capital interest in the LLC. Laurel agreed to guarantee all \$12,600 of Sand Creek’s accounts payable, but she di...
##### Calculate the enthalpy change for the neutralization of HCl by NaOH?
In a coffee cup calorimeter, 50.0 mL of 1.0 M NaOH and 50.0 mL of 1.0 M HCl are mixed. Both solutions are originally at 23.5 degrees C and after the reaction, the final temperature is 29.9 degrees Celsius. Calculate the enthalpy change for the neutralization of HCl by NaOH I don't understand how...