Question: Write the pseudocode and java program for the geometric shape below, use comments for your pseudocode. You need to use the data provided from the

Write the pseudocode and java program for the geometric shape below, use comments for your
pseudocode. You need to use the data provided from the shape below as user input. Save the file with
the following format.
LastNameFirstNameCIT130Hw2.java
The program will prompt the user to enter the radius of the circles (eyes and mouth), base and height for
the triangle, and the radius for the circle(nose), also the width and height of the rectangle.
The program will need to calculate the total the shaded area. Also, your first and last name need to
show up on the sample run as I have mine below. Please use the following
Use pi=3.1416
Hints: Area of triangle =(1.0/2)(height*base)
Area of Circle = radius X radius X 3.1416
Area of Rectangle= Width*Height
Use the following data to test your program.
circles (2 eyes and mouth) radius =4 Inch (The right eye shows only half, the left eye shows the full eye)
Triangle height =4 Inch
Triangle base same as Rectangle width=3 Inch
Rectangle height=1.5 Inch
Circle(nose) radius=1 Inch
Note: for the half circles the area, you will need to divide the area by 2
Dont worry about the unit Inch and please do not combine.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!