” CPM 111编程设计 写作、 辅导C++编程CPT/CPM 111 Principles of ProgrammingAssignment 2 IndividualTopics covered: File processing, pointers, functions, arraysLearning About Areas of ShapesA mathematics teacher wishes to create a program that will allow her students to learn aboutarea, and circumference. She plans to have a program that allow her students to key inthe length and width or base values And get the output on the values of area orcircumference. She also wants the program to reversely calculate values of height orwidth or base etc given the value of area, and circumference. For example, given thearea and height then the program should be able to find the width. She has preparedformulas for the programmer who would develop the program in the table below:You have been assigned by your company to develop the program for this mathematicsteacher.The teacher would like to create quiz like program that will test her students knowledge. Sheprovided you with 3 text files (one file for each shape). In each of these files there are 12 rowsand 3 columns. The first column is the values for area, the second column is for base (orwidth) and the third column is for Height (or length) values. The row represents a set ofvalues for one shape. For example, look at the Triangle.txt below, the first row has thevalue of 12, 4 and 6 denoting area=12, base=4 and height=6. In each file there are 12sets (rows) of these values. Your program should read these values.The quiz should have three sections as follows: in the first section, the program would ask the user to provide the area value by givingthe base and height of each shape. These values are taken from the first four rowsin each of the text files. in second section, the program would ask the user to provide the height value bygiving the base and area of each shape. These values are taken from the second fourrows in each of the text files. the last section, the program would ask the user to provide the base or length valueby giving the area and height of each shape. These values are taken from the lastfour rows in each of the text files.Once the user answers the quiz by providing the requested values, the program will check thevalue with the corresponding value Given in the text file. If it is a match, 1 mark will be given.Otherwise, no mark will be given. The same process will be repeated for each question. Marksare accumulated for all questions. Once the user finished answering all 36 questions, theprogram will show the result i.e. the total marks. This mark is then stored in a text file namedstudentMarks.txt along with studentID. Hence, the program should prompt forstudentID before user start the quiz. StudentMarks.txt will be updated every time a userfinish the quiz. However, no one user could take the quiz twice. Thus, the program should alsocheck the studentID whether it existed in studentMarks.txt. If it existed, the studentis not allowed to take the quiz.Programming specifications are as follows: You are required to create functions based on shapes where each function will acceptand return appropriate value(s). The main()program will prompt the user on the shape that they want to learn. Oncechosen, it will start the Quiz based on the shape. When the user selects an option thenthe program will prompt user for necessary input(s). Let say, user chooses the shape triangle, then the program will start the quiz related totriangle. The main() program will read triangle.txt and call the function triangle toexecute the quiz as mentioned. Once done the function return the score for quiz ontriangle. Its up to your creativity on how the parameter passing should be legally done. You should provide appropriate instructions and design your program interactively.User can use the program as many times as they wish.Text files contents:Triangle.txtArea Base Height12 4 69 3 64 2 48 2 88 4 421 6 724 6 836 8 955 10 1160 10 1270 10 1477 11 14Rectangle.txtArea Width Length24 4 632 4 820 4 530 5 640 5 842 6 745 5 956 7 863 7 972 8 980 8 1090 9 10Parallelogram.txtArea Base Height12 3 416 4 418 6 315 5 324 6 425 5 520 5 422 2 1122 2 1032 4 839 3 1340 5 8Your program must have the following:I. Good Interface Design (i.e. Presentable manner and easy to understand)II. Meaningful comments in the source codesIII. Its accurate!!IV. You will have 3 input files and one output fileV. You are required to use arrays, functions and pointersYou are required to provide the following in your documentation (report):1. Problem Analysis (Input, Output, Process and Constraints)2. Algorithm (Pseudocode OR Flow Chart)3. Implementation (C++ Program)4. Test cases (Screenshots for the test cases)INSTRUCTIONS:1. Solve the above exercise and upload all your source codes files to the elearning portal.2. This is an individual assignment. Hence, please ensure that:a. You did not copy your friends codes and you do not let they copy your codes.b. Grade F will be given if you are proven guilty.3. Please Prepare a video presentation where you explain on the process of planning forthe solution and the execution Of your codes. Please use power point presentation aspart of your video presentation. Upload the video and the power point slides to theelearning portal.4. No report or viva needed. Only video presentation, power point slides and sourcecodes. Treat power point slides and video presentation as a report. So please be clearin explanation etc. Max length of video presentation is 10 minutes.5. Its best that you zipped all your files and label the zip file with your name beforeuploading.6. Make sure in power point Slides, you have a title slide with your name and matricnumber as well as on each of your source codes file.DUE DATE: 1 July 2021请加QQ:99515681 或邮箱:99515681@qq.com WX:codehelp
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。