Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Use Notepad to create new text file named EX02_1.java. Enter the following two lines (be sure to replace YourFullName with your full name): //

image text in transcribed

1. Use Notepad to create new text file named "EX02_1.java". Enter the following two lines (be sure to replace YourFullName with your full name): // Filename: EX02_1.java // Programmer: YourFuliname 2. Create a program that declares a constant named "PI" of an appropriate data type, and then assigns 3.14159 as its value. Use an input dialog box to display a message "Enter the radius". Store the user input in a variable named "r"". Perform a calculation based on the following equation, and then display the output in another dialog box. Let the output message be "The area is a." (where a is the result of calculation). area=r2 3. Make sure the output looks similar to the following. [Note: Be sure to use input an output dialog boxes; othenvise, you might receive zero.] and 4. Download the provided template file and rename it to "EX02.doc" (or docx or .pdf). Capture screen shot(s) similar to the above figure(s) and paste it to the Word document

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions