This question has been answered
Question

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

main()

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

coding()

endFor

return

function coding()

output "I love coding!"

return

endClass

Answered by Expert Tutors
Step-by-step explanation
The student who asked this found it Helpful
Overall rating 100%
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,...
Get unstuck

378,310 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses