Write an Interface FeeStructure that provide the following functionality for calculating Fee Structure
Write a C++ Program using Class and Object concept.
Function Type :- No Return Type No arguments
Perform the operations on array. Create three functions for
the following operations.
• 1
st Function to take an array.
• 2
nd Function to print an array.
• 3
rd Funciton to sort array elements and print them.
Merge two sorted arrays shown below
[11, 31, 35, 43, 61, 79] and [12, 14, 15, 37, 41, 73]
Make Student an abstract class. Declare gpa() and display() as pure virtual functions in it. Derive semester student, courses student, and new student from base class Student. The display () function should show employee no, employee name, and salary of all employees. (Friend Functions). All the information is store in student.txt and handle through file handling.
Write a program to print out the Ascii Code in a table
Write a program to print out your full name and the corresponding ASCII code of your full name
Determine the weeks earnings for an employee from the hourly paid rate and hours worths for the rate.report the gross earnings(including overtime earnings) for the week.
Write a program to take two numbers as input then display their total using java.io. package for input i.e. InputStreamReader isr= new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(isr);
Integer.parseInt(br.readLine());
Use void only once in public static void main(String args[])
Don't use void second time.
Write a program to take a String as input then display the word which has highest number of vowels.
For example:
Enter a String
EDUCATION IS important
EDUCATION has highest number of vowels
2nd e.g.
Enter a String
Hello use dog
Hello and use has same highest number of vowels
The volume of a sphere is 4/3πr3, where π has the value of "pi" given in Section 2.1 of your textbook. Write a function called print_volume (r) that takes an argument for the radius of the sphere, and prints the volume of the sphere.
Call your print_volume function three times with different values for radius.
Include all of the following in your Learning Journal:
The code for your print_volume function.
The inputs and outputs to three calls of your print_volume.
Part 2
Write your own function that illustrates a feature that you learned in this unit. The function must take at least one argument. The function should be your own creation, not copied from any other source. Do not copy a function from your textbook or the Internet.
Include all of the following in your Learning Journal:
The code for the function that you invented.
The inputs and outputs to three calls of your invented function.
A description of what feature(s) your function illustrates.
Write a program to take a String as input then display only palindrome words found in the String and also display how many palindrome words found.
For example:
Enter a String
MOM AND dad are talking
Palindrome words: MOM dad
No. of such words: 2
for(i=s.length()-1;i>=0;i--)
{
c=s.charAt(i);
rev=rev+c;
} //To check palindrome words