Skip to content

basu021/oop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Oriented Programming




Things to be done

  • SCTEVT 3rd Semester oop Problems
  • OOM Concept and Explaination

Experiments

  1. Write a Java program to print 'Hello' on screen and then print your name on a separate line.

  2. Write a Java program to print the sum of two numbers.

  3. Write a Java program that takes a number as input and prints its multiplication table upto 10.

  4. Write a Java program to print the area and perimeter of a rectangle.

  5. Write a Java program to swap two variables.

  6. Write a Java program to convert a decimal number to binary number.

  7. Write a Java program to compare two numbers.

  8. Write a Java program to count the letters, spaces, numbers and other characters of an input string.

  9. Write a Java program to reverse a string.

  10. Write a Java program to compute the sum of the digits of an integer.

  11. Write a Java program to accept a number and check the number is even or not. Prints 1 if the number is even or 0 if the number is odd.

  12. Write a Java program that accepts two integer values from the user and return the larger values. However if the two values are the same, return 0

  13. Write a Java program to get the larger value between first and last element of an array (length 3) of integers .

  14. Design a class to represent a bank account. Include the following members :

  • Data members:
    • Name of the depositor
    • Account Number
    • Type of account
    • Balance amount in the account
  • Methods:
    • To assign initial values
    • To deposit an amount
    • To withdraw an amount
    • To display the name and balance

  1. Given are two one-dimensional arrays, A and B which are sorted in ascending order. Write a program to merge them into a single sorted array C that contains every item from arrays A and B, in ascending order

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages