[SOLVED] 程序代写代做代考 1. Your task is to write a program which matches the functionality of SRPN as closely as possible. Note that this includes not adding or enhancing existing features.

30 $

File Name: 程序代写代做代考_1._Your_task_is_to_write_a_program_which_matches_the_functionality_of_SRPN_as_closely_as_possible._Note_that_this_includes_not_adding_or_enhancing_existing_features..zip
File Size: 1789.8 KB

SKU: 4221184632 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


1. Your task is to write a program which matches the functionality of SRPN as closely as possible. Note that this includes not adding or enhancing existing features.

2. The legacy program and the example code you need to edit are available below.

3. The SRPN code is available below in the repl.it window. This allows you to run and interact with the srpn program.

4. You should start by typing in the 4 tests below, observe the output and them implement your code to replicate this functionality.

5. You have 2 weeks in which to complete this coursework. I suggest that:
This week you complete Test 1 and Test 2.Try the inputs in the legacy SRPN calculator and observe the outputs.Start of small by tackling the the first example in Test 1 and write some code that allows you to pass this test.From there you can build on this simple piece of code and add in functionality to pass the second test.

Next week you complete Test 3 and Test 4, as well as exploring if there are other features of the SRPN calculator that are not covered in the tests provided.The challenge this week is to understand some of the interesting features of the SRPN calculator.For example, what does ‘r’ do?What does ‘d’ do?Does the input “1+1” produce the same output as “1 + 1” (note the spaces)?
6. Your program will be tested on the same 4 tests below AND others that are similar. Successfully completing each step will give you up to 15 marks each. The remaining marks 40 marks are for good programming practice include, commenting, program structure etc. for a total of 100.

7. Submit your completed solution at the end of week 6.

The program must be able to input at least two numbers and perform one operation correctly and output.
Input :
10
2
+
=

The program must be able to handle multiple numbers and multiple operations.
Input :
3
3
*
4
4
*
+
=
Input :
1234
2345
3456
d
+
d
+
d
=

The program must be able to correctly handle saturation.
Input :
2147483647
1
+
=
Input :
-2147483647
1

=
20

=
Input :
100000
0

d
*
=

The program includes the less obvious features of SRPN. These include but are not limited to…
Input :
1
+
Input :
10
5
-5
+
/
Input :
11+1+1+d
Input :
# This i s a comment #
1 2 + # And so i s t h i s #
d
Input :
3 3 ^ 3 ^ 3 ^=
Input :
r r r r r r r r r r r r r r r r r r r r r r d r r r d

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 程序代写代做代考 1. Your task is to write a program which matches the functionality of SRPN as closely as possible. Note that this includes not adding or enhancing existing features.
30 $