Question
Flowchart: Allow the user to enter a degree acronym. The algorithm is valid only for the BA, BSC, BIS or BBA programs. If the user
Flowchart:
Allow the user to enter a degree acronym. The algorithm is valid only for the BA, BSC, BIS or BBA programs. If the user enters a different degree program (e.g. MMS, PhD) your algorithm should do no calculations nor display any data. Instead, the algorithm should display an error message, such as below and then terminates.
INVALID DEGREE PROGRAM - PLEASE ENTER A NEW DEGREE PROGRAM
If a valid degree acronym is entered, the algorithm should be customized for that particular degree (e.g., for the BIS program, the algorithm displays the header: Department of Information Systems and for the BA program the header should display: Bachelors of Arts, etc.).
Accept as input from the user, data regarding enrollment in a university degree program.
The # of students in Year 1
The # of students in Year 2
The # of students in Year 3
The # of students in Year 4
The # of students in Year 5
The # of students in Year 6
And display as a report:
The name of the report.
The number of students in each year.
The percentage enrollment for each year.
The total number of students in the degree.
For each year, if the enrollment is over the limit for that particular year write a message indicating that the number of students enrolled in that particular year is over the limit.
Also, each Year has an enrollment limit. They are:
Year 1: Maximum enrollment is 150
Year 2: Maximum enrollment is 100
Year 3: Maximum enrollment is 75
Year 4: Maximum enrollment is 50
Year 5 and 6: Maximum enrollment is 25
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started