0% found this document useful (0 votes)
2 views39 pages

Computer Science Assignment Formatted

This document is a lab assignment for a high school computer science course at GEMS School, Nepal, submitted by Aabiskar Acharya. It includes a series of programming tasks in C, covering topics such as arithmetic operations, control structures, loops, arrays, and string manipulation. The assignment aims to fulfill the requirements for the High School Degree in Computer Science.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views39 pages

Computer Science Assignment Formatted

This document is a lab assignment for a high school computer science course at GEMS School, Nepal, submitted by Aabiskar Acharya. It includes a series of programming tasks in C, covering topics such as arithmetic operations, control structures, loops, arrays, and string manipulation. The assignment aims to fulfill the requirements for the High School Degree in Computer Science.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

GEMS SCHOOL

Dhapakhel, Lalitpur, Nepal

“LAB ASSIGNMENT”
For the partial fulfillment of the requirement for the degree of High School Degree in Computer

Submitted To
Monica Regmy
Department of Computer Science

Submitted By
Full Name: Aabiskar Acharya
Roll No.: 1
Class/Section: 11 “A”
NEB Reg. No.: 13571

In the
Faculty of Management
National Examinations Board, Nepal
Q1

1) Write a C program that accepts two numbers and performs all arithmetic operations,
relational comparisons, and logical operations, displaying appropriate results.
2) Write a C program to demonstrate the difference between pre-increment and post-
increment operators and explain the output.
3) Write a C program that demonstrates the use of assignment operators, implicit and explicit
type conversion, and the sizeof operator.
4) Write a C program to check whether a given number is positive, negative, or zero and
determine whether it is even or odd.
5) Write a C program to find the largest among three numbers and verify whether the given
values can form a valid triangle.
6) Write a C program to assign grades to students based on their marks using if–else
conditions or switch case.
7) Write a menu-driven C program using switch case to perform arithmetic operations on
two numbers.
8) Write a C program using switch case to display the day of the week based on a number
entered by the user.
9) Write a C program using switch case to check whether a character is a vowel or consonant
and whether a number is even or odd.
10) Write a C program using loops to print number series: (a) 1 to N (b) N to 1 (c) even
numbers up to N terms.
11) Write a C program using loops to generate a multiplication table and calculate the
factorial of a given number.
12) Write a C program using loops to check whether a number is a palindrome.
13) Write a C program using loops to check whether a number is Armstrong number.
14) Write a C program using loops to check whether a number is prime number.
15) Write a C program using loops to generate the Fibonacci series up to N terms and reverse
a given number.
16) Write a C program to store N elements in an array and display all elements.
17) Write a C program using arrays to find the largest, smallest, sum, and average of the
elements.
18) Write a C program to search for an element in an array and sort the array elements in
ascending order.
19) Write a C program to input and display personal details using string variables.
20) Write a C program to perform string operations such as length calculation, case
conversion, and string reversal using library functions.
21) Write a C program to copy, concatenate, and compare two strings.
22) Write a C program to check whether a given string is a palindrome and manage multiple
employee records using strings.

You might also like