college of science, engineering and technology

4 downloads 0 Views 313KB Size Report
Apr 9, 2017 - The course instructor has requested you to assist her in processing the course ... Also be sure that you submit the assignment only when you're ...
FIJI NATIONAL UNIVERSITY

COLLEGE OF SCIENCE, ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE & INFORMATION SYSTEMS

CSC511 INTRODUCTION TO C++

ASSIGNMENT 2 (20%) Due date: Sunday, 9th April 2017 The class of CSC511 has recently completed their course and the course instructor is left to release the grades to the students. The course instructor has requested you to assist her in processing the course marks. As part of your course, you have learnt to write programs in C++ to automate certain repetitive tasks. Use all information provided to write a modular C++ program (use functions) to complete this task. CSC511 Course Details This course has the following four assessments. The mark and weighting details are provided below: Assessments

Mark 70 80 50 100

Assignment 1 Assignment 2 Mid Trimester Exam Final Exam

Weight 15 15 20 50

To calculate the total mark, use the following formula: (assign1mark/70.0 * 15.0) + (assign2mark/80.0 * 15.0) + (mtemark/50.0 * 20.0) + (femark/100.0 * 50.0)

Therefore, for student s2014120371 Student_ID

Student_Name

s2014120371

Sawailau, Jieni.

Assignment_1 Assignment_2 MidTrimesterExam 57

63

FinalExam

44

totalmark = (57.0/70.0 * 15.0) + (63.0/80.0 * 15.0) + (44.0/50.0 * 20.0) + (60.0/100.0 * 50.0) Numerical grade is 71.63  72 (roundup total mark) and Letter grade is C

60

CSC511 Course Marks Course marks are provided in the CSC511RawMarks.txt file. Sample is shown below: (Note: Don’t make any changes to this file)

Assignment Requirements You are required to do the following: 1. Student Grades: Find the student letter grades using the following grade scale: Numerical Grade

Letter Grade

Greater than or equal to 80

A

Less than 80 but greater than or equal to 65

B

Less than 65 but greater than or equal to 50

C

Less than 50 but greater than or equal to 35

D

Less than 35

F

2. Course Summary: For the course CSC511, show the following: a. Number Sat b. Number Passed c. Percentage Passed d. Average e. Grade Distribution Each of the summaries above is to be printed out in separate txt/dat files as shown below.

StudentGrades.txt

CourseSummary.txt

Assignment Instructions Use your knowledge of programming and the instructions provided to complete this task. 1. Use parallel one dimensional arrays to store each detail from the input file. You will need to do this just once. 2. Once you have got all information into the arrays, use these arrays for calculations and printing out information. 3. Declare the size of array as a constant global variable. 49 students sat for this course. 4. Implement this program using functions. For example, you can have a function to read information from input file to arrays. A function to calculate and display grades. A function to calculate summaries and display them. 5. All arrays must be declared within the main(), and passed to functions as arguments. 6. Format numerical outputs using I/O manipulators.

Instructions for Submission You are required to do this assignment in groups of two. No groups can exceed this limit; however individual assignments is permitted but not encouraged. Using C++ comments, write the group members name, ID and % contribution of each member to the making of the program, at the beginning of your code. Submit your completed assignment by 11.55PM, Sunday, 9th of April 2017, via Moodle Assignment 2 submission box. Name your program file as Assign2_IDNum1_ IDNum2_IDNum3.cpp (e.g. Assign2- 2009005764_2009001452_2010556972.cpp) Be sure you submit only the .cpp file. You do not need to submit the .exe executable version of your assignment. Also be sure that you submit the assignment only when you’re totally satisfied. We will not accept “corrected versions” of the assignments. Partial Marks: Even if your program doesn’t work perfectly, you’ll receive marks for each part you get to work. E.g. if your program compiles but gives incorrect results, you can still receive a passing mark provided that your code is well-written. Submitting late: Start EARLY. When you finish do not hold on to your assignment till the last moment. Submit as soon as you are satisfied with it. If you think you will not be able to submit the assignment on time due to some unforeseen circumstances, then you will need to seek approval from the course lecturer prior to the due date to avoid deduction of marks. Plagiarism: It’s important that you avoid plagiarism. You do not only expose yourself to possibly serious disciplinary consequences, but you’ll also cheat yourself of a proper understanding of the course. You’ll certainly fail the short tests and/or the final, which will test your understanding of this assignment. It’s not plagiarism to discuss the assignment with your friends and consider solutions to the problems together. However, it is plagiarism for you to copy all or part of each other’s programs. Even if your program doesn’t work perfectly, avoid the urge to copy someone else’s. We’ll give some marks if it’s obvious you have worked hard on your own. If you find somebody has stolen your assignment and produced it as their work, it will be considered plagiarism. Both of parties be will penalize regardless of who the culprit is. So it’s your responsibility to see that no one copies your assignment. Be careful with them. And make sure you log out of the lab machines when you are finished working with them.