Open why-in-Shanghaitech opened 5 years ago
{"id":"1001","description":"Calculator test 11.in","input":"6 + 7\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n13.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): \n"}
{"id":"1002","description":"Calculator test 12.in","input":"2 * -8\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n-16.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): \n"}
{"id":"1003","description":"Calculator test 13.in","input":"9-11\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n-2.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): \n"}
{"id":"1004","description":"Calculator test 14.in","input":"-3 / 1756.7\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n-0.001708\nDid you want to enter another expression? (Enter 'y' or 'n'): \n"}
{"id":"1005","description":"Calculator test 15.in","input":"89.42 * 4.543\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n406.235077\nDid you want to enter another expression? (Enter 'y' or 'n'):\n"}
{"id":"1006","description":"Calculator test 16.in","input":"-6 + -6\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n-12.000000\nDid you want to enter another expression? (Enter 'y' or 'n'):\n"}
{"id":"1007","description":"Calculator test 17.in","input":"-5.234 - -9.876\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n4.642000\nDid you want to enter another expression? (Enter 'y' or 'n'):\n"}
{"id":"1008","description":"Calculator test 18.in","input":"6 + 7\ny\n2 -8\ny\n9-11\ny\n-3 / 1756.7\ny\n89.42 4.543\ny\n-6 + -6\ny\n-5.234 - -9.876\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n13.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n-16.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n-2.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n-0.001708\nDid you want to enter another expression? (Enter 'y' or 'n'): Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n406.235077\nDid you want to enter another expression? (Enter 'y' or 'n'): Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n-12.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n4.642000\nDid you want to enter another expression? (Enter 'y' or 'n'):\n"}
Testcases for 2019 Summer Homework Lesson04 (Exercise 2) here. This issue is open for public.