Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago

Question

1. Why do people tell lies on their CVs?

Answered: 1 week ago

Question

2. What is the difference between an embellishment and a lie?

Answered: 1 week ago