Java 1 Question Paper
Java 1
Course:Bachelor Of Computer Science
Institution: Maseno University question papers
Exam Year:2013
1. Given a list of marks ranging from 0 to 100,write a program to compute and print the number of students who have obtained marks:
a.) in the range 81-100
b.)in the range 61 to 80
c.) in the range 41 to 60
d.) int the range 0 to 40.
the program should use a. minimum of if statements.
2. Design a class to represent a bank account.Include the following members:
Data Members:
a.) Name of the depositor
b.)Account number
c.) type of account
d.) Balance amount in the acount.
Methods
a.)to assign initial values
b.)to deposit an amount
c.)to withdraw an amount after checking balance
d.)to display the name and balance.
More Question Papers