Question: SECTION 1. Lab Startup. Start the BlueJ IDE program. If there is a project that is open, close the project. Using BlueJ create a project

SECTION 1. Lab Startup.\ Start the BlueJ IDE program. If there is a project that is open, close the project.\ Using BlueJ create a project named "lab3" and save it on your flash drive.\ SECTION 2. Design.\ Program Requirements\ We need a program that accepts input from the keyboard for the radius of a circle and then calculates its area rounded to two decimal points.\ Name this class CalcCircle.\ Variables and Calculations\ radius: double (read as input from the keyboard)\ PI: double constant equal to 3.14\ area: double, calculated as PI * radius * radius\ roundedArea: double, calculated as: ((int)(area * 100 + 0.5))/100.0\ Note: output roundedArea, not area\ Sample Program Execution\ Enter the value for the radius: 2.0\ The area of the circle is: 12.56\ Algorithm\ //Input\ Open keyboard input\ Prompt the user for the radius\ Assign keyboard input to radius\ //Process\ Calculate the area\ Round area to nearest two decimals\ //Output\ Output results to terminal\ Close keyboard inputSECTION 1. Lab Startup.\ Start the BlueJ IDE program. If there is a project that is open, close the project.\ Using BlueJ create a project named "lab3" and save it on your flash drive.\ SECTION 2. Design.\ Program Requirements\ We need a program that accepts input from the keyboard for the radius of a circle and then calculates its area rounded to two decimal points.\ Name this class CalcCircle.\ Variables and Calculations\ radius: double (read as input from the keyboard)\ PI: double constant equal to 3.14\ area: double, calculated as PI * radius * radius\ roundedArea: double, calculated as: ((int)(area * 100 + 0.5))/100.0\ Note: output roundedArea, not area\ Sample Program Execution\ Enter the value for the radius: 2.0\ The area of the circle is: 12.56\ Algorithm\ //Input\ Open keyboard input\ Prompt the user for the radius\ Assign keyboard input to radius\ //Process\ Calculate the area\ Round area to nearest two decimals\ //Output\ Output results to terminal\ Close keyboard input

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!