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":"2001","description":"Self test","input":"4 + 5\nn","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n9.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): \n"}
{"id":"2002","description":"Self test 2","input":"1 * 2\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n2.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): \n"}
{"id":"2003","description":"Self test 3","input":"14 - 1\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":"2004","description":"Self test 4","input":"6 / 2\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n3.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): \n"}
{"id":"2005","description":"Self test 5","input":"1 + 12\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":"2006","description":"Self test 6","input":"6 + 20\nn\n","answer":"Enter the arithmetic expression to be evaluated (e.g. 5 + 6):\n26.000000\nDid you want to enter another expression? (Enter 'y' or 'n'): \n"}
Add testcases for lesson 04 here. This is the test version.