Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Only with jGRASP Prepare the following exercises and be ready to upload the one we request during the next delivery session! Know that you are
Only with jGRASP
Prepare the following exercises and be ready to upload the one we request during the next delivery session! Know that you are expected to do all exercises before the assignment becomes available, as you will only have enough time to pick the solution for the exercise asked that week. B01: Weight of water in a fish bowl The user has a rectangle fish bowl with a solid cylinder in the middle, as displayed in the image attached. The height of the cylinder is the same as the height of the fish bowl. r- Radius of cylinder h - Height of fish bowl d- Depth of fish bowl w- Width of fish bowl Write a program that will ask the user for the width, height and depth of the fish bowl, as well as the radius of the solid cylinder. These will be introduced as inches and your program needs to convert them to meters (1 inch 0.0254 meters) Then, you need to compute the volume of the fish bowl that can be filled with water (volume of fish bowi - volume of the solid cylinder) in cubic meters. After you know how much water can be filled with water, your program needs to compute and display how much will that amount of water weigh (assume 1 cubic meter of water 1,000 kg). Display the weight in pounds (1 pound 1/2.2046 kg) B02: Changing the text entered by the user rite a program that asks the user to enter 3 letters (let's assume the user will always enter a lowercase letter other t han 2). Each time the user 1:31 PM Prepare the following exercises and be ready to upload the one we request during the next delivery session! Know that you are expected to do all exercises before the assignment becomes available, as you will only have enough time to pick the solution for the exercise asked that week. B01: Weight of water in a fish bowl The user has a rectangle fish bowl with a solid cylinder in the middle, as displayed in the image attached. The height of the cylinder is the same as the height of the fish bowl. r- Radius of cylinder h - Height of fish bowl d- Depth of fish bowl w- Width of fish bowl Write a program that will ask the user for the width, height and depth of the fish bowl, as well as the radius of the solid cylinder. These will be introduced as inches and your program needs to convert them to meters (1 inch 0.0254 meters) Then, you need to compute the volume of the fish bowl that can be filled with water (volume of fish bowi - volume of the solid cylinder) in cubic meters. After you know how much water can be filled with water, your program needs to compute and display how much will that amount of water weigh (assume 1 cubic meter of water 1,000 kg). Display the weight in pounds (1 pound 1/2.2046 kg) B02: Changing the text entered by the user rite a program that asks the user to enter 3 letters (let's assume the user will always enter a lowercase letter other t han 2). Each time the user 1:31 PM
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