What is your course grade average? How many days were you absent from class? Average <91 No Average <93 No -No Days absent >3 exempt_from_final= False No exempt_from_final= True exempt from final= True You are exempt from the final exam No You must take the final exam for the course What is your course grade average? 88 How many days were you absent from class? 2 You must take the final exam for the course. Press any key to continue -Yes- Days -Yes->> absent >1 -Yes- exempt_from_final= False -Yes- exempt_from_final= False exempt_from_final= True -Yes-

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

Use C++ Language

Create a program that will determine if a student needs to take a final
exam. This decision depends on the course grade average and the student’s attendance. Use the flow chart
below for the final exam criteria.

### Decision-Making Process for Final Exam Exemption

This flowchart illustrates the criteria used to determine whether a student is exempt from the final exam based on their course grade average and attendance.

1. **Initial Query:**
   - **Course Grade Average**: The process starts by asking, "What is your course grade average?"

2. **First Decision Point:**
   - If the **average grade is less than 91**, then the student is **not exempt (exempt_from_final = False)**.
   - If the **average grade is 91 or above**, proceed to the next decision point.

3. **Second Decision Point:**
   - For students with an **average grade of 91 or above**, it next checks, "How many days were you absent from class?"

4. **Third Decision Point:**
   - If the average grade is **less than 93**, then the student must have **1 or fewer absences** to be exempt.
      - If the **days absent > 1**, the student is **not exempt (exempt_from_final = False)**.
      - If the **days absent ≤ 1**, the student **is exempt (exempt_from_final = True)**.
   - If the average grade is **93 or above**, it next checks the number of absences.

5. **Absenteeism Check:**
   - If the student has been absent for more than 3 days, they are **not exempt (exempt_from_final = False)** no matter their average.
   - If the student has been absent for **3 or fewer days**, they are **exempt (exempt_from_final = True)**.

6. **Final Determination:**
   - If the student is **exempt_from_final = True**, then they are **exempt** from the final exam.
   - If the student is **exempt_from_final = False**, they must take the final exam.

### Example Case:

- **Course Grade Average: 88**
- **Days Absent: 2**

The messages given are:

1. "What is your course grade average? 88"
2. "How many days were you absent from class? 2"
3. "You must take the final exam for the course. Press any key to continue."

In this scenario:
- Since the grade average (88) is less than 91, the student is not exempt and must take the final exam.
Transcribed Image Text:### Decision-Making Process for Final Exam Exemption This flowchart illustrates the criteria used to determine whether a student is exempt from the final exam based on their course grade average and attendance. 1. **Initial Query:** - **Course Grade Average**: The process starts by asking, "What is your course grade average?" 2. **First Decision Point:** - If the **average grade is less than 91**, then the student is **not exempt (exempt_from_final = False)**. - If the **average grade is 91 or above**, proceed to the next decision point. 3. **Second Decision Point:** - For students with an **average grade of 91 or above**, it next checks, "How many days were you absent from class?" 4. **Third Decision Point:** - If the average grade is **less than 93**, then the student must have **1 or fewer absences** to be exempt. - If the **days absent > 1**, the student is **not exempt (exempt_from_final = False)**. - If the **days absent ≤ 1**, the student **is exempt (exempt_from_final = True)**. - If the average grade is **93 or above**, it next checks the number of absences. 5. **Absenteeism Check:** - If the student has been absent for more than 3 days, they are **not exempt (exempt_from_final = False)** no matter their average. - If the student has been absent for **3 or fewer days**, they are **exempt (exempt_from_final = True)**. 6. **Final Determination:** - If the student is **exempt_from_final = True**, then they are **exempt** from the final exam. - If the student is **exempt_from_final = False**, they must take the final exam. ### Example Case: - **Course Grade Average: 88** - **Days Absent: 2** The messages given are: 1. "What is your course grade average? 88" 2. "How many days were you absent from class? 2" 3. "You must take the final exam for the course. Press any key to continue." In this scenario: - Since the grade average (88) is less than 91, the student is not exempt and must take the final exam.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Top down approach design
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
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