Question: Instructions This assignment covers week 1 to 5 . It is worth 5% of your mark. This assignment is based on solving some mathematical equations

 Instructions This assignment covers week 1 to 5 . It is

Instructions This assignment covers week 1 to 5 . It is worth 5% of your mark. This assignment is based on solving some mathematical equations to find volumes of circular base cone, circular base cylinder and square base pyramid. You are expected to submit this project and hierarchy chart on Blackboard (submit the zipped Java project and hierarchyChart.doc file). Develop a hierarchy chart, and a Java program to show the modularized logic. You are required to incorporate parameter variables and return values. Design a modular algorithm that determines the volume of following shapes: - Module 1: Volume of pyramid, given its height and base length - Module 2: Volume of cone, given its radius and height - Module 3: Volume of cylinder, given its radius and height An Internet search yields the fact that - the volume of a pyramid with square base is computed as volume =31 * height * base area Because the base is a square, we have base area = base length 2 - the volume of a cone with a circular base is computed as volume =31 * radius 2 * height - the volume of cylinder with a circular base is computed as volume = radius 2 * height Every equation needs a module. Discover more modules as an operation is repeated in at least two equations. It also needs the main module. Main module must call all the volume modules. Solve module 1 using the initial value of height and base length and print the result. For the second and third module, prompt the user for the values of height and radius. Print the result. Follow the naming conventions. The names of variables and modules must indicate their functionality. Pay attention to indentation, upper- case and lower-case letters in names and keywords. Here is the sample output (text in green is input): What is height and radius of cylinder and cube? 40 10 Pyramid volume with height =9 and base length =10 is: 300.0 Cylinder volume with height =40.0 and radius =10.0 is: 12560.00 Cone volume with height =40.0 and radius =10.0 is: 4186.67 Please email me via Blackboard if you need help with this assignment. - Explain the problem you are having. - Include a zipped project

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!