Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is my current code. Here are my issues I am trying to fix, can you please explain to me where I am going wrong?

Here is my current code.

image text in transcribed

Here are my issues I am trying to fix, can you please explain to me where I am going wrong?

image text in transcribed

Here is my output

image text in transcribed

Here is the expected output, as far as I can tell it matches the above real time output.

image text in transcribed

13 public class CheckstyleLab 14 { 150 /** 16 17 private static final int ARRSIZE = 10; /** * Main method which calculates the sum of the squares of the integers 1 to 10 inclusive. * @param args Command line arguments (Unused) 24 public static void main(String[] args) { int[] squares = new int[ARRSIZE]; for (int i = 0; i CheckstyleLab [Java Application] C:\Prog Square of 1 is 1 Square of 2 is 4 Square of 3 is 9 Square of 4 is 16 Square of 5 is 25 Square of 6 is 36 Square of 7 is 49 Square of 8 is 64 Square of 9 is 81 Square of 10 is 100 The Sum of the Squares is 385! CheckstyleLab.java Expected Output.txt X 15quare of 1 is 1 2 Square of 2 is 4 3 Square of 3 is 9 4 Square of 4 is 16 5 Square of 5 is 25 6 Square of 6 is 36 7 Square of 7 is 49 8 Square of 8 is 64 9 Square of 9 is 81 10 Square of 10 is 100 11 The sum of the squares is 385

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

Learn Mysql The Easy Way A Beginner Friendly Guide

Authors: Kiet Huynh

1st Edition

B0CNY7143T, 979-8869761545

More Books

Students also viewed these Databases questions