import java.util.*;
class bill
{
public static void main (String arg[])
{
Scanner in = new Scanner (System.in);
int a,b=0,c=1;
while (c<=6)
{
System.out.print ("nt Enter bill of month no "+c+" = ");
a=in.nextInt();
b+=a;
++c;
}
int avg=b/6;
System.out.println ("nt Average bill = "+avg);
if (avg>5000)
System.out.println ("nt Government will pay ");
else
System.out.println ("nt Paid ");
}
}
using with files
yes
In OOP, the concept of insulating data and from direct access by the program is known as
John Von Neumann.
Multiple Interfaces are usually associated with name ambiguity and this is the reason that they haven't been implemented in .NET. However in order to incorporate the advantages of multiple inheritance keeping aside the issues involved, .NET has come up with one more concept known as INTERFACE. Interfaces allow a class to inheirt behavioral characteristics frm more than one object type called interfaces. Classes implement the interfaces. You can check out the associated links for a number of examples demonstrating above concept.
using with files
Inheritance is the ability to derive and use other class's attribute and behavior. It results in the reduction of coding lines and the reuse of same codings in some other places. It is an important concept for java and makes to program easily...
Objects allow you to create new data types. They also help you separate parts of the program, and give additional benefits, such as being able to use the powerful concept of inheritance.
yes
Spreadsheet is a computer program used for calculating, organising, analysing data, and display results
inheritance is purpose of deriving one class from other class and it is reusabilty of code..
In OOP, the concept of insulating data and from direct access by the program is known as
Hmm, if only the computer had some kind of calculating program...
Inheritance is used object oriented program. When you create a class, you can create a child class that inherits methods and data from the parent class.
a program that is stored in the memory of the computer that executes it
interface Shape { public double getArea(); }
Von Neumann