Project Computer X

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

VISION INTERNATIONAL SCHOOL

SESSION : 2023 - 24
SUBJECT : COMPUTER APPLICATIONS PROGRAMMING ASSIGNMENT
CLASS : X
Date of Date of
giving submission
Topic Programs
1. Kundu Travels Pvt. Ltd. gives the following discount to its customer as per given tariff:
Ticket Amount Discount
Above 70,000/- 18%
55,001 to 70,000/- 16%
Nested Loop 35,001 to 55,000/- 12%
25,001 to 35,000/- 10%
Less than 25,001/- 2%
Write a program to input the name and ticket amount for 10 customers and calculate the discount amount and
net amount to be paid. Display the output in the following format for each customer.
S. No Name Ticket Charge Discount Net Amount

2. A Special Number is said to be special number if the sum of the factorial of the digits of the number as same as the original
Nested Loop number. Write a program to accept a number and print whether the number is a Special Number or not. Input:145
Output: A Special Number

3. Write a menu driven program to accept a number from the user and check it is a BUZZ number or not or accept
any 2 numbers and print the GCD (Greatest common divisor).
(i) A BUZZ number is either ends with 7 or it is divisible by 7.
Switch Case (ii) GCD of 2 integer is calculated by continued division method. Divide the largest no. by smaller.
The remainder then divides the smaller. The process is continued till the reminder is 0. The last divider is called GCD of
two integers.

4. Write a menu driven program to accept a number and check and display whether it is a Prime Number or not or as
Automorphic Number or not.
Switch Case (i) A number is said to a prime number if it is divisible by 1 and by itself eg. 2,3
(ii) An Automorphic number is a number which is contained in the last digit(s) of its square.[25 is an Automorphic no]

Conditional 5. Write a program to accept a number and check and display whether it is a Niven number or not. Niven number is a
Statement number which is divisible by its sum of digits. e.g. 126 1 + 2 + 6 ® 9

Loop 6. Write a program to generate a tribonacci series 0,1,2,3,6,11 …………. till n terms.
Nested Loop 7. Write a program in java to find the sum of the following series :

Nested Loop 8. Write a program to find the sum of the following series :

1234554321 COMPUTER
1234 4321 O E
123 321 M T
12 21 P U
Nested Loop 9.. Write a menu driven program to print the patterns
1 1 U P
T M
E O
RETUPMOC

String 10. Write a program to input a string in uppercase and print the frequency for each character.

11. Write a program to accept a word and convert it into Pig Latin form. (Convert the word into uppercase and place the first
String vowel of the original word at the start of the new word along with the letters following it. The letters present
before the first vowel are shifted to the end of the new word followed by ‘ay’.)

12. Write a program to accept the string and convert it into uppercase and count an output of double letter sequences that exists in
String the string and display it.
13. Write a program to assign full path of a file into a string .Extract and display the following as given below:
String Using function extract the file path, file name and file extension separately.
14. Write a program to store 5 words in a single dimensional array and frame a new word by taking out the 1st
Array characters of each word. Arrange the alphabets of new word in ascending order using Selection Sort and
display resultant word.
15. Write a program to store 10 words in a single dimension array and display those words which is palindrome using
Array Linear Search techniques.
Array 16. Write a program to input 10 integer elements in an array and sort them in descending order in Bubble Sort
17. Write a java program to perform Binary Search on a list of integers given below,to search for an element input by the user.If
Array it is found display the element along with its position,otherwise display the message "Search element not found".
[5,7,9,11,15,20,30,45,89,97]

18.. Define a class called BookFair with the following description :


Instance variables / data members :
String Bname : stores the name of the book
double price : stores the price of the book
Member method :
(i) BookFair() : constructor to initialize data members
(ii) void input() : to input and store the name and price of the book
(iii) void calculate() : to calculate the price after discount. Discount at calculated based on the following
Function criteria :

Price Discount
Less than or equal to Rs.1000 2% of price
More than Rs. 1000 and less than or equal to Rs.3000 10% of price
More than Rs. 3000 15% of price

(iv) void display() : to display the name and price of the book after discount. Write
a main method to create an object of the class and call the above member methods.
19. Design a class to overload a function polygon() as follows :
(i) void polygon(int n,char ch) : with one integer and one character type argument to draw a filled
square of side n using the character stored in ch.
(ii) void polygon(int x, int y) : with two integer arguments that draws a filled rectangle of length
x and breadth y, using the symbol '@'.
(iii) void polygon() : with no argument that draws a filled triangle shown below :
Example :
(i) Input value of n = 2, ch = 'O'
Function Output : OO
Overloading OO
(ii) Input value of x = 2, y = 5
Output : @@@@@
@@@@@

(iii) Output : *
**
***
20. Write a program to input a number and check and print whether it is a 'Pronic' number or not. Use a function
int Pronic(int n) to accept a number. The function returns 1, if the number is 'Pronic', otherwise returns zero (0).
(Hint : Pronic number is the number which is the product of two consecutive integers)
Function Examples : 12 = 3 * 4
20 = 4 * 5
42 = 6 * 7
the sum of diagonal numbers present in the diagonal position.
row total and each column total.
2 D Array form.
it.
check MATRIX multiplication possible or not.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy