Skip to content

Commit

Permalink
add more details
Browse files Browse the repository at this point in the history
  • Loading branch information
jm1021 committed May 15, 2024
1 parent f317899 commit b850454
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions _notebooks/2024-05-15-rpn_calculator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@
"metadata": {},
"source": [
"## Hack\n",
"Review this code for key data structures. We will be required to enact a Calculator in the classroom. \n",
"Review this code for key data structures. You will be required to enact a Calculator in the classroom.\n",
"\n",
"Here are the guidelines...\n",
"\n",
"1. Appoint a Caller(s). A caller is a person who prompts the figures (tokens) through the steps of the calculations. There could be a person that is the overall Caller and others that coordinate entrance and exits into Queues or Stacks.\n",
"2. Create two to three Calculation expressions. Assign people to be a Token, aka TermOrOperator. They will need to move through steps of calculation and into Queues or Stacks. T\n",
"3. On Calculation you will need to simulate the compression of two to three TermOrOperator becoming a single TermOrOperator. This process will continue until you obtain a result.\n",
"4. Do not rush through this, you will be judged for clarity and accuracy on representing alogorithm. It would be best if you simulated all the steps, like the main System.out.println performs it.\n",
"5. To be a TermOrOperator, there are phone apps that make big numbers or symbols. You could change your representation on phone after a calculation.\n",
"6. Forming teams in class of 10 would be best. Work it out. You have a class and a half."
"1. Enactment starts with Original Expression, turns into Tokenized Expression, then to RPN, and finishes with Final Result.\n",
"2. Appoint a Caller(s). A caller is a person who prompts the figures (tokens) through the steps of the calculations. There could be a person that is the overall Caller and others that coordinate entrance and exits into Queues or Stacks.\n",
"3. Create two to three Calculation expressions, one simple. Assign people to be a Token, aka TermOrOperator. They will need to move through steps of calculation and into Queues or Stacks.\n",
"4. On Calculation, you will need to simulate the compression of two to three TermOrOperator becoming a single TermOrOperator. This process will continue until you obtain a result.\n",
"5. Do not rush through this, you will be judged for clarity and accuracy on representing alogorithm. It would be best if you simulated all the steps, as the main System.out.println shows it.\n",
"6. To be a TermOrOperator, there are phone apps that make big numbers or symbols. You could change your representation on phone after a calculation, making your phone calculate to intermediate step.\n",
"7. Forming teams in class of 9-10 would be best, three teams per class. Work it out. You have a class and a half, finals will be in Office Hours."
]
},
{
Expand Down

0 comments on commit b850454

Please sign in to comment.