国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫CMPT 125、c++設計編程代做

時間:2023-11-14  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


Assignment 3 CMPT 125 Intro. To Computing Science & Programming II Fall 2023

Assignment 3 (10% of Course Total)

Due date: 11:59pm, Nov 10, 2023

At least part of the assignment will be graded automatically. Make sure that your code compiles without 

warnings/errors and produces the required output. Also use the file names and structures indicated as 

requested. Deviation from that might result in 0 mark.

Your code MUST compile and run reasonably efficiently in the CSIL machines with the Makefile provided. 

It is possible that even with warnings your code would compile. But this still indicates there is something 

wrong with you code and you have to fix them, or marks will be deducted.

Your code MUST be readable and have reasonable documentation (comments) explaining what it does. 

Use your own judgement, for example, no need to explain i += 2 is increasing i by 2, but explain how 

variables are used to achieve something, what a certain loop is doing, and the purpose of each #include.

Description

There is only 1 question in this assignment. However, there are several files you need to submit. Write 

your answer in the corresponding file as instructed along with your student information. You can include 

any libraries that are covered in class (i.e., stdio, stdlib, string, math, stdbool). You can also write your own 

helper functions. Only one of these files should contain the main function.

Question 1 [16 marks]

In this question you are going to extend the program you made in Assignment 2 by providing more 

functionalities. You are again going to write your own main function so the program runs.

Create a program that reads all the talk information from a file and provide an interface for the user to 

query talk entries. Your program must support the following functionalities as options:

 Option 1: to load a talksfile  C ask the user to input the name of the file containing talk information

and load the entries from that file (report # of entries). Note that the file can be non-existent (if 

so the program should print the error and keep running), but if it exists you can assume the format 

inside that file is consistent (duration, talk title, overview, ---), with each line having at most 300 

characters. It is possible for the user to load a different file by choosing this option again, which 

will replace the previously loaded entries. You can assume the filename as at most 50 characters.

 Option 2: to list talks sorted by duration  C list the talk entries from shortest to longest. If with the 

same duration there are more than one talk entry, any order within that duration is acceptable.

 Option 3:to list talks sorted by title  C list the talk entries sorted by title (as determined by strcmp). 

If with the same title there are more than one talk entry, any order within that title is acceptable.

 Option 4: to lookup a talk  C ask the user for a talk title for at most 50 characters (space included),

then report all entries containing the input as a substring. There can be more than one entry from 

the file. The lookup is case-sensitive (i.e.,   computer   and   Computer   are not the same).

o If one or more entries are found, print all the information. Any order is acceptable.

o If no entry is found, print   No such talk on record.  

You can assume the user will always enter at most 50 characters.

Option 5: to terminate the program  C thank the user and end the program.

Assignment 3 CMPT 125 Intro. To Computing Science & Programming II Fall 2023

Page 2 of 5 ? , 2023

Your program must meet these requirements:

 Include the provided header file (.h file) and use the functions defined in the corresponding 

implementation file (.c file) in your driver file (where main is), do not redefine those functions.

 Use a dynamic array of Talk struct pointers to store the talk information. This is the recommended 

approach (instead of a static array with a fixed size) as we might change the number of entries in 

the provided file, and dynamic arrays can accommodate that variation.

 There must be no memory leaks (e.g., your program requests some memory but does not release 

them all before it terminates). In CSIL you can use the Valgrind tool as described to check for that.

 Start with a fancy banner. There is no specific requirement besides it must include your name, 9-

digit SFU ID, and your SFU email address. Let your creativity shine, just nothing offensive.

 If a functionality (e.g., list, lookup) is requested by the user but no file has been loaded, the 

program should print an error message telling the user that no talks file have been loaded and 

prompt the user to do so.

 The sorting for Options 2&3 must be done using the built-in qsort. Meaning you have to write 

your own compare functions for qsort to use (see a3_talklib.h and a3_talklib.c).

And here are some hints for you to write your code:

 The interface is essentially a do-while loop where in each iteration it asks for an option and 

determines what to do, with a repeating conditional of the terminating option has not been 

inputted. It is a common approach for menu-based interfaces.

 Since each item in the dynamic array for the talk entries are pointers, be careful with how you 

