in this assignment, you are going to write a C++ that includes functions. Each function should do onlyone task. The program asks the user to enter a file name. The file includes names, marks and...

1 answer below »
in this assignment, you are going to write a C++ that includes functions. Each function should do onlyone task. The program asks the user to enter a file name. The file includes names, marks and students’types (D for domestic and I for International) of 100 students. The program should do the followingstatistics- The number of international students who pass the exam.- The number of domestic students who pass the exam.- The number of students who fail the exam.- The list of students’ names who got full marks.- The average of the marks of the international students.- The average of the marks of the domestic students.


INFO 1112 Assignment 3 Due March 28th 11:59PM For this assignment you are going to write a C++ program using the requirements below. Write your full name with your student number as a block comment /**/ at the beginning of the program (2 marks will be detected if your code without this comment). Please follow these instructions: • Use your student number to name C++ source code (2 marks will be detected if your C++ code is not your student number) • Complete your assignment individually and do not seek help from anyone. You can ask general questions on Q&A discussion Forum but do not share your code. • Check the assessment section for details on the marking. • Program with syntax errors will not be graded. • You must submit ZIP folder which includes your project and the word file which includes the samples of input/output. • In case of cheating or plagiarism, I will follow KPU ST2 Policy. Program Requirements In this assignment, you are going to write a C++ that includes functions. Each function should do only one task. The program asks the user to enter a file name. The file includes names, marks and students’ types (D for domestic and I for International) of 100 students. The program should do the following statistics - The number of international students who pass the exam. - The number of domestic students who pass the exam. - The number of students who fail the exam. - The list of students’ names who got full marks. - The average of the marks of the international students. - The average of the marks of the domestic students. Your program should include the following functions in addition to the main function that controls the program. - A function that asks the user to enter a file name. The function returns the entered file name. - A function that accepts two parameters a file name as a string and student type as a character. The function returns the number of students who pass the exam based on the passed student type. - A function that accepts one parameter a file name as a string. The function returns the number of students who fail the exam. - A function that accepts one parameter a file name as a string. The function prints list of students’ names who got full marks. - A function that accepts two parameters a file name as a string and student type as a character and returns the average of the marks of the students based on the passed student type. INFO 1112 Assignment 3 Due March 28th 11:59PM Assessment Programs with syntax errors will not be graded. This assignment is out of 100. - Using meaningful variable names. (5 points) - Adding enough comments to understand the program. (5 points) - Using indentation properly. (5 points) - The function that returns a file name. (10 points) - The function that returns the number of students who pass the exam based on the student type. (15 points) - The function that returns the number of students who fail the exam. (15 points) - The function that prints list of students’ names who got full marks (15 points). - The function that returns the average of the marks of the students based on the student type (15 points). - The main function that controls the program by calling the functions. (15 points)
Answered 1 days AfterMar 26, 2022

Answer To: in this assignment, you are going to write a C++ that includes functions. Each function should do...

Sathishkumar answered on Mar 27 2022
102 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here