0% found this document useful (0 votes)
36 views4 pages

Practical 1

Uploaded by

vk.adhya23
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)
36 views4 pages

Practical 1

Uploaded by

vk.adhya23
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/ 4

Create your e-mail account on

Practical 1 Gmail/Yahoo mail/Hotmail

XYZ enterprises, a pharmaceutical


company is heading for its annual general
body meeting. You have been assigned the
work to create a document using
OpenOffice Writer highlighting the
important achievements of your company.
Practical 2 Also form a spreadsheet in Calc showing
the item wise sales in each month.
The spreadsheet should also show the
average sales figures and the total annual
sales. Finally, form a 3 minutes
presentation using Impress highlighting
your
company, its objective, estimated sales
target and the achieved sales in the last
financial year. (Note : You may assume the
sales figures)

Write a C++ program to accept two


numbers, a float and an integer and display
Practical 3 the
following :-
a) Sum of two numbers in integer form.
b) Sum of two numbers in float form

Practical 4 Write a C++ program that accepts radius


and then displays the area and perimeter
of a circle. Consider “Pi” as a constant
with value 3.14.

Practical 5 Write a C++ program to accept a number.


Using conditional operator print
whether the number is even or odd.

Practical 6 Write a C++ program to accept a


character. Print whether the character is an
alphabet, digit, or a special character.
Display appropriate messages

Write a C++ program to accept a number


and display the corresponding number
Practical 7 of week day
E.g., If the user enters “1” display “
Monday”, if the user enters “2” display “
Tuesday”…… and so on.
Write a C++ program (using while loop )
Practical 8 to display all the multiples of 5 from 100
to 50.
.

Practical 9 Write a program using do..while loop to


display the Fibonacci series 0, 1, 1, 2, 3,
5… n

Practical 10 Write a C++ program using for loop to find


whether the number is an Armstrong
number or not.

Practical 11 Write a menu driven program to swap two


numbers using call by value and call by
reference.

Create three functions by the name


CALCULATE() according to the prototypes
given below:
􀁺void CALCULATE(int) // to check

Practical 12 whether the argument being


passed is even or odd
􀁺int CALCULATE(int, int) // to return the
sum of two numbers being
passed as arguments.
􀁺void CALCULATE() // to display the
message “ YOU ARE
DOING GREAT

Practical 13 Write a C++ program to accept two strings


and do the following:
1. Compare the two Strings
2. Display the length of the strings
3. Append the strings

Practical 14 Write a C++ program to accept ten


numbers using an array. Search for a
number
in an array using binary search method

Practical 15 Write a C++ program to accept eight


numbers in an array. Sort the numbers in
ascending order using Bubble sort method.
Also insert a number in the sorted array.

Write a C++ program to accept two arrays


Practical 16 and merge them to form a new array
such that the new array contains the
elements from both the arrays alternatively

Write a C++ program to accept 4 X 4


Practical 17 matrix and find the sum of odd numbers of
the matrix.

Create a structure named General_Date


with day(int), month(string) and year(int)
as its members. Create another structure
named Employment_Exchange with
application_no(int),
Application_name(String), DOB(instance of
Practical 18 General_Date),
Qualification(String) and
Family_income(float).
Write a C++ program to accept the
members of the structure
Employment_Exchange. If the family
income is less than 1000 then display the
message “Eligible for Rozgar Yojna” else
display for “ Not Eligible for Rozgar
Yojna”.
Create a class named competition with the
following members:-

Private members
Member Name Data Type
integer name

learner name string


Practical 19 learner_id integer
category char
(junior/senior)
competition name string

position integer

points integer
Create a function calculate ( )- to assign the
points according to the value of
position given below:

Position Point
1 10
2 7
3 5
>3 0

Public members
1. Create an appropriate function Accept()
and Display() to accept and display
data respectively.
2. A constructor to initialize all the
numerical members to 0 and all strings to
“WELCOME”.
Write a C++ program to implement the
class defined above by creating an
object.

You might also like