are casting the pointer variables in the compare functions (they are pointers to the items)  C

suppose the dynamic array has the type Talk**, then the variables should be cast to Talk**.

 The scanf() function works slightly differently between different formats. One difference is how 

it handles leading and trailing newlines (look up   dangling newline character   if you are curious). 

One option to get around this is put a space in front of the format string (e.g.,    %d  ,    %s  ). You 

are encouraged to explore different ways to get around this issue.

*The entries are randomly generated using ChatGPT with a specific format and then lightly modified. 

Hence, the content might not make sense and have very similar wording patterns  C no need to worry.

Include the function definitions corresponding to a3_talklib.h (and your helper functions, if any) in a 

source file named as a3_talklib.c. Remember the .h file declares the functions and the .c file define them.

Include your main function (and your helper functions, if any) in another source file named as 

a3_talkLookupSystem.c. We call this the driver file because this is where the program starts.

To determine where to place a helper function, think about its purpose. If it provides functionality with 

the Talk structs (e.g., create/clear Talks, compare Talks), it is a library function; if it provides functionality 

of the program (e.g., print a fancy banner), it is a program function. Incorrectly placing these functions 

will lead to mark deductions in the Coding Style category.

Assignment 3 CMPT 125 Intro. To Computing Science & Programming II Fall 2023

Page 3 of 5 ? , 2023

Here are some sample input and output (you can assume user input is always valid, but could be incorrect):

Figure 1. Opening a non-existent file (incorrect input) then an existing file.

Figure 2. Listing talks sorted by title.

Assignment 3 CMPT 125 Intro. To Computing Science & Programming II Fall 2023

Page 4 of 5 ? , 2023

Figure 3. Looking up for   Quantum Computing    C yes there are actually duplicates in the file!.

Coding Style [4 marks]

Your program should be properly indented, have clear and meaningful variable names (e.g., no single?letter variable names except loop iterators) and enough white space and comments to make it easy to 

read. Named constants should be used where appropriate. Each line of code should not exceed 80 

characters. White space should be used in a consistent manner.

Keep your code concise and efficient. If your code is unnecessarily long or inefficient (e.g., hard-code for 

all possible cases, extraneous function calls), we might deduct marks. To help you to get into the habit of 

good coding style, we will read your code and marks will be deducted if your code is not styled properly.

Using the Makefile and Other Supplied Files

The Makefile provided in this assignment is used by a command in the CSIL machines called   make   to 

quickly compile your code. It is especially useful if you have multiple source files. To use it, type the 

following command in the prompt (make sure you are in the directory with all the files of Assignment 3):

$ make test1

The example above illustrates how Question 1 is compiled into an executable called   test1   when using 

the Makefile. Replace the   test1   with   test2  ,   test3  ,   etc. for other questions. You can then run the 

executable by typing   ./test1   to test your code for Question 1. If you make changes to your code, use the 

make command again. You can also use   make all   if you want to compile all your code at once.

The header file a3_talklib.h is there to make the compilation work. Take a look at it for information about 

how each function should work. You might have to modify it and you will have to submit it this time.

Submission

Submit only the 3 source files (a3_talklib.h, a3_talklib.c, a3_talkLookupSystem.c) to CourSys. Refer to the 

corresponding Canvas assignment entry for details. 

Assignment late penalty: 10% per calendar day (each 0 to 24 hour period past due), max 2 days late.

Academic Honesty

It is expected that within this course, the highest standards of academic integrity will be maintained, in 

keeping with SFU  s Policy S10.01,   Code of Academic Integrity and Good Conduct.   In this class, 

collaboration is encouraged for in-class exercises and the team components of the assignments, as well 

Assignment 3 CMPT 125 Intro. To Computing Science & Programming II Fall 2023

Page 5 of 5 ? , 2023

as task preparation for group discussions. However, individual work should be completed by the person 

who submits it. Any work that is independent work of the submitter should be clearly cited to make its 

source clear. All referenced work in reports and presentations must be appropriately cited, to include 

websites, as well as figures and graphs in presentations. If there are any questions whatsoever, feel free 

