View the step-by-step solution to:


I am writing pseudocode (not Java) for a programming class and am being asked to do the following:


I am being asked to create a method say(num times, String msg)

This say() method will print the msg parameter the number of times indicated by the times parameter

If I want it to say I love coding 10 times, is this close?

Class sayWithParameters


for rep = 0; rep > 10; rep++




function coding()

output "I love coding!"



Top 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