Skip to content

⭐ Rated 4.9/5 by 8,400+ students  |  🎓 Expert writers in 80+ subjects  |  ✅ 100% original, no AI  |  🔒 Confidential & secure

Home Blog

Write a Java program

5 min read

Assessment Brief

Need a custom essay written to your exact brief?

Our expert writers craft original essays tailored to your topic, word count, citation style, and deadline — from argumentative and descriptive to analytical and reflective. Every essay is plagiarism-free and written by a subject specialist.

✓ Plagiarism-free · ✓ 100% human · ✓ Free revisions · ✓ Confidential

Order My Custom Essay

🔒 No payment to start · From 3 hrs

I have a Java program that just needs to be tweaked to make simpler, basically just to redo the code without the loop. here’s the code import java.util.*;public class PossibleCircle {  public static void main(String[] args)    {    Scanner input = new Scanner(System.in);       int runningTotal = 0;    int currentInput;     int[] radius_inch = new int[5];int total=0;double area;double circumference;double radius_cm;double average;    final double IN_TO_CM = 2.54;System.out.println(“Enter radius for each circle in inches”);for(int i=0;i<5;i++){System.out.print("Enter radius of circle "+ (i+1) + ":" );radius_inch[i] = input.nextInt();total = total + radius_inch[i];}        System.out.print("Radius (in.)  ");        System.out.print("Radius (cm.)  ");        System.out.print("Area (sq. cm.)  ");        System.out.println("Cirumference (sq. cm.)");System.out.println("__________________________________________________________________________________________________");for(int i=0;i<5;i++)           {radius_cm = IN_TO_CM * radius_inch[i];area =  Math.PI * radius_cm * radius_cm;circumference = 2 * Math.PI * radius_cm;System.out.printf("%10dtt%10.1ftt%10.1ftt%10.1fn",radius_inch[i],radius_cm,(double)Math.round(area*10)/10, (double)Math.round(circumference*10)/10);}average = total/5;double d = (double)Math.round(average*10)/10;    System.out.println("The average of all the radii is:" + d +" inches.");  }}

Need a custom essay written to your exact brief?

Our expert writers craft original essays tailored to your topic, word count, citation style, and deadline — from argumentative and descriptive to analytical and reflective. Every essay is plagiarism-free and written by a subject specialist.

✓ Plagiarism-free · ✓ 100% human · ✓ Free revisions · ✓ Confidential

Order My Custom Essay

🔒 No payment to start · From 3 hrs

Need help with your assignment?

Expert writers available now. Original work, no AI, free revisions.

🔒 No payment to start · Free revisions · Money-back guarantee

4.9 ★

Student rating

8,400+

Papers delivered

97%

On-time delivery

Why students choose Scholaris

  • 100% human writing, no AI
  • Plagiarism report with every order
  • Deadlines from 3 hours
  • Money-back guarantee
  • Free unlimited revisions

Related Study Guides