to contact the course instructor about any possible grey areas.

Some examples of unacceptable behavior:

 Handing in assignments/exercises that are not 100% your own work (in design, implementation, 

wording, etc.), without a clear/visible citation of the source.

 Using another student's work as a template or reference for completing your own work.

 Using any unpermitted resources during an exam.

 Looking at, or attempting to look at, another student's answer during an exam.

 Submitting work that has been submitted before, for any course at any institution.

All instances of academic dishonesty will be dealt with severely and according to SFU policy. This means 

that Student Services will be notified, and they will record the dishonesty in the student's file. Students 

are strongly encouraged to review SFU  s Code of Academic Integrity and Good Conduct (S10.01) available 

online at: http://www.sfu.ca/policies/gazette/student/s10-01.html.

Use of ChatGPT or Other AI Tools

As mentioned in the class, we are aware of them. I see them as helpers/tutors from which you can look 

for inspiration. However, these tools are not reliable and they tend to be overly confident about their 

answers, sometimes even incorrect. It is also very easy to grow a reliance to them and put yourself at risk 

of not actually learning anything and even committing academic dishonesty. Other issues include:

 When it comes to uncertainty, you won  t know how to determine what is correct.

 If you need to modify or fine tune your answer, you won  t know what to do.

 You will not be able to learn the materials and thus will not ne able to apply what you learn in 

situations where no external help is available, for example, during exams and interviews.

For introductory level courses and less sophisticated questions, it is likely that you  ll get an almost perfect 

answer from these tools. But keep in mind if you can get the answer, everyone can also get the answer. 

Bottomline is, if you ask these tools to give you an answer and you use the answer as yours, you are 

committing academic dishonesty by claiming work that is not done by you as yours.

Note that different instructors might have different policies regarding the use of these tools. Check with 

them before you proceed with assignments from other courses.

請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

 

