Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

lab 2 I want answer for number 1 and uploaded a picture I want in that format for java thanks SUBJECT: Algorithms, Compiling, Debugging Goal:

lab 2
I want answer for number 1 and uploaded a picture I want in that format for java
thanks image text in transcribed
image text in transcribed
image text in transcribed
SUBJECT: Algorithms, Compiling, Debugging Goal: Enter and compile a program. 1) 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 (top drawing below shows 33 shaded boxes and 11 white boxes, the bottom drawing has different). Do not assume A=B or C=D (as shown in the first diagram). Do not assume that the boxes are 33 and 11. 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). Ginal: Enter and compile a program 1) Write an algorithm (pwedo code) to calculate the shaded area of the object below Algorichm should be general) It shauld wotk for all values of A, B,C,D and different number of boxes (6op drawing below showr 33 shaded boxes and 11 white boxes, the bottom deawing has different) Do not assume AB or CD (as shown in the fitst diagram). Do not assume that the boxes are 33 and 11. Dimensions A \& B refer to the small box indicatod by the dottod line. The second image shows a second poswible object. Your algorithm should work for both imagea. USE GOOD VARIABI.E NAMES NNOT ABCD)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

please dont use chat gpt or other AI 1 9 5 .

Answered: 1 week ago