0% found this document useful (0 votes)
6 views3 pages

List of Programs

The document outlines a series of programming tasks including array manipulation, sorting algorithms, mathematical computations, class and inheritance structures, and basic HTML and SQL operations. It covers finding element frequencies, inserting and deleting elements from arrays, implementing sorting and searching algorithms, and creating classes for student data management. Additionally, it includes tasks for generating electricity bills and computing student results based on specified criteria.

Uploaded by

hanishs864
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)
6 views3 pages

List of Programs

The document outlines a series of programming tasks including array manipulation, sorting algorithms, mathematical computations, class and inheritance structures, and basic HTML and SQL operations. It covers finding element frequencies, inserting and deleting elements from arrays, implementing sorting and searching algorithms, and creating classes for student data management. Additionally, it includes tasks for generating electricity bills and computing student results based on specified criteria.

Uploaded by

hanishs864
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
You are on page 1/ 3

1.

Write a program to find the frequency of an element


in an array
2. Write a program to insert an element into an array at
a given position
3. Write a program to delete an element from an array
from a given position
4. Write a program to implement insertion sort
5. Write a program to implement binary search
6. Write a program to compute simple interest and
display the result
8. Write a program to find the area of a square/rectangle/triangle
using function overloading.
7. Write a program to create a class with data members
a, b, c and member functions to input data, compute
the discriminant based on the following conditions
and print the roots.
If discriminant=0, print the roots that are equal
If the discriminant is>0, print the real roots
If the discriminant is<0, print that the roots are
imaginary.
9. Write a program to find the cube of a number using
inline functions

10. Write a program to find the sum of series


1+x+x2+--------+x using constructors.
n

11. Create a base class containing the data members roll number
and name. Also create a member function to read and display the
data using the concept of single level inheritance. Create a derived
class that contains marks of two subjects and total marks as the data
members.

12.Create a class containing the following data members register No., name
and fees. Also create a member function to read and display the data using
the concept of pointers to objects.

HTML
13. Write a HTML program to create a study timetable.
14. Write a HTML program with table and form.
SQL
15. Generate the electricity bill for one consumer.
1. Create a table for household electricity bill with the
following fields:

Field Name Type


RR_Number Varchar2(10)
Consumer_name Varchar2(10)
Date_billing Date
Units Number(4)

2. Insert 5 records into the table.


3. Check the structure of table and note your observation
4. Add two new fields to the table
· bill_amt number(6,2)
· due_date date
5. Compute the bill amount for each customer as per the
following rules
Min_amt Rs. 50
First 100 units Rs. 4.50/unit
>100 units Rs. 5.50/unit
6. Compute due date as billing date+15 days
7. List all the bills generated

16. Create a student database and compute the result.


1. Create a table for a class of students with the following details.
Name Type
Student_id Number(4)
Student_nam Varchar2(25)
e
Mark1 Number(3)
Mark2 Number(3)
Mark3 Number(3)
Mark4 Number(3)
Mark5 Number(3)
Mark6 Number(3)
2. Add five records.
3. Alter the table to add the columns
Total number(4)
Percentage number(5,2)
Result char(4)
4. Compute total and percentage.
5. Compute the result as ‘pass’ or ‘fail’ by checking if the student has
scored more than or equal to 35 or less than 35 marks in each subject
6. List the students who have result as ‘Pass’
7. Count the number of students who have failed
8. List the contents of the table

You might also like