The criteria for selection of the Top Coders Club Secretary is, the students should have aminimum attendance percentage of 90 and minimum marks percentage of 85. The Principal has asked the representative of the CSE department to shortlist the students who are ligible for this post based on the given criterla. As the students are very sincere, she found that most of the students maintain an attendance percentage of 100%. When she analyzed the student's data further, she was very surprised as well as Selighted to find an accidental coincidence in the marks distribution. Most of the students have scored PON marks Write a Cprogram to find whether the student is eligible based on marks, attendance, or both.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

QUESTION AND MAIN.CPP TEMPLATE PROVIDED IN ATTACH IMAGE KINDLY SEE. AND MAKE YOUR CODE ACCORDING TO MAIN.CPP TEMPLATE PROVIDED.  MATCH INPUT AND OUTPUT AT IS .

The criteria for selection of the Top Coders Club Secretary is, the students should have a minimum
attendance percentage of 90 and minimum marks percentage of 85.
The Principal has asked the representative of the CSE department to shortlist the students who are
eligible for this post based on the given criteria.
As the students are very sincere, she found that most of the students maintain an attendance
percentage of 100%, When she analyzed the student's data further, she was very surprised as well as
delighted to find an accidental coincidence in the marks distribution. Most of the students have scored
90% marks.
Write a C++ program to find whether the student is eligible based on marks, attendance, or both.
Include the following three functions in the Main.cpp file
Function Description
This function returns true if marksPercentage is within criteria else returns false.
Include the default argument "int marksPercentage-90
This function returns true if attendancePercentage is within criteria else returns false.
Include the default argument "int attendancePercentage-100
This function returns true if marksPercentage and attendancePercentage are within criteria
Function name
bool isEligibleBasedOnMarks0
bool isEligibleBasedOnAttendance)
bool isEligibleBasedOnMarksAndAttendance) else returns false.
Include the default argument "int marksPercentage-90, int attendancePercentage-100
Input Format:
Get the detalls of student 1 with no default values.
Get the details of student 2 with the default value for attendance percentage
Get the detals of student 2 with the default value for both marks and attendance percentage
Output Format:
Refer sample input and output for formatting specifications.
Sample Input and Output Format:
(All text in bold corresponds to input and the rest corresponds to output)
Detalls of student 1(no default values)
Enter the percentage of marks
90
Enter the percentage of attendance
98
Student 1 is ellgible based on marks
Student 1 is eligible based on attendance
Student 1 is eligible based on marks and attendance
Details of student 2ldefault value for attendance percentage)
Enter the percentage of marks
76
Student 2 is not elligible based on marks
Student 2 is eligible based on attendance
Student 2 is not eligible based on marks and attendance
Details of student 3(default value for both marks and attendance percentage)
Student 3 is eligible based on marks
Student 3 is eligible based on attendance
Student 3 is eligible based on marks and attendance
Transcribed Image Text:The criteria for selection of the Top Coders Club Secretary is, the students should have a minimum attendance percentage of 90 and minimum marks percentage of 85. The Principal has asked the representative of the CSE department to shortlist the students who are eligible for this post based on the given criteria. As the students are very sincere, she found that most of the students maintain an attendance percentage of 100%, When she analyzed the student's data further, she was very surprised as well as delighted to find an accidental coincidence in the marks distribution. Most of the students have scored 90% marks. Write a C++ program to find whether the student is eligible based on marks, attendance, or both. Include the following three functions in the Main.cpp file Function Description This function returns true if marksPercentage is within criteria else returns false. Include the default argument "int marksPercentage-90 This function returns true if attendancePercentage is within criteria else returns false. Include the default argument "int attendancePercentage-100 This function returns true if marksPercentage and attendancePercentage are within criteria Function name bool isEligibleBasedOnMarks0 bool isEligibleBasedOnAttendance) bool isEligibleBasedOnMarksAndAttendance) else returns false. Include the default argument "int marksPercentage-90, int attendancePercentage-100 Input Format: Get the detalls of student 1 with no default values. Get the details of student 2 with the default value for attendance percentage Get the detals of student 2 with the default value for both marks and attendance percentage Output Format: Refer sample input and output for formatting specifications. Sample Input and Output Format: (All text in bold corresponds to input and the rest corresponds to output) Detalls of student 1(no default values) Enter the percentage of marks 90 Enter the percentage of attendance 98 Student 1 is ellgible based on marks Student 1 is eligible based on attendance Student 1 is eligible based on marks and attendance Details of student 2ldefault value for attendance percentage) Enter the percentage of marks 76 Student 2 is not elligible based on marks Student 2 is eligible based on attendance Student 2 is not eligible based on marks and attendance Details of student 3(default value for both marks and attendance percentage) Student 3 is eligible based on marks Student 3 is eligible based on attendance Student 3 is eligible based on marks and attendance
Main.cpp/
1
#include <iostream>
#include <string>
using namespace std;
2
3
4
5- bool isEligibleBasedOnMarks(int marksPercentage=90) {
7
//Fill your code here
8
9
}
10
11 - bool isEligibleBasedOnAttendance (int attendancePercentage=100) {
12
13
//Fill your code here
14
}
16- bool isEligibleBasedOnMarksAndAttendance(int marksPercentage=90, int attendancePercentage=100) {
15
17
18
//Fill your code here
19
20
21
22- int main() {
23
24
//Fill your code here
25
26
return 0;
27
}
Transcribed Image Text:Main.cpp/ 1 #include <iostream> #include <string> using namespace std; 2 3 4 5- bool isEligibleBasedOnMarks(int marksPercentage=90) { 7 //Fill your code here 8 9 } 10 11 - bool isEligibleBasedOnAttendance (int attendancePercentage=100) { 12 13 //Fill your code here 14 } 16- bool isEligibleBasedOnMarksAndAttendance(int marksPercentage=90, int attendancePercentage=100) { 15 17 18 //Fill your code here 19 20 21 22- int main() { 23 24 //Fill your code here 25 26 return 0; 27 }
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Image Element
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education