Suppose a publisher is going to market its book and audiocassette. Write
C# windows application with following tasks.
1. Publication class with data member title, price
2. two derived classes book(Page_count) and tape (playing time)
3.Every class should have getdata() and putdata() member function
Write the main() function to test the program.
Define a class (Name, Father name, Roll num, session, GPA, address,
semester) and store the record of 10 students in c# windows Application.
One should be able to search by name, roll num, session and GPA.
Searched data should be displayed in the decesding order
Write a program that demonstrate the use of constructor with default
arguments the for following problem. Define a class Person with data member as nameand age. Create three argument, no with objects one argument two and name argument
age. and name are not allowed to create more than one constructor. You
Write a program in C++ to open and read the contents of the Text1.txt using the file stream class. Close the file and again open to update the contents of given file Text1.txt. Text1.txt : I am enjoying learning OOPS concepts
Can you help me to answer my assignment? I'm have a hard time outputting the excess output stars. Below is the problem. Hope someone will respond. Have a nice day!
Write a witty and interactive program as you output the pattern below?
HOW MANY STARS DO YOU WANT? 5
*
***
*****
Oh, you gave me 4 stars more!
Write a program that demonstrate the use of constructor with default arguments for the following problem. Define a class Person with data member as name and age. Create three objects with no argument, one argument name and two argument name and age. You are not allowed to create more than one constructor.
Define a class Employee with data members as name, emp_id, age. Write a program to write the data of three employee’s using class object. Read the records of the employee and print them to console
What is a copy constructor? Explain its usage and syntax and also explain how it is different from a regular constructor?
Write a function named "g_c_d" that takes two positive integer arguments and returns as its value the greatest common divisor of those two integers. If the function passed an argument that is not positive (less than zero), then the function should return the value 0 as a sentinel value to indicate that an error occurred.
cout << g_c_d(40,50) << endl;
cout << g_c_d(256,625) << endl;
cout << g_c_d(42,6) << endl;
cout << g_c_d(0,32) << endl;
cout << g_c_d(10,-6) << endl;