answersLogoWhite

0

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 ");

}

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

A c program to manage a bank system using inheritance and not using the concept of file handling?

using with files


What is inheritance in core java?

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...


Why do you create an object in programmig language?

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.


Shell program for calculating compound interest using for loop?

yes


What is a function in spreadsheet program?

Spreadsheet is a computer program used for calculating, organising, analysing data, and display results


Using console application show the use of inheritance in your program?

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?

In OOP, the concept of insulating data and from direct access by the program is known as


What is 357 x 74?

Hmm, if only the computer had some kind of calculating program...


Short note on inheritance?

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.


What is the meaning of this term Stored Program Concept?

a program that is stored in the memory of the computer that executes it


Write a program in java interface for calculating area?

interface Shape { public double getArea(); }


Who is the father of stored program concept?

Von Neumann