EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
C语言代做
您的位置: 主页 > 编程案例 > C语言代做 >
代做C语言:代写DATA STRUCTURES AND ALGORITHMIC PROBLEM - C语言代做
发布时间:2021-07-25 14:47:09浏览次数:
1.Constructor Subject() to initialized subject_code and subject_name to empty string (use strcpy) and credit_hours, and marks to0.2.Function const char *getGrade() to return the grade (A+, A, B+, …) for a subject based on the marks. Refer to file Figure2.doc for the grade return based on the marksobtained.3.Function double getGradePoint() to return the grade point for a subject based on the marks obtained. Refer to file Figure2.doc for the grade pointreturn.4.Function void print(ostream ) to print Subject struct variable. The argument pass to the function is used to determine which stream to print theoutput.Main() Tasks:You need to write the following functions in main().1.Write a function bool ReadFile(char *filename, List *list) to read from a file that store student information in a linked list. Ensure there is no duplicate record of student stored in the list. The function will return true if successfully read and false otherwise. A sample of the textfile is in“student.txt”.2.Write a function bool DeleteRecord(List *list, char *id) to delete a student from the linked list based on student id. The function will return true if successfully delete and false if student cannot be found in thelist.3.Write a function bool Display(List list, int source) that will display information to the screen. Function return false if list is empty and true otherwise. The source variable will indicate whether to display to screen (source = 1) or file (source = 2). If write to file, use the filename “student_result.txt” to write. A sample of each of the output option is given in text file in folder sample output. If the student’s exam_cnt = 0, then print “THIS STUDENT HAVEN’T TAKEN ANY EXAM YET”. You can design your own output format but the necessary details must be there.4.Write a function bool InsertResult(char *filename, List *list) to insert student exam result to the linked list. Open the file with filename and read every record and find the student to insert the exam based on their id. A sample of the text file is in “exam.txt”. Read every record in the file and put the exam info in an exam struct variable. Then find the correct student based on id to insert the exam struct variable. You need to calculate the current cgpa every time you insert a new exam to astudent.5.Write a function bool printStatistic(List list) that will find and print the statistics for the student list as below. Average subject taken per semester is how many subjects are taken averagely for one student in one semester. Similar for average credit hours earned per semester. The function will return false for empty list and trueotherwise.Sample Output:Total Students: 20 CS Students – 6 IA Students – 5 IB Students – 3 CN Students – 3 CT Students – 3Average CGPA: 3.15670Average Subjects Taken Per Semester: 3.23 Average Credits Earned Per Semester: 26.576.Write a function bool findEligibleFYPStudent(List list1, List *FYPlist) that will identify student that can register for FYP (Final Year Project). A studentiseligible to register for FYP if he/she has earned at least 30 credits hours and the student has taken and passed (must obtain at least grade C) UCCD2502 Introduction to Inventive Problem Solving and UCCD2513 Mini Project. Call Display(FYPlist, 1) in main() after function call to display FYPlist. If FYPlist is empty print message “There is no student that is eligible to take FYP”. Assume that list FYPlist is empty when pass to function and list will not be changed after function call. The function will return false for empty list1 and true otherwise.7.WriteafunctionboolidentifyGoodPoorStudent(Listlist1,List*goodList,List*poorList) that will identify student with good result and poor result in list1. A student is considered to have good result if he/she can get gpa = 3.50000 for at least 3 trimesters in all the exams and CGPA = 3.50000 and no fail subject. A poorstudentisastudentthatgetgpa =2.0000foratleast3trimesterandCGPA = 2.0000. Copy all the good result students to list goodList and all the poor studentstolistpoorList.CallfunctionDisplay(goodList,1)andDisplay(poorList,1)in main() to print goodList and poorList in the screen after calling the function. Assume goodList and poorList are empty when pass to function and list1 content will not be changed after function call. If either the goodList or the poorList is empty after function all, then print message “There is no student in good list” or “There is no student in poor list”. The function will return false for empty list1 and true otherwise. (Note: If a student has taken 3 exams then no need to check if the student belongs to good or poorlist.)8.Write a int menu() function that contain menu with choice from 1 to 8 above to let user choose that task. Function will return the choice chosen. Make sure user can continuously choose for the menu until exit choice is chosen. Sample menu is displayedbelow:1.Readfile.2.Deleterecord.3.Insert past examresult.4.DisplayOutput5.PrintStatistic6.Find Eligible FYPStudent7.Identify Good and Poor ResultStudent8.Exit.Test runAlthough each of the above tasks is to be implemented as a single function, you can create additional sub-function(s) to handle portions of the function if it’s necessary. This is especially true if the original function is too long or contains more than one functionally related group of statements. You must test for all conditions that might possibly arise; print out error messages as needed.A sample of text files student.txt and exam.txt can be downloaded from WBLE. The content of text file will be changed (while still adhering to the same data format) during grading in order to test your programs robustness. The objective is to ensure that you do not hardcode your program to work exclusively for the given samplestudent records. PLEASE CREATE YOUR OWN OR ADD MORE DATA TO THE SAMPLE TEXT FILES GIVEN TO YOU TO MAKE SURE YOU HAVE TESTED YOUR PROGRAM FOR ALL POSSIBLE CASES THAT YOU CAN THINK OF. MAKE SURE THE FORMAT OF YOUR OWN TEXT FILES MUST BE SAME FORMAT AS THE ONE GIVEN HERE TO ENSURE YOUR PROGRAM CAN READ THE SAME FORMAT WHEN WE MARK YOUR PROGRAM.Format of text file EXAM.TXT are as follow:id trimester year numOfSubjects list of subjects (for every subject store unit code, unit name, credit hours and marksobtained)5.ERRORHANDLINGWe will first test your work with error-free inputs from files. It would be ideal if your programs can also do appropriate error handling like·Input file cannot befound·Duplicate records are readinDuplicate records should be ignored and appropriate error statement should be printed. Apart from these, you do not need to worry about other types of errors. For all errant situations, the program should recover and still run as usual.6.REPORT(a)This assignment is due according to the due date posted on WBLE. You must do the submission through WBLE. You should create one folder using the group leader name and then copy all your source code files (*.h, and *.cpp) into this folder. You should also provide a readme file (see description below) and extra data input files that you create to test your program. In the readme file, write down all your group members’ name. Apart from these, you should not have irrelevant source files in the folder. Compress this folder into a zipfile and submit only this zip file to WBLE. ONLY ONE MEMBER NEEDS TO UPLOAD THE ZIP FILE IN WBLE FORSUBMISSION.(b)The readme file should contain the followinginformation:(i)All group member name, id and course.(ii)Known errors and bugs of your code (ifany).(iii)Limitation of the types of inputs that your program can handle (ifany).(c)The grading of your work will be based on the followingcriteria:·Correctness of program (whether the functions work according to specifications);·Structure, organization, presentation ofcodes;·Documentation of codes (how easy to understand your codes); avoid excessive comments, such as commenting every line of yourcode.·Comprehensiveness of the testcases.7.ACADEMIC HONESTY ANDCOLLABORATIONCooperation is recommended in understanding various concepts and system features. But the actual solution of the assignments, the programming and debugging must be your individual work, except for what you specifically credit to other sources. (Your grade will be based on your own contribution.) For example, copying without attribution any part of someone else’s program is plagiarism, even if you modify it and even if the source is a textbook. You can document the credit to other sources at the start of your program code listing. The University takes acts of cheating and plagiarism very seriously: first time violators may fail the coursework component ofUCCD1024. Any wholly (or partly) copied (or being copied) programs will receivezeromark.9.REFERENCES[1]Text and reference books forUCCD1024.[2]http://msdn.microsoft.com/en-us/visualc/aa336395代写CS Finance|建模|代码|系统|报告|考试编程类:C代写,JAVA代写,数据库代写,WEB代写,Python代写,Matlab代写,GO语言,R代写金融类:统计,计量,风险投资,金融工程,R语言,Python语言,Matlab,建立模型,数据分析,数据处理服务类:Lab/Assignment/Project/Course/Qzui/Midterm/Final/Exam/Test帮助代写代考辅导天才写手,代写CS,代写finance,代写statistics,考试助攻E-mail:[email protected] 微信:BadGeniuscs 工作时间:无休息工作日-早上8点到凌晨3点如果您用的手机请先保存二维码到手机里面,识别图中二维码。如果用电脑,直接掏出手机果断扫描。

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。