Send
Close Add comments:
(status displays here)
Got it! This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
P1: Project#1: Towers of Hanoi moves
1. P1: Towers of Hanoi moves
38: Project#1: Towers of Hanoi moves , Name: ___________________________
CS 340, Fall 2019, York College of Pennsylvania
41, 20 points
2. Program requirement
You may use any programming language, except JavaScript.
Starting with the code for the Towers of Hanoi do the following.
Hard code the value of 5 as the number of disks (in a way that is easy to change).
Call the routine to get a list of moves (in string form) and output the first 10 moves.
There is no right or wrong way to do this, so long as you get the moves and output.
Hints: The list elements can be the text of the moves made, as in the example program.
Note: Due to the cumbersome (or lack of easy to use) list support, the following languages may entail more work than others: C, Java.
3. Relevant content
4. Document requirement
File:
Word document: A Word document (extension
docx) that describes what you have done. The guiding principle when writing the document is the following. "
Would someone who is somewhat familiar with what you are doing and reading your document know what you are doing at each step of the process?"
Include a short descriptive title at the top of the document.
Include the following sections. Each section should be clearly and consistently marked. All program text should have explanatory text before and after the program text.
A short introduction as to what you will convey.
Sections explaining what you have done in a logical manner, including any program code, commands, Bash scripts, etc. (on separate lines/blocks) in a fixed font such as "Courier New".
A short summary at the end as to what you conveyed.
All program or command or command output text should be in a fixed font such as "
Courier New".
If you use LibraOffice or OpenOffice instead of Microsoft Office you need to export your document file to the type
docx and not the native format. Use the appropriate "
Save As" command.
5. Zip file submission
Zip the above files into a zip file. Attach the zip file (and only one zip file) to your email message.
Submit the following by sending an email to my email account at
robinsnyder@gmail.com from your YCP email address/account.
Attach the above zip file to your message.
The subject line should be the following (and only the following).
57
6. Scoring rubric
CS 340 - P1 : Project#1: Towers of Hanoi moves
Your grade: _ / 20
[LATE] Late or redo penalty: _ / -20
Programs and output: _ / 8
Document includes programs and output: _ / 4
Document explanations as required: _ / 4
Document style - sections, text, programs: _ / 4
[CREDIT] Extra credit: _ / +4
Comments:
7. End of page