Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm getting this error message, please help CIS 232 Introduction to Programming Week 3, Homework Assignment 2 Due Date: February 21, 2023 Instructor: Dr. Lomako

I'm getting this error message, please help image text in transcribed
image text in transcribed
image text in transcribed
CIS 232 Introduction to Programming Week 3, Homework Assignment 2 Due Date: February 21, 2023 Instructor: Dr. Lomako Problem Statement: Write a Java program that prints; Write a Java program (use ComputeAverage.java as an example) that should implement an interactive dialog that provides the user with information about the procedures and asks the user for information. Once all the data have been entered, the procedure will compute results. Write out the title, the input data, and the calculated results: 1. Print a program title 2. Prompt the user to enter a radius of a circle (radius can be any value) 3. Compute the area and the circumference of the circle 4. Display results The interactive input/output should be the following: Student name: CIS 232 introduction to Programming Homework assignment 2 Due Date: February 21, 2023 Instructor: Dr. Lomako Enter a number for radius: 7 (this is an example; a radius can be any value) The area for the circle is 153.93791 The circumference for the circle is 43.98226 Your assignment report should include all steps from Report Requirements. Create a new folder HW2_YourLastName which includes the following files: assignment report file: Report_ Area_Circumference.doc program's source file: Area_Circumference.java program's bytecode file: Area_Circumference.class Compress the HW2_YourLastName folder to get the "HW2_YourLastName.zip" file and submit it to Blackboard. aport javo.util.Scanner; ublic class Area_Circumference \{ public static void main(String] args) \{ II Print program title SYstem.out:println("Circle Calculator"); II Prompt the user to enter a radius Scanner input = new Scanner(System.in); System.out.print("Enter a number for radlus: "); double radius = input.nextiouble0; I/ Compute the area and circumference double are = Math.PI radius * radlus; double circumference =2 Moth.P1 rodius; II Disploy the results System.out.printt("The area for the circle is \%.5.1n", area); System.out.print(" "The circumference for the circle is \%.5.fn", circumference); 3 3 Main.javat5s errort elass Area_cireumterence is public, should be declared in a 4110 named Area_circumference.java publie elass axea_ctreumference ? 1 exsor

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions