99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫CMPT 125、c++設(shè)計(jì)編程代做

時(shí)間:2023-11-14  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)


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.

請(qǐng)加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

 

掃一掃在手機(jī)打開當(dāng)前頁(yè)
  • 上一篇:定制公式定制 通達(dá)信漲停王者系列指標(biāo)公式
  • 下一篇:代寫Implementation of Graph Algorithms
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士2號(hào)線
    合肥機(jī)場(chǎng)巴士2號(hào)線
    合肥機(jī)場(chǎng)巴士1號(hào)線
    合肥機(jī)場(chǎng)巴士1號(hào)線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          欧美视频一区二| 最新亚洲电影| 欧美高清在线一区| 亚洲天堂免费观看| 今天的高清视频免费播放成人| 老司机精品视频网站| 亚洲一区二区在线免费观看视频| 黄色成人精品网站| 国产精品天天摸av网| 久久一区二区三区超碰国产精品| 中文精品99久久国产香蕉| 一色屋精品亚洲香蕉网站| 国产精品永久免费视频| 欧美理论电影网| 欧美成人伊人久久综合网| 性欧美大战久久久久久久久| 制服丝袜激情欧洲亚洲| 亚洲欧洲日本在线| 亚洲风情亚aⅴ在线发布| 国产亚洲精品久久飘花| 国产精品www网站| 欧美日韩一区二区三区四区在线观看| 麻豆av福利av久久av| 亚洲欧美日韩精品久久久久| 一本大道久久a久久精品综合| 亚洲第一综合天堂另类专| 国产一区在线观看视频| 国产亚洲精品综合一区91| 国产伦精品一区二区三区免费 | 欧美日韩一区二区国产| 久久综合伊人77777尤物| 亚洲欧美激情视频在线观看一区二区三区| 欧美视频一区二区| 国产欧美韩国高清| 国产一区二区高清视频| 影音先锋久久精品| 亚洲伦伦在线| 欧美综合二区| 尤妮丝一区二区裸体视频| 国产日韩欧美另类| 久久先锋影音| 噜噜噜91成人网| 女仆av观看一区| 欧美日韩精品一区二区三区四区| 欧美电影免费观看高清完整版| 久久久国产精品亚洲一区| 国产欧美精品一区 | 国产情人节一区| 国产欧美一区二区精品性色| 狠狠狠色丁香婷婷综合久久五月 | 国产嫩草影院久久久久 | 久久天天躁狠狠躁夜夜爽蜜月| 久久精品在线免费观看| 男男成人高潮片免费网站| 欧美黄色免费网站| 国产女人18毛片水18精品| 国内精品视频在线观看| 亚洲日本va午夜在线电影| 亚洲一区二区黄色| 久久久久五月天| 国产精品大全| 亚洲激情小视频| 亚洲男人的天堂在线| 久久亚洲精品一区| 国产精品久久久久久模特| 尤物网精品视频| 亚洲综合欧美日韩| 免费日本视频一区| 国产精品美女一区二区在线观看 | 久久丁香综合五月国产三级网站| 老司机成人在线视频| 国产精品捆绑调教| 国产精品一二| 日韩一级二级三级| 免费视频亚洲| 国产一区99| 性欧美8khd高清极品| 欧美—级在线免费片| 国内精品一区二区三区| 亚洲一区二区三区视频| 欧美99久久| 一区三区视频| 久久国产精品久久久久久| 欧美日韩免费区域视频在线观看| 激情91久久| 久久久久久久999精品视频| 欧美性视频网站| 国产精品99久久久久久久久| 美日韩免费视频| 伊人久久久大香线蕉综合直播| 午夜精品美女自拍福到在线| 欧美日韩一区二区三区高清| 亚洲激情啪啪| 免费一区二区三区| 精品电影在线观看| 久久久久久综合网天天| 国产日韩视频| 久久精品视频免费| 国产在线乱码一区二区三区| 午夜精品久久久久久久男人的天堂 | 亚洲第一在线视频| 麻豆成人在线| 亚洲国产小视频| 欧美国产日韩精品免费观看| 亚洲第一页中文字幕| 免播放器亚洲| 99re6热只有精品免费观看| 欧美精品一区二区三区蜜桃| 夜夜爽夜夜爽精品视频| 欧美视频不卡| 欧美在线免费视屏| 在线不卡a资源高清| 快播亚洲色图| 一区二区三欧美| 国产伦精品一区二区三区视频黑人 | 国产亚洲福利社区一区| 欧美影院在线| 91久久精品国产91久久性色tv | 欧美激情麻豆| 亚洲一区综合| 国语自产精品视频在线看8查询8 | 亚洲精品资源| 国产精品日韩欧美大师| 久久久久国产精品一区| 最新国产拍偷乱拍精品| 国产精品久久久久一区二区三区 | 欧美成人按摩| 午夜精品福利在线观看| 一区久久精品| 国产精品亚洲аv天堂网| 久久影院午夜片一区| 制服丝袜亚洲播放| 在线国产精品播放| 国产精品免费小视频| 欧美成人午夜视频| 欧美一区二区黄色| 亚洲精品1区2区| 欧美日韩在线播放| 欧美一级理论性理论a| 亚洲激情午夜| 国产啪精品视频| 欧美成人精品高清在线播放| 欧美一区三区三区高中清蜜桃| 狠狠色综合网| 国产精品mv在线观看| 久久国产主播精品| 在线看成人片| 国产精品美女xx| 久久免费高清视频| 亚洲一区黄色| 在线亚洲精品| 在线观看亚洲视频| 欧美性淫爽ww久久久久无| 久久久久青草大香线综合精品| 亚洲免费在线看| 亚洲日本欧美天堂| 黄色日韩在线| 国产色婷婷国产综合在线理论片a| 欧美日韩国产成人| 久久久av网站| 香蕉久久一区二区不卡无毒影院| 亚洲风情在线资源站| 亚洲高清影视| 国产在线拍揄自揄视频不卡99 | 国产精品日韩欧美一区二区三区| 欧美www在线| 久久噜噜噜精品国产亚洲综合| 亚洲综合精品| 激情久久影院| 亚洲国产女人aaa毛片在线| 国产精品自拍在线| 国产精品国产三级国产普通话99| 欧美日韩一区二区在线观看视频| 久久综合狠狠综合久久激情| 午夜在线a亚洲v天堂网2018| 亚洲日韩欧美一区二区在线| 亚洲精品自在久久| 亚洲精品字幕| 最新热久久免费视频| 亚洲欧洲日产国产网站| 亚洲高清不卡在线| 国产精品中文在线| 国产久一道中文一区| 国产精品一区二区女厕厕| 国产精品亚洲综合天堂夜夜| 国产欧美日韩精品一区| 欧美日韩一级视频| 国产日韩欧美麻豆| 国产日本亚洲高清| 国内精品久久久久影院优| 亚洲国产天堂久久综合网| 亚洲经典在线看| 亚洲精品久久久久久久久久久久| 国产午夜精品一区二区三区视频| 国产又爽又黄的激情精品视频 | 亚洲福利国产| 99视频在线观看一区三区| 午夜一区不卡| 久久深夜福利免费观看| 你懂的视频一区二区|