Answered step by step
Verified Expert Solution
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
LastNameFirstNameCitHwjava
Write a pseudocode for the program
Deliverable: Submit your Java file. Use the file format: LastNameFirstNameCitHwjava for
your file name. NOTE: Java class names must begin with a capital letter ieFooBarCITHW#java
Submit your file to the assignment dropbox in Canvas
Assignment:
Write Java program calculates the total area of a composite D 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 D figure.
Final Output:
Displays the total area of the shaded part of the composite D figure.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started