ProgScripting Languages
Please tell me its detail related to Java
Differentiate between yield () and sleep () methods.
- 962 views
- 2 answers
- 1 votes
Hi
Differentiate between Unchecked & Checked Exceptions in Java. Please tell me its complete detail
Regards.
- 909 views
- 3 answers
- 0 votes
You will present a comparison of java with C++.
In this comparison you will present the advantages of java over C++ and any draw back of Java against C++
- 1250 views
- 1 answers
- 0 votes
Problem Statement:
Printing Electricity Bill Detailed Description
Write a C++ program in which you have to:
- Create a text file “Electricity_Bill”.
- Write the following data in it:
Electricity Consumer Bill:
Reference No | Tariff | Load | Old A/C No |
123456789123456 | 2 | 1 | 123456789123456 |
Name and Address
XYZ Lahore Pakistan
- 3950 views
- 1 answers
- 1 votes
Need help with a program calculate the area and circumference of the circle by declaring a class
thanks in advance
- 1580 views
- 2 answers
- 0 votes
You are required to write a program which takes two 3×3 matrix A and B containing 09 elements each and sort all these 18 elements in descending order and put it in one dimensional array and then display it.
Follow the following steps to code this program
1. Take two two-dimensional arrays as A[3][3]and B[3][3] and one-dimensional array C[] to keep the result.
2. Prompt the user to enter the elements of first matrix.
3. Prompt the user to enter the elements of second matrix.
- 988 views
- 1 answers
- 0 votes
You are required to write a program for RENT A CAR SYSTEM. The basic idea is that user will provide customer information, Car Model, and number of days. Upon this information your program will calculate the Amount for the Car.
Rent Amount will be calculated on the Basis of Type of Model he / she is going to take on Rent and of Days on Rent. There are Types of Models available “2009”, “2010” and “2011”. For Model 2009 Minimum Rent per day is Rs. 5000/- for Model “2010” Amount is Rs. 8000/- and for “2011” Amount is Rs. 10,000/- Per Day.
Detailed Description:
1. The program should display
Please provide customer Name:
Please provide Car Model.
- 13420 views
- 2 answers
- 0 votes
Write a program, which should prompt the user to enter a digit from 0 to 9
and store the input in some variable.
Now, prompt the user to enter another digit in given range.
You have to find the range of the next given number such that the sum of user-given numbers should not exceed 9.
Example:
Enter a number from 0 to 9: 5
Enter a number from 0 to 4: 3
Sum is: 8
- 999 views
- 2 answers
- 1 votes
The code given below is a Java code.
Find out that after the execution of the code the exception "array index out of bound" has occurred or not?
Also identify the mistakes in the program if any? And then write the correct program. ————————————————————— public class Excep { public static void main(String [] arr) { try { try { int array[]=new int[20]; array[100]=5; } finally { System.out.println("In Finally BLock.."); } System.out.println("Outside Finally Block.."); } catch(ArrayIndexOutOfBoundsException EX) { System.out.println("In Catch Block…"); } System.out.println("Exiting…"); } }
- 2212 views
- 3 answers
- 0 votes
If a disk is divided into four partitions and there are four logical drives present in the computer and every partition has been assigned one logical drive, write the steps involved in calculating the LBA address of the third partition table.
- 866 views
- 1 answers
- 0 votes