Trending ▼   ResFinder  

ICSE Class X Notes 2025 : Mathematics

3 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Sujata Kundu
St. Agnes School, Kharagpur
class 10 SCIENCE
+Fave Message
 Home > sujata2025mistu >

Formatting page ...

The output of the following code is : String a= 45 ,b= 55 ; String c = a+b + 10 int m=Integer.parseInt(a) int n= Integer.parseInt(b) System.out.println(m+n+Integer.parseInt(c)+ ); (a) 110 (b) 455510100 (c) 455610 (d) None of these Given a string str= Barrackpore ;The statement str.substring(5).toUpperCase() returns : (a) ckpore (b) Barrac (c) CKPORE (d) ackpor Given a string str=CompuTerScieNceandENGINEERING ; The output of str.substring(5,12) will return ______ characters 6 (b) 7 (c) 8 (d) 9 Give the output of the following code : int x=Integer.parseInt( 670 ) + Integer.parseInt ( 70 ); System.out.println(x) (a) 740 (b) 740.9 (c) 740.0 (d) None of these The output of the following statement is : System.out.println(Character.isLetter( a ) && Character.isUpperCase( t )) ; (a) True (b) False (c) false (d) true Define a class ElectricBill with the following specifications: class: ElectricBill Instance variables/data members: String n: to store the name of the customer. int units: to store the number of units consumed. double bill: to store the amount to be paid. Methods: void accept(): to accept the name of the customer and number of units consumed. void calculate(): to calculate the bill as per the following tariff: Number of units Rate per unit First 100 units Rs. 2.00 Next 200 units Rs. 3.00 Above 300 units Rs. 5.00 A surcharge of 2.5% charged if the number of units consumed is above 300 units. void print(): To print the details as follows: Name of the customer: ________ Number of units consumed: ________ Bill amount: ________ Write a main() method to create an object of the class and call the above member functions. Define a class named 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 methods: BookFair(): default constructor to initialize data members. void input(): to input and store the name and the price of the book. void calculate(): to calculate the price after discount. Discount is calculated based on the following 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 void display(): to display the name and price of the book after discount

Formatting page ...

Related ResPapers
ICSE Class X Notes 2024 : Mathematics : Mean Median and Mode
by sugandh31 
ICSE Specimen Paper 2018 : Mathematics SOLUTION
by mausamodi 
ICSE Class X Notes 2024 : Mathematics (Bombay Scottish School, Powai, Mumbai) : maps
by kavya66 
ICSE Class X Notes 2025 : Mathematics
by bharati2618 

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

sujata2025mistu chat