# Assignment 2 - 此次debug題目為**Console App**類型,務必注意創建專案時不要搞錯 - GUI和Console App差異可參考 [助教簡報](https://www.canva.com/design/DAGgzygkp7U/dmLCHH9YAENzaJG1qOp4LQ/edit?utm_content=DAGgzygkp7U&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton) - 題目為CH04的Debug files,內容為if-else statement,請至ecourse2下載 - win11 下載完務必記得解壓縮檔案,可參考 [壓縮解壓縮教學](https://ofeyhong.pixnet.net/blog/post/225583664) ## Create 1. Create a file folder named Assiment_2(or whatever) like last assignment. ![image](https://hackmd.io/_uploads/B1r5Zyeh1e.png) 2. Create a project to run .cs file - Reference: How to run a .cs file? - Remember to create ***Console App*** rather than GUI(windows form app). ![image](https://hackmd.io/_uploads/ByVnaQW2yg.png) ## Debug 1. Make sure you only have one file in your project. ![image](https://hackmd.io/_uploads/HkDOA7ZnJx.png) 2. Make sure your .cs file name and the class name is the same. (You can rename Program.cs) ![image](https://hackmd.io/_uploads/r14u1Eb31x.png) ![image](https://hackmd.io/_uploads/Hk1o1VZhJg.png) ## Submit 1. When you completing debug, go to the project location to copy your .cs file. ![image](https://hackmd.io/_uploads/H1BkeE-nJx.png) 2. Copy ![image](https://hackmd.io/_uploads/H1jixEW3ke.png) 3. Paste. ![image](https://hackmd.io/_uploads/Hkam-4-nJg.png) 4. Same as Assignment_1, compress the file folder then submit to ecourse2.