Categories: Homework on time

CSCI1103 Columbus State Community College Java Programming Project Lab 5 – Java Sequences Assignment—The document is attached with all information Creat

CSCI1103 Columbus State Community College Java Programming Project Lab 5 – Java Sequences
Assignment—The document is attached with all information

Create a Java program that prompts a user to input the radius of a circle and computes the circle’s area and perimeter.

Don't use plagiarized sources. Get Your Custom Essay on
CSCI1103 Columbus State Community College Java Programming Project Lab 5 – Java Sequences Assignment—The document is attached with all information Creat
Just from $13/Page
Order Essay

Start your program as follows:

package edu.cscc;
import java.util.Scanner;

// TODO add comments with your name and the purpose of the program
public class Main {

private static Scanner input = new Scanner(System.in);

public static void main(String[] args) {

double radius, area, perimeter;
// TODO your code goes here

}
}

Example Output

Circle program

Enter the radius of your circle: 3

The area of a circle with a radius of 3.0 is 28.274333882308138

The perimeter of a circle with a radius of 3.0 is 18.84955592153876

Process finished with exit code 0

superadmin

Share
Published by
superadmin

Recent Posts

Consider the following information, and answer the question below. China and England are internation

Consider the following information, and answer the question below. China and England are international trade…

4 years ago

The CPA is involved in many aspects of accounting and business. Let’s discuss some other tasks, othe

The CPA is involved in many aspects of accounting and business. Let's discuss some other…

4 years ago

For your initial post, share your earliest memory of a laser. Compare and contrast your first percep

For your initial post, share your earliest memory of a laser. Compare and contrast your…

4 years ago

2. The Ajax Co. just decided to save $1,500 a month for the next five years as a safety net for rece

2. The Ajax Co. just decided to save $1,500 a month for the next five…

4 years ago

How to make an insertion sort to sort an array of c strings using the following algorithm: * beg, *

How to make an insertion sort to sort an array of c strings using the…

4 years ago

Assume the following Keynesian income-expenditure two-sector model:

Assume the following Keynesian income-expenditure two-sector model:                                                AD = Cp + Ip                                                Cp = Co…

4 years ago