Assignment Coding (1)
Assignment Coding (1)
1 Imagine you're tasked with designing a Voting System Easy CO4 Level 3
for an upcoming election. The system needs to verify if
users meet the age requirement to vote. Users who are 18
years or older are eligible to vote, while those under 18
are ineligible.
3 You have been tasked with developing a menu-based Easy CO4 Level 3
program for creating an arithmetic calculator to perform
various mathematical operations. The program should
allow users to choose from a menu of operations,
including addition, subtraction, division, multiplication,
and modulo operation.
4 How can Shyam determine the day of the week based on Medium CO1 Level 4
numerical input? Discuss the strategy he should employ
to minimize decision-making time while achieving
accurate results. Justify the selected approach based on
its efficiency in processing user input and generating
corresponding weekday outputs.
5 Design a C program that prompts the user to input the Medium CO4 Level 3
employee's basic salary. The program should then
determine the appropriate HRA and DA rates based on
the given salary ranges and calculate the gross pay
accordingly.
Basic Salary <= 10000: HRA = 18%, DA = 75%
Basic Salary is between 10001 to 20000: HRA =
22%, DA = 85%
Basic Salary >= 20001: HRA = 30%, DA = 95%