0% found this document useful (0 votes)
3 views

Assignment Coding (1)

The document outlines a series of programming assignments focused on various coding tasks, including designing a voting system, creating an arithmetic calculator, and developing a banking management interface. Each task specifies the requirements, success criteria, and the expected handling of user inputs. The assignments are categorized by difficulty levels and are aimed at enhancing programming skills in different areas.

Uploaded by

gotrade321
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Assignment Coding (1)

The document outlines a series of programming assignments focused on various coding tasks, including designing a voting system, creating an arithmetic calculator, and developing a banking management interface. Each task specifies the requirements, success criteria, and the expected handling of user inputs. The assignments are categorized by difficulty levels and are aimed at enhancing programming skills in different areas.

Uploaded by

gotrade321
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

ASSIGNMENT

Passion Name: Coding

Question Question Content Difficulty CO Mapping BT Level


No Level

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.

Design a program that prompts users to input their age.


If the user's age is 18 or older, the program should
display a message allowing them to proceed with voting.
However, if the user's age is below 18, the program
should politely inform them that they are ineligible to
vote and provide a brief explanation of the age
requirement for voting.

Criteria for Success:

1. The program accurately determines the user's


eligibility based on their age input.
2. Clear message to be displayed, informing users
of their eligibility status.
3. The program handles various input scenarios,
such as non-numeric inputs or negative numbers,
providing appropriate error messages if
necessary.

Advanced Credit Program


Chandigarh University, NH-05, Ludhiana - Chandigarh State Highway, Sahibzada Ajit Singh Nagar, Punjab 140413
2 Design an analytical comparison that explores the Easy CO1 Level 1,
syntax, examples, and key distinctions of each control
structure. Provide detailed explanations of how each Level 2
control structure is used in programming, along with
code examples illustrating their implementation.

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%

6 Create a software interface structured around a menu Application CO3 Level 3


system, simulating an online banking management Based/Activity
Based
platform. The system should offer users the following
selections:
● Access customer details for display.

Advanced Credit Program


Chandigarh University, NH-05, Ludhiana - Chandigarh State Highway, Sahibzada Ajit Singh Nagar, Punjab 140413
● Verify account balance.
● Execute deposit transactions and exhibit the
resulting balance.
● Process withdrawal transactions and showcase
the revised balance.
Provide access to updated bank policies for review.

7 You are assigned to create a program to evaluate Application CO3 Level 3


students' performance based on their marks in Physics, Based/Activity
Based
Chemistry, and Mathematics. The program should
calculate the total marks obtained by each student, their
percentage, and then assign a corresponding grade
according to predefined criteria mentioned below:

● Percentage >= 90: Grade A+


● Percentage between 80-89: Grade A
● Percentage between 70-79: Grade B+
● Percentage between 60-69: Grade B
● Percentage between 40-59: Grade C
● Percentage below 40: FAIL

Your program should ensure accurate calculation of


total marks and percentage, and it should correctly
assign grades according to the specified criteria.
Additionally, it should handle any potential errors or
invalid inputs, providing appropriate error messages if
necessary.

Advanced Credit Program


Chandigarh University, NH-05, Ludhiana - Chandigarh State Highway, Sahibzada Ajit Singh Nagar, Punjab 140413

You might also like