Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a java program for the question below, Save the file with the following format LastNameFirstNameCit 1 3 0 Hw 2 . java Write a

Write a java program for the question below, Save the file with the following format
LastNameFirstNameCit130Hw2.java
Write a pseudocode for the program
Deliverable: Submit your Java file. Use the file format: LastNameFirstNameCit130Hw3.java for
your file name. NOTE: Java class names must begin with a capital letter (i.e.,FooBarCIT130HW#.java)
Submit your file to the assignment dropbox in Canvas
Assignment:
Write Java program calculates the total area of a composite 2D figure made up of a triangle, a rectangle,
and a semicircle.
User Input:
Ask the user to input each geometric shape dimension
Calculations:
Calculate the area for each geometric shape and display it
Add
Adds the areas of the triangle and rectangle.
Subtracts the area of the semicircle.
Calculates the total area of the composite 2D figure.
Final Output:
Displays the total area of the shaded part of the composite 2D figure.
image text in transcribed

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions