View the step-by-step solution to:


I need help in my intro to Java class

the first and third are the confusing ones while I think I might know

how to do the second.

1) program to calculate the sum of all the multiples of 3 between 1 and 200.

Sample Run:

The sum is: 6633

2) program to print a rectangle compromised of the $ symbol. Read in the length and width as user input and then print the rectangle.

Sample Run:

Enter the length of the rectangle: 5

Enter the width of the rectangle: 3

$ $ $ $ $

$ $ $ $ $

$ $ $ $ $

//I think I need a for loop if I'm correct? I'm not 100% sure.

3) program to read in 10 integers from the user as an array. The use loop to iterative through this array.

Top Answer

View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question