Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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