0% found this document useful (0 votes)
20 views2 pages

Computer Hardest Question Answer

The document outlines a project for Class X Computer Applications, detailing various Java programming tasks including series generation, pattern display, prime number checking, taxi fare calculation, area calculation using method overloading, Armstrong number checking, factorial calculation, palindrome number display, customer showroom management, and array manipulations. Each task specifies methods, instance variables, and expected outputs, adhering to ICSE project writing rules. The project aims to enhance students' programming skills through practical applications of Java concepts.

Uploaded by

hififunney123
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)
20 views2 pages

Computer Hardest Question Answer

The document outlines a project for Class X Computer Applications, detailing various Java programming tasks including series generation, pattern display, prime number checking, taxi fare calculation, area calculation using method overloading, Armstrong number checking, factorial calculation, palindrome number display, customer showroom management, and array manipulations. Each task specifies methods, instance variables, and expected outputs, adhering to ICSE project writing rules. The project aims to enhance students' programming skills through practical applications of Java concepts.

Uploaded by

hififunney123
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/ 2

CLASS X

Computer Application ( Project for Half yearly exam)


Follow the rules of project writing as per ICSE.
[Write Variable Listing for all the programs]
1. Write a menu driven program in java to display the following series using methods.
Series1() : 1 3 6 10 15 21 28 …..10th times
Series2(): 1 2 0 1 2 0 1 2 0 1 2
2. Write a menu driven program to display the following pattern using methods.
Pattern1() * pattern2() 1 2 3
*** 456
***** 789
3. Write a program in java to input a number and find the number whether prime or not in prime
method.
4. Define a class TAXIFARE to find the Taxi Fare:
Instance variables
distance - as Integer
Member Methods:
void Input() - Input the distance in kilo metre.
int farecalculate() – find the fare as per following fare chart and return fare.
Distance (km) Rate / Km (Rs)
<20 20
20 to less than 50 18
50 to less than 200 16
200 and more 15
void display() - display fare
void main() - create the object and call all the methods accordingly.

5) Write a program to display the following series in two methods –


void series1() 0 1 1 2 3 5 8 13 21 34 …………….….20 times
void series2() 1 2 6 24 120 ……..10 times
void main() create the object and call the methods.

6) Write program with the class name overloading to find the area of the square, area of circle and
area of a rectangle methods name area() [overloading methods], main() – accept all the
necessary values from the user and call the methods by call by value.
7) Write a class to check whether a given number is Armstrong or not using a function.
int checkArmstrong(int num)- should return a value 1 if number is Armstrong otherwise it return 0
if not.
Main() – create the object, input the value and call the method and display the value Armstrong or
not.
8) Write a class program SERIES with a function by using following specifications- int fact(int).
The function calculates and returns factorial of a number. Apply this function to find the sum of the
following series and display the result in main-function.
(Note : n! = 1 x 2 x 3 x.......x n )
S = 1 + 1 + 1 +……………+1
2! 4! 6! 10!
9) Write a class palindrome with the function palin() to display all 3 digit palindrome numbers.
main() create the object and call the function palin().

10) Design a class name ShowRoom with the following description :


Instance variables/ Data members :
String name – To store the name of the customer
long mobno – To store the mobile number of the customer
double cost – To store the cost of the items purchased
double dis – To store the discount amount
double amount – To store the amount to be paid after discount
Member methods: –
ShowRoom() – default constructor to initialize data members
void input() – To input customer name, mobile number, cost
void calculate() – To calculate discount on the cost of purchased items, based on following criteria
Cost Discount %
Less than or equal 10000 5%
More than 10000 and less than 20000 10%
More than 20000 and less than 35000 15%
More than 35000 20%
void display() – To display customer name, mobile number, amount to be paid after discount
Write a main method to create an object of the class and call the above member methods.
void main() – Create the object and call the functions.
11) Write a program to store 10 values in an array from the user and display the highest and
lowest value.
12) Write a program to store 10 values in an array from the user and display their average.
13) Write a program to accept 10 values in an array and display the sum of all odd positive values.
14) Write a program to accept 10 values in an array , count and display all the two digit value.
15) Write a program to accept 10 numbers in an array, input another number and search whether
the number is present in the list of numbers or not using linear search and display suitable message
16) Write a program store 10 values in ascending order. Input another value and check the value
whether present in the list of value or not using Binary search technique.
17) Input the marks of n numbers student from the user and arrange them in descending order by
Bubble short technique.
18) Input a string, count and display the no’s of vowels present in the string.
19) Input a 10 names in an array, display the longest name from the list of names.
20) Input a string, display total numbers of upper case letter, lower case letter, digits and special
character present in the string.

**********

You might also like