掃一掃在手機打開當前頁
  • 上一篇:定制公式定制 通達信漲停王者系列指標公式
  • 下一篇:代寫Implementation of Graph Algorithms
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久草视频国产在线| 精品无人区一区二区三区| 亚洲天堂第一区| 国产午夜福利视频在线观看| 色妞久久福利网| 国产日韩在线一区| 苍井空浴缸大战猛男120分钟| 97激碰免费视频| 欧美精品日韩www.p站| 欧洲亚洲免费视频| 精品久久一二三| 古典武侠综合av第一页| 青青a在线精品免费观看| 欧美一区二区综合| 欧美另类在线播放| 黄色片网址在线观看| 国产精品久久久久久中文字| 国产日韩精品一区二区| 在线免费一区| 日韩激情视频一区二区| 国产福利久久| 日本三级韩国三级久久| 国产激情在线看| 日韩一级片播放| 久久综合给合久久狠狠色| 日韩一级特黄毛片| 久久久欧美精品| 日韩成人在线资源| 久久久免费精品| 日本久久久网站| 久久精品国产成人精品| 青青久久av北条麻妃海外网| 久久久久久久成人| 欧美自拍资源在线| 国产精品美女在线观看| 国产日韩二区| 欧美精品电影在线| 99精彩视频| 日本婷婷久久久久久久久一区二区 | 亚洲永久在线观看| 国产美女久久精品| 亚洲精品中字| 国产二区视频在线| 欧美亚洲日本黄色| 国产精品精品软件视频| 成人中文字幕在线观看| 婷婷精品国产一区二区三区日韩| 久久久久久网址| 国模私拍视频一区| 一本色道久久综合亚洲精品婷婷| 久久人人97超碰精品888 | 国产一区深夜福利| 中文网丁香综合网| 99国内精品久久久久久久软件| 午夜精品久久久久久久白皮肤| 久草热久草热线频97精品| 精品日本一区二区| 亚洲乱码日产精品bd在线观看| 久久久久免费视频| 国产综合av在线| 日韩一区二区三区高清| 久久久国产91| 成人免费在线一区二区三区| 日本精品一区二区三区视频| 国产精品久在线观看| 高清一区二区三区日本久 | 91精品视频免费观看| 日本精品在线视频| 欧美伦理91i| 久久久国产精品一区二区三区| 欧美成人一区二区在线| 亚洲人体一区| 国产精品久久久久久婷婷天堂 | 国产欧美一区二区三区久久 | 久久riav二区三区| 国产综合18久久久久久| 天堂资源在线亚洲资源| 国产精品国产自产拍高清av水多 | 欧美一级视频免费在线观看| 国产精品色视频| 8090成年在线看片午夜| 精品视频一区二区| 日韩成人手机在线| 欧美激情视频网址| 久久精品国产亚洲| 91精品久久久久久久久久另类| 日韩精彩视频| 亚洲一区二区精品在线观看| 久久久精品欧美| 久久免费看av| 不卡影院一区二区| 国产欧美一区二区| 韩国一区二区av| 欧美资源一区| 日日噜噜噜噜夜夜爽亚洲精品| 久久久久久国产| 国产精品美女www爽爽爽视频| 久久99欧美| 久久婷婷国产精品| av一区二区三区免费观看| 含羞草久久爱69一区| 日韩国产在线一区| 丁香色欲久久久久久综合网| 欧美精品一本久久男人的天堂| 国产精品丝袜高跟| 久久久久久国产精品免费免费| 久久美女福利视频| 97成人精品视频在线观看| 国产乱码精品一区二区三区日韩精品| 男人的天堂99| 青草青草久热精品视频在线观看| 亚洲一区二区三区乱码aⅴ | 国产伦精品一区二区三区视频黑人 | 精品久久久久久一区| 日韩av电影在线免费播放| 国产专区欧美专区| 久久综合九色九九| 久久青草福利网站| 激情成人开心网| 久久99国产精品久久久久久久久| 久久精品国产美女| 国产激情片在线观看| 91免费版看片| 粉嫩av一区二区三区天美传媒| 欧美高清性xxxxhd| 欧美日韩成人一区二区三区| 欧美一区二区中文字幕| 青青青青草视频| 欧美性一区二区三区| 欧美中文字幕在线观看| 热久久99这里有精品| 日韩美女在线观看一区| 日韩精品第一页| 欧美综合激情| 欧美有码在线观看| 欧美不卡三区| 好吊色欧美一区二区三区| 欧美久久在线| 欧美激情第六页| 欧美婷婷久久| 国内精品久久久久久久 | 九九九热精品免费视频观看网站| 欧美精品在线观看| 中文字幕一区二区三区四区五区人| 久久6免费高清热精品| 欧美激情va永久在线播放| 国产精品露出视频| 久久手机免费视频| 国产精品18毛片一区二区| 精品免费国产| 福利视频一二区| 日本一区视频在线播放| 欧美猛交ⅹxxx乱大交视频| 久久综合久久久久| 国产精品一区二区免费看| 欧美一区二区三区四区在线| 国产精品我不卡| 精品欧美一区二区久久久伦| 男人的天堂99| 国产精品专区第二| 99久热re在线精品996热视频| 91极品视频在线| 日韩一区二区欧美| 久久在线免费观看视频| 中文字幕一区二区中文字幕| 色综合视频二区偷拍在线| 天堂av一区二区| 欧美污视频久久久| 国产剧情日韩欧美| 国产成人精品免费视频| 久青草国产97香蕉在线视频| 国产av第一区| 日本黄网站色大片免费观看| 国产自产在线视频一区| 91精品国产亚洲| 国产精品入口免费| 亚洲伊人久久综合| 欧美亚洲精品日韩| 97干在线视频| 国产精品久久二区| 亚洲激情电影在线| 欧美污视频久久久| 99视频精品免费| 国产精品久久久久久久av电影| 午夜精品一区二区三区在线视频| 欧美精品在欧美一区二区| 成人国产精品一区二区| 国内精品久久久久久久久| 欧美高清视频一区二区三区在线观看| 免费毛片网站在线观看 | 久久久久久久91| 美日韩精品免费观看视频| 在线观看日本一区| 欧美日韩另类综合| 国产一区免费观看| 国产免费一区| 国产精品国产三级国产专区53| 国产精品∨欧美精品v日韩精品| 国产成人久久777777| 一区二区三区观看|