Question: Develop a menu - based program in C + + that manages attendance and absence for a class of 6 4 students. For this purpose,
Develop a menubased program in C that manages attendance and absence for a class of students. For this purpose, use a bit mask instead of an array or other complex data structure!
Add an option for inputting attendance.
Add an option for inputting absence deleting attendance
Add an option for displaying the numbers of students who are absent
Add an option for displaying the numbers of students who are present.
Add an option for changing the status of a student if present, mark as absent or if absent mark as present.
Validate the data invalid option, invalid student number...
For solving the problem, you may but it's not mandatory use the following structure:int mainvoid
uintt attendance ;
int option;
while
std::cout Set attendance" std::endl;
std::cout Clear attendance
std::endl;
std::cout Attendance info
std::endl;
std::cout Change attendance
std::endl;
std::cout Exit" std::endl;
Std::cin option;
if option
to do
else if option
to do
else if option
to do
to do
return ;
USE bitmask and bitwise operations C also you can use setBit,clearBit,flipBit,readBit functions do not use arrays if it is not necessary
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
