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 name Function Description bool isEligibleBasedOnMarks() This function returns true if marksPercentage is within criteria else returns false. Include the default argument “int marksPercentage=90” bool isEligibleBasedOnAttendance() This function returns true if attendancePercentage is within criteria else returns false. Include the default argument “int attendancePercentage=100” bool isEligibleBasedOnMarksAndAttendance() This function returns true if marksPercentage and attendancePercentage are within criteria else returns false. Include the default argument “int marksPercentage=90, int attendancePercentage=100”

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

STRICTLY FOLLOW QUESTIONS AND TEMPLATES. MAKE CODE ACCORDING TO THE TEMPLATE PROVIDE AT THE END OF THE QUESTION. MATCH INPUT AND OUTPUT AS IT IS.

----------------Start-----------------

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 name Function Description
bool isEligibleBasedOnMarks() This function returns true if marksPercentage is within criteria else returns false.
Include the default argument “int marksPercentage=90”
bool isEligibleBasedOnAttendance() This function returns true if attendancePercentage is within criteria else returns false.
Include the default argument “int attendancePercentage=100”
bool isEligibleBasedOnMarksAndAttendance() This function returns true if marksPercentage and attendancePercentage are within criteria
else returns false.
Include the default argument “int marksPercentage=90, int attendancePercentage=100”

 

Input Format:

Get the details of student 1 with no default values.

Get the details of student 2 with the default value for attendance percentage

Get the details 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]

Details of student 1(no default values)

​​​Enter the percentage of marks

90

Enter the percentage of attendance

98

Student 1 is eligible based on marks

Student 1 is eligible based on attendance

Student 1 is eligible based on marks and attendance

Details of student 2(default value for attendance percentage)

Enter the percentage of marks

76

Student 2 is not eligible 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

------------------end----------------

IN ATTACH IMAGE TEMPLATE IS PROVIDED FOR THE " MAIN.CPP ". KINDLY CHECK BEFORE MAKING CODE

 

Main.cpp/
#include <iostream>
#include <string>
using namespace std;
1
2
5- bool isEligibleBasedOnMarks(int marksPercentage=90) {
6.
//Fill your code here
8
}
10
11- bool isEligibleBasedOnAttendance(int attendancePercentage=100) {
12
13
//Fill your code here
14
15
16
bool isEligibleBasedOnMarksAndAttendance(int marksPercentage=90, int attendancePercentage=100) {
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/ #include <iostream> #include <string> using namespace std; 1 2 5- bool isEligibleBasedOnMarks(int marksPercentage=90) { 6. //Fill your code here 8 } 10 11- bool isEligibleBasedOnAttendance(int attendancePercentage=100) { 12 13 //Fill your code here 14 15 16 bool isEligibleBasedOnMarksAndAttendance(int marksPercentage=90, int attendancePercentage=100) { 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 4 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY