i need help with maple. its for college. i have no idea what i am doing.(adsbygoogle = window.adsbygoogle || []).push({});

can someone help me get that. i tried to get the ans but i just dont get it.

Thanks if you can help me out.

here is the problem. lolz its not that big. i have the ans for what i tried thats why its big

Problem 2: Maple Makes Punishment Fun!

This problem continues the theme from the previous tutorial. By this time, your teacher is still very annoyed with you, but is beginning to admire your vast knowledge of computer science. Your teacher thinks for a while and then comes up with the ultimate punishment: "I want you to to do it again, but type it out a different way for each day of the term -- like this!"

I will not use Facebook in class on Day 1 of Week 1.

I will not use Facebook in class on Day 2 of Week 1.

I will not use Facebook in class on Day 3 of Week 1.

I will not use Facebook in class on Day 4 of Week 1.

I will not use Facebook in class on Day 5 of Week 1.

.

.

.

I will not use Facebook in class on Day 1 of Week 10.

I will not use Facebook in class on Day 2 of Week 10.

I will not use Facebook in class on Day 3 of Week 10.

I will not use Facebook in class on Day 4 of Week 10.

I will not use Facebook in class on Day 5 of Week 10.

You realize that this too can be done easily in Maple. All you have to do is change the single loop to a nested loop -- that is, a loop within a loop.

Write a doubly nested loop to generate the output assigned by your teacher as punishment. Pick two different loop variables, like i and j. Use the outer loop variable to number the weeks and the inner loop variable to number the days.

>

>

> for i from 1 to 50 do

> printf("%d. I will not use Facebook in class.\n", i);

> end do;

1. I will not use Facebook in class.

2. I will not use Facebook in class.

3. I will not use Facebook in class.

4. I will not use Facebook in class.

5. I will not use Facebook in class.

6. I will not use Facebook in class.

7. I will not use Facebook in class.

8. I will not use Facebook in class.

9. I will not use Facebook in class.

10. I will not use Facebook in class.

11. I will not use Facebook in class.

12. I will not use Facebook in class.

13. I will not use Facebook in class.

14. I will not use Facebook in class.

15. I will not use Facebook in class.

16. I will not use Facebook in class.

17. I will not use Facebook in class.

18. I will not use Facebook in class.

19. I will not use Facebook in class.

20. I will not use Facebook in class.

21. I will not use Facebook in class.

22. I will not use Facebook in class.

23. I will not use Facebook in class.

24. I will not use Facebook in class.

25. I will not use Facebook in class.

26. I will not use Facebook in class.

27. I will not use Facebook in class.

28. I will not use Facebook in class.

29. I will not use Facebook in class.

30. I will not use Facebook in class.

31. I will not use Facebook in class.

32. I will not use Facebook in class.

33. I will not use Facebook in class.

34. I will not use Facebook in class.

35. I will not use Facebook in class.

36. I will not use Facebook in class.

37. I will not use Facebook in class.

38. I will not use Facebook in class.

39. I will not use Facebook in class.

40. I will not use Facebook in class.

41. I will not use Facebook in class.

42. I will not use Facebook in class.

43. I will not use Facebook in class.

44. I will not use Facebook in class.

45. I will not use Facebook in class.

46. I will not use Facebook in class.

47. I will not use Facebook in class.

48. I will not use Facebook in class.

49. I will not use Facebook in class.

50. I will not use Facebook in class.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Help just a lil

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**