OOP and Data Structure-Learning Java Language-Assignment, Exercises of Java Programming

This assignment is for Learning Java Language course by Suryavanshi Vikram at Cochin University of Science and Technology. It includes: Object-oriented, Programming, Data, Structure, Program, Array, Input, String, Character, length

Typology: Exercises

2011/2012

Uploaded on 07/12/2012

yumna
yumna 🇮🇳

4.8

(4)

12 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Assignment: 01
OOP and DATA STRUCTURE
1. Write a program in c++ to input values into an array. Find out the total
number of odd and even values entered in the array.
2. Write a program in c++ to input values into a table find out the total
number of odd values entered in it and print these on the screen.
3. Write a program into a string insert a character into a specified location
into the string. Print on the screen the entered string and the string after
entering the character.
4. Write a program in c++ to input data into a string. Delete a specific
character from string. Print on the screen the entered string and the
string after deleting the character.
5. Write a program in c++ to input data into a string and find out its length
without using any built in function.
6. Write a program in c++ to input values into a table and find out the
maximum value entered in the table. Print out the maximum value and
its location in the table.
7. Write a program in c++ to exchange the values of two variables by using
the pointers.
8. Write a program in c++ to input data into an array and then to find out
the minimum value n the array by using the pointer.
Docsity.com
pf2

Partial preview of the text

Download OOP and Data Structure-Learning Java Language-Assignment and more Exercises Java Programming in PDF only on Docsity!

OOP and DATA STRUCTUREAssignment: 01

    1. Write a program in c++ to input values into an array. Find out the total number of odd and even values entered in the array.Write a program in c++ to input values into a table find out the total
  1. number of odd values entered in it and print these on the screen.Write a program into a string insert a character into a specified location into the string. Print on the screen the entered string and the string after
  2. entering the character.Write a program in c++ to input data into a string. Delete a specific character from string. Print on the screen the entered string and the
  3. string after deleting the character.Write a program in c++ to input data into a string and find out its length without using any built in function.
  4. Write a program in c++ to input values into a table and find out the maximum value entered in the table. Print out the maximum value and its location in the table.
    1. Write a program in c++ to exchange the values of two variables by using the pointers.Write a program in c++ to input data into an array and then to find out the minimum value n the array by using the pointer. Docsity.com
    1. Write a program in c++ to input data into an array of float type, sort the array in descending order by using pointers.Write a program in c++ to input any integer value and then to find out if the given value is the prime number or not by passing the number into a function as pointer argument.

____________________GOOD LUCK________________

Docsity.com